[MDEV-23649]  An invalid XML character in mysql_test_run output Created: 2020-09-02  Updated: 2020-11-23  Resolved: 2020-11-23

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.2.37

Type: Bug Priority: Major
Reporter: Oleksandr Byelkin Assignee: Rasmus Johansson (Inactive)
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-24100 Failed to read test report file: Inva... Closed
relates to MDEV-24106 mariabackup crashes when called witho... Closed

 Description   

there could be \007 in error messages which break XML
appears here

$xml_report .= qq(>\n\t\t\t<failure message="" type="MTR_RES_FAILED">\n<![CDATA[$logcontents]]>\n\t\t\t</failure>\n\t\t</testcase>\n);



 Comments   
Comment by Oleksandr Byelkin [ 2020-09-02 ]

It looks like 007 coud be the only unprinted symbols (diff will not show something unprinted). So I will just filter out 007.

Comment by Sergei Golubchik [ 2020-09-02 ]

another option would be to use xml 1.1, not xml 1.0

according to https://www.w3.org/TR/xml/#charsets, xml 1.0 allowed only #x9, #xA, and #xD from the ASCII control characters.

but xml 1.1 (https://www.w3.org/TR/xml11/#charsets) allows everything, excluding only #x0

Comment by Rasmus Johansson (Inactive) [ 2020-11-23 ]

Fixed in MDEV-24100.

Generated at Thu Feb 08 09:24:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.