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

When a Bitbucket Repository is deleted, a 400 Bad Request error is shown when trying to edit repositories

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.4
    • 5.2
    • Repository (Bitbucket)
    • None

    Description

      If a repository is deleted in Bitbucket, the Build configuration page in Bamboo will not allow you to change repositories or add new ones until the old repository is deleted.

      When a deleted Repository is present and viewed, a Bitbucket error window is shown in the Repository Details pane. Once this error is shown subsequent requests will be made as this:
      https://base_url/chain/admin/config/%CONTEXT_PATH%/rest/hg/latest/bb/repositories/username/
      This will cause a 400 bad request error, as the proper format for the request is:
      https://base_url/rest/hg/latest/bb/repositories/username/

      Steps to Reproduce

      1. Create a new Repository on Bitbucket
      2. Create a new Plan on Bamboo
      3. Add a repository, select Bitbucket from the dropdown list
      4. Select the Repository you just created
      5. Save the Repo configuration
      6. On Bitbucket, delete the Repository
      7. Refresh the Plan configuration page, and click on your repository to view its details.

      Result
      An error is shown on the page and the Layout of the page changes (it no longer fills the screen horizontally

      • Try adding a new Repository, this will always return a '400 bad request error'

      Workaround
      Delete the Repository in Bamboo, wait a while (several minutes) for the change to be picked up, Refresh the page then add a new one.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              imaduro Ivan Maduro (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: