DefaultURIResolver doesn't resolve JAR style URLs properly
----------------------------------------------------------
Key: WSCOMMONS-474
URL: https://issues.apache.org/jira/browse/WSCOMMONS-474
Project: WS-Commons
Issue Type: Bug
Components: XmlSchema
Affects Versions: XmlSchema 1.4.2
Reporter: Andreas Veithen
Priority: Minor
DefaultURIResolver is unable to resolve entities against a base URI of the
following form:
jar:file:/D:/data/my.jar!/package/schema.xsd
The reason is that resolveEntity uses java.net.URI: the URI is opaque and
java.net.URI doesn't resolve relative URIs against opaque URIs. The original
version of DefaultURIResolver (r396478) used java.net.URL and worked perfectly
in that case. This was broken in r400374.
The impact of this issue is that it is not possible to load schemas from the
classpath, if they have imports and DefaultURIResolver is used.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.