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

Unicode rendering in user mentions '@' can sometimes cause usernames to not reflect what was selected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.21.2
    • User Profiles

    Description

      Issue Summary

      Unicode is being resolved in the user mention, for example if you name was ὠilliam you'd be able to type your mention like @"\u1f60illiam" which is same as typing @ὠilliam.

      However in case where there are two usernames \u1f60 and ὠ:

      while typing \u in @ user mention the drop down selection shows the user \u1f60 (pre-render)

      However once the comment is saved after user selection, it performs a post-rendering of the unicode characters giving a totally different result. It can either select a totally different user or render into a different unicode character failing the user mention.

      This can cause user selecting one user but the unicode render converting it to a different user.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      • Have two users with usernames \u1f60 and  respectively.
      • Try to mention the user \u1f60 in any pull request.

      Expected Results

      • The dropdown selection will list the user \u1f60.

      Actual Results

      • Even though the user \u1f60 will be listed in the drop down, once selected and saved it will be rendered to the user ὠ.

      Workaround

      To disable unicode rendering need to escape using double backslash in the user mention.

      Attachments

        1. user1.jpg
          user1.jpg
          264 kB
        2. user2.jpg
          user2.jpg
          188 kB
        3. username.jpg
          username.jpg
          273 kB

        Activity

          People

            Unassigned Unassigned
            ce91f45cf510 Karthik Mahesh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: