Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
maven-shared-utils-0.3
-
None
Description
Reported with SUREFIRE-981
When adding an attribute that ends with '\r', we get the following exception:
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 38 at java.lang.String.charAt(String.java:686) at org.apache.maven.surefire.shade.org.apache.maven.shared.utils.xml.XMLEncode.xmlEncodeTextAsPCDATA(XMLEncode.java:166) at org.apache.maven.surefire.shade.org.apache.maven.shared.utils.xml.XMLEncode.xmlEncodeTextForAttribute(XMLEncode.java:59) at org.apache.maven.surefire.shade.org.apache.maven.shared.utils.xml.PrettyPrintXMLWriter.addAttribute(PrettyPrintXMLWriter.java:159)
Attachments
Attachments
Issue Links
- is depended upon by
-
SUREFIRE-981 Surefire hangs if forked test name ends with carriage return
- Closed