maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Gudian (JIRA)" <j...@codehaus.org>
Subject [jira] (MSHARED-282) StringIndexOutOfBoundsException in m-s-u XMLEncode if carriage-return is the last character
Date Sat, 06 Apr 2013 10:46:52 GMT

     [ https://jira.codehaus.org/browse/MSHARED-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Gudian closed MSHARED-282.
----------------------------------

    Resolution: Fixed

fixed with r1465221
                
> StringIndexOutOfBoundsException in m-s-u XMLEncode if carriage-return is the last character
> -------------------------------------------------------------------------------------------
>
>                 Key: MSHARED-282
>                 URL: https://jira.codehaus.org/browse/MSHARED-282
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-shared-utils
>    Affects Versions: maven-shared-utils-0.3
>            Reporter: Andreas Gudian
>            Assignee: Andreas Gudian
>             Fix For: maven-shared-utils-0.4
>
>
> Reported with SUREFIRE-981
> When adding an attribute that ends with '\r', we get the following exception:
> {code}
> 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)
> {code}

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

Mime
View raw message