Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-21442

Incorrect character comparison between different collation for MySQL

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Timed out
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Detailed explanation can be found at:

      What this means for JIRA is that you might get duplicate result for different values as an affect of how MySQL handles character comparison.

      For example you might see errors such as:

      Cause:
      java.lang.RuntimeException: java.lang.RuntimeException: Found more than one user with name 'melgstrom'; ids [GenericEntity:OSUser][id,14773][name,melgström][passwordHash,x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A==], [GenericEntity:OSUser][id,15020][name,melgstrom][passwordHash,x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A==] 
      

      Making the coresponding select statement in MySQL returns:

      mysql> select * from userbase where username = 'melgstrom';
      +-------+------------+------------------------------------------------------------------------------------------+
      | ID    | username   | PASSWORD_HASH                                                                            |
      +-------+------------+------------------------------------------------------------------------------------------+
      | 14773 | melgström  | x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A== |
      | 15020 | melgstrom  | x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A== |
      +-------+------------+------------------------------------------------------------------------------------------+
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hchen@atlassian.com Han Chen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: