[ http://jira.codehaus.org/browse/SUREFIRE-18?page=all ]
     
Carlos Sanchez closed SUREFIRE-18:
----------------------------------

      Assign To: Carlos Sanchez  (was: Jason van Zyl)
     Resolution: Fixed
    Fix Version: 1.5.2

Fixed upgrading to plexus-utils 1.0.5

> XML test report does not have quotes escaped in attribute values
> ----------------------------------------------------------------
>
>          Key: SUREFIRE-18
>          URL: http://jira.codehaus.org/browse/SUREFIRE-18
>      Project: surefire
>         Type: Bug

>     Versions: 1.4
>  Environment: Mac OS X 10.4.3, Java 1.4.2_09
>     Reporter: Jerry Charumilind
>     Assignee: Carlos Sanchez
>      Fix For: 1.5.2

>
>
> When I run my tests using maven ('mvn test'), the XML test reports that are 
> generated have an invalid element for the 'java.vm.vendor' property.  The 
> Apple VM seems to set this to '"Apple Computer, Inc."' (note the double 
> quotes).
> Here is a snippet from the generated test report, TEST-foo.FooTest.xml
> <?xml version="1.0" encoding="UTF-8" ?>
> <testsuite errors="0" tests="1" time="0.014" failures="0" name="foo.FooTest"
>   <properties>
>     <property value="Java(TM) 2 Runtime Environment, Standard Edition" 
> name="jav
>     <property 
> value="/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/
>     <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"/>
>     <property value=":" name="path.separator"/>
>     <property value="Java HotSpot(TM) Client VM" name="java.vm.name"/>
>     <property value="sun.io" name="file.encoding.pkg"/>
> Note that the 'java.vm.vendor' element has double quotes inside the value 
> instead of &quot;.  I believe that this is invalid.  I think that the line 
> should instead read:
>     <property value="&quot;Apple Computer, Inc.&quot;" name="java.vm.vendor"/>
> I believe that the offending code is in XMLReporter where the property 
> elements value is set.  I'm not sure if it is the responsibility of this code 
> or the code in Xpp3Dom that should munge the double quotes.
> The end result of all of this is that my 'mvn site:site' throws lots of 
> errors since the test report XML parsing fails for surefire reporting.

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