Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20988

Invalid username when attempting to save a Bitbucket Cloud repository when no workspace exists that matches username

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 7.2.2
    • 6.10.4, 7.0.3, 7.0.4
    • Repository (Bitbucket)
    • None

      Issue Summary

      Invalid username error will be presented when attempting to save a Bitbucket Cloud repository (or testing connection) when no workspace exists that matches the username.

      Steps to Reproduce

      1. Change your Bitbucket Cloud workspace that matches your username to a different ID:
      2. Attempt to create a Bitbucket Cloud Repository in Bamboo
      3. Fill all fields and hit Save

      Expected Results

      Repository is saved successfully.

      Actual Results

      Invalid username is presented

      The below warnings are shown in the $BAMBOO_HOME/logs/atlassian-bamboo.log file where foobar is the username used:

      2020-06-23 03:24:34,743 WARN [http-nio-8085-exec-14] [RESTCall] Response from GET https://api.bitbucket.org/2.0/workspaces/foobar/ (404)
      2020-06-23 03:24:35,282 WARN [http-nio-8085-exec-14] [RESTCall] Response from GET https://api.bitbucket.org/2.0/users/foobar/ (404)
      2020-06-23 03:24:35,819 WARN [http-nio-8085-exec-14] [RESTCall] Response from GET https://api.bitbucket.org/2.0/teams/foobar/ (404)
      

      Notes

      The list of repositories still loads successfully, the problem only occurs when attempting to save.

      Workaround

      Create a workspace (or rename an existing one) in Bitbucket Cloud to one that matches your Bitbucket username:

              vdebone Victor Debone
              jowen@atlassian.com Jeremy Owen
              Affected customers:
              2 This affects my team
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: