You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/11/25 21:48:25 UTC
[jira] (SUREFIRE-456) Surefire doubly XML-escapes non-visible
control characters
[ https://jira.codehaus.org/browse/SUREFIRE-456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed SUREFIRE-456.
-----------------------------------
Resolution: Won't Fix
Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.
> Surefire doubly XML-escapes non-visible control characters
> ----------------------------------------------------------
>
> Key: SUREFIRE-456
> URL: https://jira.codehaus.org/browse/SUREFIRE-456
> Project: Maven Surefire
> Issue Type: Bug
> Components: xml generation
> Affects Versions: 2.4.2
> Reporter: Dan Fabulich
> Priority: Minor
> Fix For: Backlog
>
>
> It's illegal to include a non-visible control character in XML, even as a character entity. e.g. "&#x0;" is illegal in XML, even though it's semantically meaningful.
> http://www.w3.org/TR/1998/REC-xml-19980210#charsets
> Disturbingly, Java's XML serializer will cheerfully print out &#x0; despite the fact that it will refuse to parse that entity.
> As a workaround, for 2.4.2 we're deliberately doublly XML-escaping non-visible control characters, printing them as "&amp;#x0;" instead of "&#x0;" like they're supposed to be. That's better than any alternative I can think of (e.g. throwing the characters away in test results, replacing them with a "?" character).
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)