Uploaded image for project: 'Central AI/Rovo'
  1. Central AI/Rovo
  2. AI-715

Invalid search term for people directory gives stack traces

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? 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: