Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-31134

Username's suggestion on the Project Role does not display the username when typed quickly

XMLWordPrintable

      Summary

      When typing the username really fast on the project role fields (Example: Administrators), the list of suggestion failed. By failed it means that there are no matches even though the requested user exists.

      However, if a user types the username slowly, the suggestion will appear.

      Environment

      Intermittently reproducible on a customer's JIRA 5.2 and 6.4.1 instance having 8000+ active users, and 5000+ inactive users.

      Steps to reproduce

      From any Project's Administration page, access the roles tab and try to add a username to a project role typing very fast without pausing

      Expected results

      JIRA should match the username to relevant user accounts and suggest matching usernames along as you type

      Actual results

      JIRA is unable to match the username, and displays a "No Matches" message

      Notes

      The root cause of the issue seems that the http request header is somehow exclude the query it self. As an example:

      Request URL:http://vmstmsdejira:8080/jira/rest/api/1.0/users/picker?showAvatar=true&query=pascoe&exclude=sanchant&exclude=arupk&exclude=kalbag&exclude=roscorla&exclude=glorim&exclude=jachimj&exclude=meyerj&exclude=junjiequ&exclude=bakoslas&exclude=fidrichl&exclude=phoungl&exclude=powellma&exclude=popem&exclude=mlincoln&exclude=nasserb&exclude=wup&exclude=psnjira&exclude=rajivshu&exclude=richbr&exclude=rling&exclude=augrusot&exclude=veray&exclude=lordw&exclude=yanjunw&exclude=pascoe&_=1357135270028
      Request Headersview source
      Accept:application/json, text/javascript, */*; q=0.01
      Referer:http://vmstmsdejira:8080/jira/plugins/servlet/project-config/RTDEV/roles
      User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11
      X-AUSERNAME:
      X-Requested-With:XMLHttpRequest
      Query String Parametersview URL encoded
      showAvatar:true
      query:admin
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:xxxx
      exclude:admin
      _:1357135270028
      

      I have modified the values of users with xxxx for this example.

              Unassigned Unassigned
              isiagian Immanuel Siagian (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: