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

Unable to remove users and groups that start with 0 from the Project Roles

XMLWordPrintable

      If you have users that the username start with zero and only contain numbers, you are not able to remove them from Project Roles through the interface.

      Steps to Reproduce

      1. Create a user like 01234;
      2. Edit a Project Role and add the user to a given role;
      3. Try to remove the user by clicking on the trashcan icon.

      Expected Results

      The user gets removed successfully.

      Actual Results

      The user is not removed and no errors are displayed in the logs nor in the browser.

      Additional Information

      • It seems that the browsers are taking of the leading 0 and sending a request to remove the user 1234 instead of 01234.
      • This problem is reproducible with groupname which starts with "0" as well.

      Workaround

      • Remove the user from project roles in JIRA administration > User Management instead
      • Remove the user from Project Role using REST API, example:
        curl -u username:password -X DELETE http://jira.aexmple.comi/rest/api/2/project/TEST/role/10002?user=01234
        

              Unassigned Unassigned
              pcora Pedro Cora (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: