[
https://issues.apache.org/jira/browse/XERCESJ-1598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534922#comment-13534922
]
Michael Glavassevich commented on XERCESJ-1598:
-----------------------------------------------
Xerces-J still provides support for Java 1.3 so cannot use java.net.URI.
> 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]