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

Whitespace permitted in branch patterns

    XMLWordPrintable

Details

    Description

      Issue Summary

      When creating branch patterns in default reviewers, whitespace characters are permitted.

      Steps to Reproduce

      1. Create a new default reviewer rule
      2. Create a branch pattern for either the target or source branch that contains a whitespace character

      Expected Results

      A validation error should indicate whitespace is not permitted in branch patterns (as they are forbidden in git branches and will never match anything)

      Actual Results

      The rule is created successfully.

      If whitespace precedes the rest of the branch pattern (e.g. " some-branch"), the whitespace is trimmed from the UI, which makes the pattern appear valid (see screenshot). As the branch pattern does not match any branches, the rule will not apply default reviewers, even if the branch appears to match the pattern in the UI.

      Workaround

      The whitespace-containing rule must be deleted and recreated.

      Attachments

        1. Screenshot_20210111_112250.png
          37 kB
          Martin Henschke
        2. Screenshot_20210111_112347.png
          32 kB
          Martin Henschke

        Issue Links

          Activity

            People

              khughes@atlassian.com Kristy
              mhenschke@atlassian.com Martin Henschke
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync