• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 6.6.1
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      Since User and Group management is handled by REST APIs since Bamboo 6.2, for external groups whose names include "special" characters for URLs, such as # and ?, the functionality fails to add the groups because the REST URL stops reading at those characters

      Suggested Solution

      Encode the Group (and User) calls to use the URL encoding for these characters.

      Character Encoding
      # %23
      ? %3F
      Space %20

      Why this is important

      Some companies have corporate group naming schemes that require these characters.

      Workaround

      Use cURL to send a REST API call
      Example: Adding a group called #testgroup with all Administration privileges:

      curl -XPUT \
      -H'Content-Type: application/json' \
      -u<user>:<pass> 'http://<bamboo-url>/rest/api/latest/permissions/global/groups/%23testgroup' \
      -d '["ADMINISTRATION","CREATE","CREATEREPOSITORY","READ"]'
      

            [BAM-19956] URL Encode "User management" API calls

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3016533 ] New: JAC Suggestion Workflow 3 [ 3602503 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing v4 [ 2703850 ] New: JAC Suggestion Workflow [ 3016533 ]
            Owen made changes -
            Issue Type Original: Improvement [ 4 ] New: Suggestion [ 10000 ]
            Marcin Gardias made changes -
            Fix Version/s New: 6.6.1 [ 80799 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Gathering Interest [ 11772 ] New: Resolved [ 5 ]
            Marcin Gardias made changes -
            Assignee New: Marcin Gardias [ mgardias ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 2696439 ] New: Confluence Workflow - Public Facing v4 [ 2703850 ]
            Status Original: Needs Triage [ 10030 ] New: Gathering Interest [ 11772 ]
            Ellie Z (they/them) made changes -
            Description Original: h3. Problem Definition
            Since User and Group management is handled by REST APIs since Bamboo 6.2, for external groups whose names include "special" characters for URLs, such as {{#}} and {{?}}, the functionality fails to add the groups because the REST URL stops reading at those characters

            h3. Suggested Solution
            Encode the Group (and User) calls to use the HTML encoding for these characters.
            h3. Why this is important
            Some companies have corporate group naming schemes that require these characters.

            h3. Workaround
            Use {{cURL}} to send a REST API call
            Example: Adding a group called {{#testgroup}} with all Administration privileges:
            {noformat}
            curl -XPUT \
            -H'Content-Type: application/json' \
            -u<user>:<pass> 'http://&lt;bamboo-url&gt;/rest/api/latest/permissions/global/groups/%23testgroup&#39; \
            -d '["ADMINISTRATION","CREATE","CREATEREPOSITORY","READ"]'
            {noformat}
            New: h3. Problem Definition
            Since User and Group management is handled by REST APIs since Bamboo 6.2, for external groups whose names include "special" characters for URLs, such as {{#}} and {{?}}, the functionality fails to add the groups because the REST URL stops reading at those characters

            h3. Suggested Solution
            Encode the Group (and User) calls to use the URL encoding for these characters.
            ||Character||Encoding||
            |{{#}}|{{%23}}|
            |{{?}}|{{%3F}}|
            |Space|{{%20}}|

            h3. Why this is important
            Some companies have corporate group naming schemes that require these characters.

            h3. Workaround
            Use {{cURL}} to send a REST API call
            Example: Adding a group called {{#testgroup}} with all Administration privileges:
            {noformat}
            curl -XPUT \
            -H'Content-Type: application/json' \
            -u<user>:<pass> 'http://&lt;bamboo-url&gt;/rest/api/latest/permissions/global/groups/%23testgroup&#39; \
            -d '["ADMINISTRATION","CREATE","CREATEREPOSITORY","READ"]'
            {noformat}
            Ellie Z (they/them) made changes -
            Issue Type Original: New Feature [ 2 ] New: Improvement [ 4 ]
            Ellie Z (they/them) created issue -

              mgardias Marcin Gardias
              ezeidan Ellie Z (they/them)
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: