Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1566

PatternSyntaxException in MailboxQuery

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      If folder names contain unclosed parentheses (like "Folder.foo(bar") the pattern compiler will raise the following exception:

      java.util.regex.PatternSyntaxException: Unclosed group near index 13
      Folder.foo(bar
      ^
      at java.util.regex.Pattern.error(Pattern.java:1955)
      at java.util.regex.Pattern.accept(Pattern.java:1813)
      at java.util.regex.Pattern.group0(Pattern.java:2908)
      at java.util.regex.Pattern.sequence(Pattern.java:2051)
      at java.util.regex.Pattern.expr(Pattern.java:1996)
      at java.util.regex.Pattern.compile(Pattern.java:1696)
      at java.util.regex.Pattern.<init>(Pattern.java:1351)
      at java.util.regex.Pattern.compile(Pattern.java:1028)
      at org.apache.james.mailbox.model.MailboxQuery.<init>(MailboxQuery.java:72)
      at org.apache.james.imap.processor.ListProcessor.doProcess(ListProcessor.java:175)
      [...]

        Attachments

          Activity

            People

            • Assignee:
              eric@apache.org Eric Charles
              Reporter:
              thomas.soehngen Thomas Söhngen

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment