maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Fabulich (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (SUREFIRE-456) Surefire doubly XML-escapes non-visible control characters
Date Mon, 11 Feb 2008 22:59:28 GMT

     [ http://jira.codehaus.org/browse/SUREFIRE-456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dan Fabulich updated SUREFIRE-456:
----------------------------------

    Description: 
It's illegal to include a non-visible control character in XML, even as a character entity.
 e.g. "&amp;#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 &amp;#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;amp;#x0;" instead of "&amp;#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).



  was:
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).




> Surefire doubly XML-escapes non-visible control characters
> ----------------------------------------------------------
>
>                 Key: SUREFIRE-456
>                 URL: http://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: Future
>
>
> It's illegal to include a non-visible control character in XML, even as a character entity.
 e.g. "&amp;#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 &amp;#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;amp;#x0;" instead of "&amp;#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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message