Rest API: Wrong UTF8 Data

XMLWordPrintable

    • Severity 3 - Minor

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

      I found a bug within the rest API while we were testing our interface to JIRA, fetching issues from JIRA.

      After creating an issue with 5000 'ä' we get a python error on our side:

      UnicodeDecodeError: 'utf8' codec can't decode bytes in position 8197-8198: invalid data

      Usually this means encoding is set wrong, but in this case, JIRA sends wrong UTF8 Data.

      \xc3\xa4 stands for 'ä' in the utf-8 encoding tab. After 3779 of \xc3\xa4 JIRA adds some extra bytes '\r\nb2c\r\n'.This cuts through the byte of \xc3 and \xa4 making the data unreadable causing the decode error.

      Problem does not exist with 3000 'ä'

        1. bytestring.txt
          40 kB
          Ramon Clematide
        2. data_chunk.png
          13 kB
          Ramon Clematide

            Assignee:
            Unassigned
            Reporter:
            Ramon Clematide
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: