Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-22988

Data submitted via dialogs in Japanese (Shift_JIS) systems is corrupted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • High
    • None
    • 4.2
    • None

    Description

      1) Set up JIRA from scratch in Japanese. The default encoding is Shift_JIS.
      2) Create a project and an issue.
      3) Add a comment to the issue using the comment dialog (all dialogs are affected, this is the simplest repro step). Write your comment in Japanese.

      4) Submit the comment.
      5) Look at the characters in the new comment on the view issue page. They are different.

      There appears to be an encoding mixup here. All dialogs are in UTF-8 and the View Issue page is Shift_JIS, but the data isn't being correctly converted from one to the other.

      When the dialog is submitted, it POSTs the data as URL-encoded UTF-8:

      When the View Issue page is generated, it drops those UTF-8 bytes into a Shift_JIS page without converting to Shift_JIS:

      ------------------------------

      By contrast, it works fine if you submit the same comment using the bottom comment box, which is non-dialog.


      becomes

      In this case, the POST is done as URL-encoded Shift-JIS:

      Which then fits nicely into the Shift_JIS-encoded View Issue Page:

      Attachments

        1. Encoding1.png
          Encoding1.png
          10 kB
        2. Encoding2.png
          Encoding2.png
          6 kB
        3. Encoding3.png
          Encoding3.png
          6 kB
        4. Encoding4.png
          Encoding4.png
          3 kB
        5. Encoding5.png
          Encoding5.png
          11 kB
        6. Encoding6.png
          Encoding6.png
          9 kB
        7. Encoding7.png
          Encoding7.png
          6 kB
        8. Encoding8.png
          Encoding8.png
          4 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pwyatt Penny Wyatt (On Leave to July 2021)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: