Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-12201

Adding a branch permission with a branch name that can be interpreted as a number will prevent editing of the branch permission

    XMLWordPrintable

    Details

      Description

      Issue Summary

      If a branch permission is created at the project level, a user will be unable to edit the branch permission if the branch name that was entered can be interpreted as a number.

      Steps to Reproduce

      1. Go to <base_URL>/plugins/servlet/branch-permissions/<project_key>
      2. Add a branch permission
      3. Choose branch name and enter a branch name that can be interpreted as a number eg. 555.55

      Expected Results

      After creating the branch permission a user should be able to click the 'pencil' icon and edit the branch permission

      Actual Results

      • The edit dialog does not get displayed
      • We see the following error in the browser's dev panel console:
        Uncaught The typeof 555.55 is number but expected it to be string
        

      Workaround

      • Add a new permission with the same branch name
      • A warning stating A branch permission already exists for 555.55 will be displayed with a hyperlink to edit the existing branch permission
      • Click the link twice and the branch permission can be edited from there

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jvanderloo@atlassian.com John van der Loo
              Reporter:
              nhansberry Nate Hansberry
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: