Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-18980

Invalid search term for people directory gives stack traces

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      Go to the people directory and search for "da]"
      The log now contains a full stacktrace. This is hardly needed an invalid search term should not spew out a stacktrace.

      2010-03-09 14:24:53,028 WARN [http-8080-2] [confluence.search.actions.SearchQueryBean] buildPeopleQuery Unable to build search query: Couldn't parse the query successfully:Cannot parse 'da]': Lexical error at line 1, column 4. Encountered: <EOF> after : ""
      – referer: /confluence/dopeopledirectorysearch.action | url: /confluence/dopeopledirectorysearch.action | userName: admin | action: dopeopledirectorysearch
      com.atlassian.bonnie.LuceneException: Couldn't parse the query successfully:Cannot parse 'da]': Lexical error at line 1, column 4. Encountered: <EOF> after : ""
      at com.atlassian.bonnie.search.LuceneSearcher.buildStandardQuery(LuceneSearcher.java:64)
      at com.atlassian.confluence.search.scope.UserScope.addUserFields(UserScope.java:36)
      at com.atlassian.confluence.search.scope.UserScope.restrictQuery(UserScope.java:30)
      at com.atlassian.confluence.search.actions.SearchQueryBean.buildPeopleQuery(SearchQueryBean.java:202)
      at com.atlassian.confluence.user.actions.PeopleDirectoryAction.search(PeopleDirectoryAction.java:123)
      at com.atlassian.confluence.user.actions.PeopleDirectoryAction.doSearch(PeopleDirectoryAction.java:93)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dkjellin Daniel
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: