You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Todor Todorov (JIRA)" <ji...@codehaus.org> on 2013/07/26 14:01:05 UTC

[jira] (SUREFIRE-1020) Incorrect XML escape in and content of junit xml report

Todor Todorov created SUREFIRE-1020:
---------------------------------------

             Summary: Incorrect XML escape in <system-out> and <system-err> content of junit xml report
                 Key: SUREFIRE-1020
                 URL: https://jira.codehaus.org/browse/SUREFIRE-1020
             Project: Maven Surefire
          Issue Type: Bug
          Components: xml generation
    Affects Versions: 2.15, 2.16
            Reporter: Todor Todorov
            Priority: Blocker
         Attachments: fixed-illegal-escape.patch

JUnit XML report contains invalid XML characters in <system-out> and <system-err> content. The illegal characters handling defined in SUREFIRE-456 doesn't work since version 2.15. The problem is that *EncodingOutputStream* in *StatelessXmlReporter* does not convert the illegal XML characters to their string representation (e.g. 0 -> "0").

Please find attached a possible fix for this issue as well as extended test case that includes illegal XML characters in system-out and system-err content.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira