Details
-
Bug
-
Resolution: Fixed
-
Low
-
3.11.1, 3.11.2, 3.11.3, 3.11.4
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
- Set up a branch permission for the pattern refs/ with an access grant for "user-1"
- Set up a branch permission for the pattern refs/heads/feature with an access grant for "user-2"
- Log in as "user-2"
- 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
- is a regression of
-
BSERV-7597 Branch Permissions should not prevent push if multiple Restrictions match the target branch, and at least one allows write access to the current user or group
- Closed