hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sung-Gu" <jeri...@apache.org>
Subject Re: [PATCH] relative URIs
Date Tue, 28 Jan 2003 03:45:22 GMT

----- Original Message ----- 
From: "Michael Becke" <becke@u.washington.edu>
Subject: [PATCH] relative URIs


> Attached is a patch and test case for a few minor bugs I discovered in 
> the URI(URI, URI) constructor.  The patch changes the following:
> 
> - fixes the case when the second arg to URI(URI,URI) is just a fragment 
> (e.g. "#s").  According to RFC 2396 a relative reference that is just a 
> fragment should resolve to the "current document" plus the fragment.  I 
> took this to mean that URI( "http://a/b/c/d;p?q", "#s" ) should resolve 
> to "http://a/b/c/d;p?q#s".  Please let me know if this seems incorrect.

Isn't it?  then a bug... :(
It seems like query not to be resolved ... 

> - changes setURI() to no longer ignores fragments, getURI() and 
> toString() now return the full URI including the fragment.

There is getURIReference().   That's not like getURI().
Actually, URI and URI-reference is different... 

In common, on both protocol and document uses,
an URI is effective...  not URI-reference.  That's why...

Sung-Gu

Mime
View raw message