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

Using the @ symbol resolves usernames when used in PR suggestions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 7.6.6, 6.10.11, 7.12.1
    • None

    Description

      Issue Summary

      When the @ symbol is used in a PR suggestion, such as when specifying a Java annotation, if the phrase following the symbol matches a username - the token will be rendered as the full name of the user.

      Steps to Reproduce

      1. Create a user with username 'test' and full name 'Test User 123'
      2. Navigate to an open pull request with code changes
      3. Make an in-line comment with the following value:
        • ```suggestion
          @Test
          ```

      Expected Results

      On saving, the suggestion renders using the expected "Test" annotation

      Actual Results

      On saving, the suggestion renders incorrectly with 'Test User 123' and appears to suggest that the code be changed to 'Test User 123'

      • Note: Applying the suggestion automatically in a new commit will still make the appropriate code change in the underlying commit, and will NOT use the full name of the user.

      Workaround

      Change the username of the offending user to not match the desired annotation, or change the annotation to not match the username of an existing user

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              eslaughter@atlassian.com Evan Slaughter
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync