-
Type:
Bug
-
Resolution: Timed out
-
Priority:
Low
-
None
-
Affects Version/s: 5.2, 6.2, 6.3
-
Component/s: REST API
-
5.02
-
Severity 3 - Minor
-
According to https://docs.atlassian.com/jira/REST/latest/#d2e2710
- 403 Forbidden will be returned if the user does not have permission to view any of the requested projects
However, this is not true. The real scenario is like this - taking project A for example:
- If user has Create Issues permission in project A, project A will be returned with "200 OK" -
this is expected - If user does not have Create Issues permission in project A, project A won't be returned, still with "200 OK" -
this should be changed in case the returned result is empty "expand":"projects","projects":[]} i.e. user does not have Create Issues permission in all projects - If user does not also have Browse Projects permission in project A, project A won't be returned, but still with "200 OK", though it's stated that 403 should be returned
I don't think Browse Projects permission has something to do here, and 403 is also not a correct response in this case
Upon further testing:
- 401 will be returned if username or password is wrong
- 403 will be returned if user does not have permission to log in JIRA
these are expected
So, the documentation needs updating and the HTTP responses might need reviewing to give users clearer information on the result they get.