You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2005/06/01 08:28:59 UTC

DO NOT REPLY [Bug 35148] - URI.parseUriReference treats strings with leading ':' as absolute URIs with zero-length scheme

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=35148>.
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=35148





------- Additional Comments From rolweber@de.ibm.com  2005-06-01 08:28 -------
The colon is a reserved character, which means it may or may not have
to be escaped, depending on where it occurs. RFC 2396 includes the
following statements:

[section 2.2, page 7]
   ... If the data for a URI component would conflict with the
   reserved purpose, then the conflicting data must be escaped before
   forming the URI.

[bottom of page 16, top of page 17]
   Authors should be aware that a path segment which contains a colon
   character cannot be used as the first segment of a relative URI path
   (e.g., "this:that"), because it would be mistaken for a scheme name.

   It is therefore necessary to precede such segments with other
   segments (e.g., "./this:that") in order for them to be referenced as
   a relative path.

An application with a user interface, such as a browser, has to deal with
non-standard input and may interpret data in the way that is most likely
to make sense. For HttpClient however, it is desirable - and essential -
that data gets interpreted as stated in the relevant specifications.

Though the WWW seems to be guided by what a particular browser does rather
than by specifications, we strive to set an example, within our domain :-)
 
cheers,
  Roland

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org