Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
7.0.2, 7.3.1
-
7
-
7
-
Severity 2 - Major
-
5
-
Description
Summary
Unable to search for global permissions using /rest/api/2/user/permission/search.
As has been said in JRA-43075 , this endpoint is important to Atlassian Connect vendors who want to do things like check the permissions of a given user
The documentation for the rest/api/2/user/permission/search endpoint links to this list of all possible permissions, which includes global permissions like ADMINISTER.
Steps to Reproduce
- Run the REST calls against /rest/api/2/user/permission/search
http://localhost:7021/jira702/rest/api/2/user/permission/search?permissions=SYSTEM_ADMIN
http://localhost:7021/jira702/rest/api/2/user/permission/search?permissions=SYSTEM_ADMIN&projectKey=<validPkey>
Expected Results
Returns users who have this global permission
Actual Results
- First call returns the following
{"errorMessages":["No project or issue key was provided"],"errors":{}}
- A project or issue key is required to be provided which doesn't make sense in a global permission context
- Second call returns the following
{"errorMessages":["Internal server error"],"errors":{}}
Notes
Other known results of the second command
- An empty list that should have users in it: []
- observed on a local instance
- An internal server error report: {"errorMessages": [ "Internal server error" ] ,"errors":} (associated error in logs: java.lang.IllegalArgumentException: No permission for id : 0 in system)
- An empty error report {"errorMessages":[],"errors":}
- seen on jdog
Workaround
No known workaround
Attachments
Issue Links
- relates to
-
JRASERVER-43075 rest/api/2/user/permission/search is broken in many different ways.
- Closed
- mentioned in
-
Page Loading...