Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-24100

Failed to read test report file: Invalid byte 2 of 3-byte UTF-8 sequence.

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
    • 10.2.37
    • Tests
    • None

    Description

      xml test reports are not valid sometimes if contain unicode sequences.

      abychko@Alexeys-Mini ~ % xmllint Downloads/mtr-normal.xml
      Downloads/mtr-normal.xml:2749: parser error : Input is not proper UTF-8, indicate encoding !
      Bytes: 0xE5 0x73 0x27 0x29
      -slave-bin.000001	#	Annotate_rows	1	#	INSERT INTO t5(b) VALUES ('g�s')
      

      we widely use xml reports from MTR, so we need to fix unicode output everywhere.

      original line from xml:

      -slave-bin.000001	#	Annotate_rows	1	#	INSERT INTO t5(b) VALUES ('gås')
      

      Attachments

        Issue Links

          Activity

            probably it's a ticket for all versions, because every version can dump unicode beyond utf-8 set

            abychko Alexey Bychko (Inactive) added a comment - probably it's a ticket for all versions, because every version can dump unicode beyond utf-8 set

            I would suggest the following deterministic test case:

            SELECT _latin1 0xe527;
            

            Write the same line to both a .test and a .result file. The diff command will produce a difference due to 2 lines missing from the .result. That difference will contain the invalid UTF-8 sequence 0xe5 0x27. The byte 0xe5 is supposed to be followed by a non-ASCII byte.

            marko Marko Mäkelä added a comment - I would suggest the following deterministic test case: SELECT _latin1 0xe527; Write the same line to both a .test and a .result file. The diff command will produce a difference due to 2 lines missing from the .result . That difference will contain the invalid UTF-8 sequence 0xe5 0x27. The byte 0xe5 is supposed to be followed by a non-ASCII byte.

            People

              ratzpo Rasmus Johansson (Inactive)
              abychko Alexey Bychko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.