[jira] Updated: (SUREFIRE-343) html escaping problems in xml reports
[ http://jira.codehaus.org/browse/SUREFIRE-343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marat Radchenko updated SUREFIRE-343: - Attachment: SUREFIRE-343.patch patch > html escaping problems in xml reports > - > > Key: SUREFIRE-343 > URL: http://jira.codehaus.org/browse/SUREFIRE-343 > Project: Maven Surefire > Issue Type: Bug > Components: xml generation >Affects Versions: 2.0 (2.2 plugin) >Reporter: Brydie McCoy >Priority: Minor > Fix For: 2.3.1 > > Attachments: SUREFIRE-343.patch > > > Hi, > I'm having some problems with the escaping of html specific characters > (namely the < and >) in the surefire reports. > The following example test: > {code} >public void testShouldFail() throws Exception > { > fail(" This Failed "); >} > {code} > resulted in the following xml report > {code} > > message="<html><body><h2> This > Failed </h2></body></html>"> > junit.framework.AssertionFailedError: > &html&&body&&h2& This Failed > &/h2&&/body&&/html& > at junit.framework.Assert.fail(Assert.java:47) > at FailingTest.testShouldFail(FailingTest.java:7) > > > {code} > The text in the "message' attribute has been correctly escaped but the text > within the tags seems to just have & for any of the html > characters. -- 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
[jira] Updated: (SUREFIRE-343) html escaping problems in xml reports
[ http://jira.codehaus.org/browse/SUREFIRE-343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brett Porter updated SUREFIRE-343: -- Fix Version/s: 2.3.1 > html escaping problems in xml reports > - > > Key: SUREFIRE-343 > URL: http://jira.codehaus.org/browse/SUREFIRE-343 > Project: Maven Surefire > Issue Type: Bug > Components: xml generation >Affects Versions: 2.0 (2.2 plugin) >Reporter: Brydie McCoy >Priority: Minor > Fix For: 2.3.1 > > > Hi, > I'm having some problems with the escaping of html specific characters > (namely the < and >) in the surefire reports. > The following example test: > {code} >public void testShouldFail() throws Exception > { > fail(" This Failed "); >} > {code} > resulted in the following xml report > {code} > > message="<html><body><h2> This > Failed </h2></body></html>"> > junit.framework.AssertionFailedError: > &html&&body&&h2& This Failed > &/h2&&/body&&/html& > at junit.framework.Assert.fail(Assert.java:47) > at FailingTest.testShouldFail(FailingTest.java:7) > > > {code} > The text in the "message' attribute has been correctly escaped but the text > within the tags seems to just have & for any of the html > characters. -- 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