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

Action context menu not shown if branch contains double quotes in its name

    XMLWordPrintable

Details

    Description

      If a branch is created containing double quotes in its name, Bitbucket Server will fail to display the context menu for the Actions button in the branch listing page.

      Analysis

      • Branch named as feature/Revert-"Information-Doc"-Module
      • No error is shown in Bitbucket's log.
      • With Chrome's Developer Tools, I see it shows as the menu was opened:
      • There's an error in the Console though:

      Git client
      I was able to reproduce this locally having a git version 2.3.8 (Apple Git-58) in Bitbucket Server, which allows to create the branch with double quotes in its name.
      I observed a different behavior on Windows using git version 2.6.1.windows.1, for which this doesn't occur, as it's not possible to create the branch with double quotes in its name in the first place.

      Steps to reproduce

      1. Go to your repository screen in Bitbucket Server and click on Create Branch.
      2. Set the branch name to a name containing double quotes (as in the example used: feature/Revert-"Information-Doc"-Module) and proceed creating the branch.
      3. Go to the branches listing screen and try clicking on the Actions button - it won't open, thus no action can be done over this branch.

      Attachments

        1. branch-quote1.png
          branch-quote1.png
          112 kB
        2. branch-quote2.png
          branch-quote2.png
          108 kB

        Issue Links

          Activity

            People

              khughes@atlassian.com Kristy
              grefosco Gustavo Refosco (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: