DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30536>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30536

"file:../whatever.ent" is never found

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From [EMAIL PROTECTED]  2004-08-09 13:21 -------
I don't know what something like "file:../whatever.ent" means for the file 
protocol but in URI syntax [1] this is an absolute URI which has an opaque 
part, not a relative path.

URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
absoluteURI   = scheme ":" ( hier_part | opaque_part )
hier_part     = ( net_path | abs_path ) [ "?" query ]
net_path      = "//" authority [ abs_path ]
abs_path      = "/"  path_segments
opaque_part   = uric_no_slash *uric

The parser delgates loading of resources to java.net.URL. Before doing this, 
the parser will resolve the URI against a base URI. Since the 
URI "file:../whatever.ent" is already absolute, the result of resolution will 
be itself. See section 5.2 in RFC 2396 which says: "Due to a loophole in prior 
specifications [RFC1630], some parsers allow the scheme name to be present in a 
relative URI if it is the same as the base URI scheme.  Unfortunately, this can 
conflict with the correct parsing of non-hierarchical URI.If there's a problem 
here at all, I disagree that it's with the parser". The parser is not required 
to interpret the URI this way.

By the way, Bugzilla is no longer the place to be reporting bugs against Xerces-
J. The project has moved to JIRA [2].

[1] http://www.ietf.org/rfc/rfc2396.txt?number=2396
[2] http://nagoya.apache.org/jira/browse/XERCESJ

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to