Details
-
Bug
-
Resolution: Fixed
-
Low
-
8.0.0
-
None
-
7
-
Severity 3 - Minor
-
10
-
Description
Issue Summary
When adding a group to admin project permissions using a server license the below error is thrown both on the UI or using REST API:
When granting "ADMINISTRATION" permission the following permissions must also be granted: "CREATEREPOSITORY"
Steps to Reproduce
- Run Bamboo 8.x using a Server license
- Add admin project permissions to a group in any of your instance projects
Expected Results
The permissions are added accordingly
Actual Results
The below error is shown when done through the UI:
The below message is thrown when done via REST API:
curl -X PUT -H'Content-Type: application/json' user:password 'https://bamboo.net/rest/api/latest/permissions/project/ABC/groups/bamboo-admin' -d '["ADMINISTRATION","CREATE","READ"]' | jq { "message": "When granting \"ADMINISTRATION\" permission the following permissions must also be granted: \"CREATEREPOSITORY\"", "status-code": 400 }
Workaround
When adding the permissions via REST, add the "CREATEREPOSITORY" permission to your payload as follows:
curl -X PUT -H'Content-Type: application/json' -u user:password 'https//bamboo.net/rest/api/latest/permissions/project/ABC/groups/bamboo-admin' -d '["ADMINISTRATION","CREATE","READ","CREATEREPOSITORY"]'