Uploaded image for project: 'Atlassian Intelligence'
  1. Atlassian Intelligence
  2. AI-294

User and Group search doesn't return correct results for 1 character after space

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Low Low
    • Search - Indexing
    • None
    • Severity 3 - Minor

      Summary

      When doing a user or group search to set Permissions on a page, the results are not reflecting the search pattern when the search has a space. Example: A search for "test j" will return the same results as "test" without considering the space or the letter "j".

      Problem:
      If the site has more than 6 users with the same name but different last name, the searchable user may not be listed at all, and incorrect users will be listed

      Environment

      • Confluence

      Steps to Reproduce

      1. Create at least 7 users with the same first name but different last names
      2. Search for the 7th user using the Last name initial

      Expected Results:

      • User is listed because it is matches the search.
      • Other users not matching the search pattern are not listed.

      Actual Results:
      User is not listed at all

      the user "Test Jk" exists and should be listed.

      The search is triggering the call:

      https://site.atlassian.net/wiki/rest/prototype/1/search/user-or-group.json?max-results=6&query=test+j&_=1492998751784
      

      that returns the same results as "query=test" and don't include "Test Jk" because it is limited to 6 results.

      Notes

      Searching with the first 2 letters of the last name will return the correct results

      User mentions on pages and comments are not affected because they use a different rest api call to get search results.

      Workaround

      Search for more than 2 letters for first and last names.

        1. test1.jpg
          test1.jpg
          142 kB
        2. test2.jpg
          test2.jpg
          134 kB

              Unassigned Unassigned
              mfernandezbadii Mauro Badii (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: