Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-8141

Branch permissions prevent deleting a branch via UI with multiple permissions set

    XMLWordPrintable

Details

    Description

      Summary

      When setting up multiple branch permissions with access grants, the access grants will not be effective in allowing the deletion of a branch via the UI.

      Steps to Reproduce

      1. Set up a branch permission for the pattern refs/ with an access grant for "user-1"
      2. Set up a branch permission for the pattern refs/heads/feature with an access grant for "user-2"
      3. Log in as "user-2"
      4. Attempt to delete a branch matching the refs/heads/feature pattern (like feature/testbranch)

      Expected Results

      The branch can be deleted.

      Actual Results

      An error flag is shown in the UI indicating the branch cannot be deleted due to branch permissions.

      Solution

      Upgrade to Bitbucket Server 4.0 or higher.

      Workaround

      To work around this issue, delete the branch via git.
      To delete a branch via git you can use the following terminal command: git push origin :feature/testbranch - Note the ":" (colon) before the branch name.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abromberg Aaron Bromberg (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: