[ 
https://issues.apache.org/jira/browse/XERCESJ-1598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Glavassevich updated XERCESJ-1598:
------------------------------------------

    Component/s: Serialization
    
> XMLEntityManager.createOutputStream does not decode file URI properly
> ---------------------------------------------------------------------
>
>                 Key: XERCESJ-1598
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1598
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: Serialization
>    Affects Versions: 2.11.0
>            Reporter: Vlad Arkhipov
>
> org.apache.xerces.impl.XMLEntityManager.createOutputStream does not decode 
> file URIs. It uses getPathWithoutEscapes(String) but it does not decode 
> 2-byte escape sequences properly (for international symbols).
> It may be better to get rid of this function at all. In 
> org.apache.xerces.impl.XMLEntityManager.createOutputStream instead of
> File file = new File(getPathWithoutEscapes(url.getPath()));
> you may use
> File file = new File(url.toURI().getPath());
> which automatically decode the path in URI. Also constructing URL here is a 
> bit overhead, URI is enough (you may convert it toURL if the protocol is not 
> "file").

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to