When adding a group to admin project permissions using a server license an error is thrown

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 8.1.1, 8.0.5
    • Affects Version/s: 8.0.0
    • Component/s: Permissions
    • None
    • 7
    • Severity 3 - Minor
    • 10

      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

      1. Run Bamboo 8.x using a Server license
      2. 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"]' 
      

            Assignee:
            Alexey Chystoprudov
            Reporter:
            Miguel Alonso
            Votes:
            25 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: