-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 8.0.0
-
Component/s: Documentation (Developer)
-
Severity 3 - Minor
-
RtB - Service ops & Tech entropy
Issue Summary
This is reproducible on Data Center: yes
Steps to Reproduce
View REST docs for Get root log level, Set root log level, Get current log level, Set log level
Expected Results
The REST docs should mention that SYS_ADMIN is required, as the endpoint responds with unauthorized for regular ADMIN users, e.g. the following is with user who is a regular admin on 9.x:
$ curl -u user:user -X GET --url 'http://localhost:7990/bitbucket/rest/api/latest/logs/rootLogger' {"errors":[{"message":"You are not permitted to access this resource","exceptionName":"com.atlassian.plugins.rest.api.security.exception.AuthorizationException"}]}
Actual Results
The REST docs only mention that ADMIN is required
Workaround
Use SYS_ADMIN for the endpoints mentioned