• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 6.10.6
    • allversions
    • Repository (Bitbucket)
    • None

      User can't create/modify Bitbucket Cloud repository

      Bamboo reports Invalid username when try to save repository or click Test connection button

      Remark

      Check that the username provided as credentials for the repository is the username that can be found in Bitbucket settings > Account settings > Bitbucket profile settings in Bitbucket Cloud.
      Because of GDPR-related changes to Bitbucket Cloud API the user email is not a valid value for the username field anymore and Bitbucket Cloud REST API dropped support of it recently.

      Workaround

      Bamboo 7.0.1 and above

      Since Bamboo 7.0.1, the system property -Dbamboo.bitbucket.cloud.use.workspace.api=true can be added following Configuring your system properties to enable usage of new Workspaces REST API of Bitbucket Cloud

      Recent versions

      The following patches enable the Bitbucket Cloud Workspaces API:

      To install, please:

      1. Download the file for your version
      2. Stop Bamboo
      3. Move the file at <bamboo-install>/atlassian-bamboo/WEB-INF/atlassian-bundled-plugins/atlassian-bamboo-plugin-bitbucket-x.y.z.jar out of the <bamboo-install> directory
      4. Put the patch jar in <bamboo-install>/atlassian-bamboo/WEB-INF/atlassian-bundled-plugins/atlassian-bamboo-plugin-bitbucket-x.y.z-BAM-20900.jar
      5. Start Bamboo

      Older Versions

      If you are unable to upgrade at the moment, please configure Linked repositories of type "Git" or "Mercurial" to work around this issue.

            [BAM-20900] Can't create/modify Bitbucket Cloud repository

            75418b48f8ea, these properties are not required for 7.1.1. Please report it to support.atlassian.com to help our engineers to investigate the root cause

            Alexey Chystoprudov added a comment - 75418b48f8ea , these properties are not required for 7.1.1. Please report it to support.atlassian.com to help our engineers to investigate the root cause

            James Moss added a comment -

            I am hitting this problem on 7.1.1

            I have added -Dbamboo.bitbucket.cloud.use.workspace.api=true to setenv.sh and can see it in the list of JAVA_OPTS on the environment page in the admin panel and have restarted the Bamboo service.

            When I go to add the linked repo I can see the list of available git repos and can select one and then see the list of branches when I save nothing happens. If I hit Test Connection I get 'We couldn't connect to the repository. The details you provided were invalid.'

            Any ideas?

            James Moss added a comment - I am hitting this problem on 7.1.1 I have added -Dbamboo.bitbucket.cloud.use.workspace.api=true to setenv.sh  and can see it in the list of JAVA_OPTS on the environment page in the admin panel and have restarted the Bamboo service. When I go to add the linked repo I can see the list of available git repos and can select one and then see the list of branches when I save nothing happens. If I hit Test Connection I get 'We couldn't connect to the repository. The details you provided were invalid.' Any ideas?

            m.upadhyay please raise support request at https://support.atlassian.com

            Alexey Chystoprudov added a comment - m.upadhyay please raise support request at https://support.atlassian.com

            MamtaU added a comment -

            Hello Alexey ,

             

            We are still facing issue for linked repo with same error 

            MamtaU added a comment - Hello Alexey ,   We are still facing issue for linked repo with same error 

            andy.liu551224310, 6.10.6 was released 19th of April

            Alexey Chystoprudov added a comment - andy.liu551224310 , 6.10.6 was released 19th of April

            andy.liu551224310, 6.10.6 is not released yet. It's planned for next week

            Alexey Chystoprudov added a comment - andy.liu551224310 , 6.10.6 is not released yet. It's planned for next week

            Andy Liu added a comment -

            According to info on bugfix, one of the Fix version is 6.10.6. However, from the Bamboo down-archives page as of today it seems that there is no 6.10.6 download available. i.e. https://www.atlassian.com/software/bamboo/download-archives

            @Alexey Chystoprudov, perhaps you guys should remove v6.10.6 as one of the Fix version for this bug?  So there is less confusion, thanks.

            Andy Liu added a comment - According to info on bugfix, one of the Fix version is 6.10.6. However, from the Bamboo down-archives page as of today it seems that there is no 6.10.6 download available. i.e. https://www.atlassian.com/software/bamboo/download-archives @Alexey Chystoprudov, perhaps you guys should remove v6.10.6 as one of the Fix version for this bug?  So there is less confusion, thanks.

            achystoprudov, a service restart after upgrade solved the problem, thanks.

            Team DevOps added a comment - achystoprudov , a service restart after upgrade solved the problem, thanks.

            Andy Liu added a comment - - edited

            I don't see Bamboo v6.10.6 download available at this time in https://www.atlassian.com/software/bamboo/download-archives.

            Does anyone know when v6.10.6 Linux download will be available?

            Andy Liu added a comment - - edited I don't see Bamboo v6.10.6 download available at this time in https://www.atlassian.com/software/bamboo/download-archives. Does anyone know when v6.10.6 Linux download will be available?

            e05c11d996c4, can you please raise a support ticket for detailed investigation?

            Alexey Chystoprudov added a comment - e05c11d996c4 , can you please raise a support ticket for detailed investigation?

              achystoprudov Alexey Chystoprudov
              achystoprudov Alexey Chystoprudov
              Affected customers:
              14 This affects my team
              Watchers:
              34 Start watching this issue

                Created:
                Updated:
                Resolved: