Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid creating bad CDATA sections #1082

Merged
merged 4 commits into from
Feb 13, 2024
Merged

Conversation

johnynek
Copy link
Collaborator

we have seen a few cases of control characters (escapes) showing up in failure messages, which violates CDATA and causes the junit renderer to throw.

@@ -40,7 +40,7 @@ impl XmlWritable for TestSuite {
.attr("tests", tests.as_str())
.attr("failures", failures.as_str());

writer.write(e).unwrap();
writer.write(e)?;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed this in the cleanups of xml writing unwrap removal.

@johnynek johnynek merged commit ad73a92 into main Feb 13, 2024
5 checks passed
@johnynek johnynek deleted the oscar/20240212_dont_cdata_control branch February 13, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants