[ http://jira.codehaus.org/browse/SUREFIRE-20?page=all ]
     
Brett Porter closed SUREFIRE-20:
--------------------------------

     Assign To: Brett Porter  (was: Jason van Zyl)
    Resolution: Duplicate

> The test results XML produced by surefire doesn't escape quotes properly, 
> resulting in invalid XML
> --------------------------------------------------------------------------------------------------
>
>          Key: SUREFIRE-20
>          URL: http://jira.codehaus.org/browse/SUREFIRE-20
>      Project: surefire
>         Type: Bug
>     Versions: 1.5
>  Environment: OSX 10.4.3, java 1.4.2_09
>     Reporter: Julian Wood
>     Assignee: Brett Porter
>  Attachments: TEST-ca.ucalgary.commons.pmgt.ModelTest.xml
>
>
> When surefire runs junit tests, as part of it's XML output, it takes your 
> java system properties and creates a properties element. If Any of the 
> properties have quotes in them, they are not escaped. For example (file 
> attached as well):
> <testsuite errors="0" tests="9" time="2.972" failures="0" 
> name="ca.ucalgary.commons.pmgt.ModelTest">
>   <properties>
>     <property value="Java(TM) 2 Runtime Environment, Standard Edition" 
> name="java.runtime.name"/>
>     <property 
> value="/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries" 
> name="sun.boot.library.path"/>
>     <property value="1.4.2-54" name="java.vm.version"/>
>     <property value="true" name="awt.nativeDoubleBuffering"/>
>     <property value="false" name="gopherProxySet"/>
>     <property value=""Apple Computer, Inc."" name="java.vm.vendor"/>
>     <property value="http://apple.com/"; name="java.vendor.url"/>
>     ...
> Note the value of java.vm.vendor is "Apple Computer, Inc", including the 
> quotes. They should be replaces with their entity (&quot;) equivalent.
> The surefire report plugin subsequently errors on validatiion of this file.
> Thanks,
> J

-- 
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

Reply via email to