W3C home > Mailing lists > Public > uri@w3.org > October 2002

Re: no parameter in first segment of relative URI?

From: Roy T. Fielding <fielding@apache.org>
Date: Fri, 11 Oct 2002 17:43:37 -0700
Cc: uri@w3.org
To: Stefan Eissing <stefan.eissing@greenbytes.de>
Message-Id: <A4D97CAE-DD7B-11D6-87CB-000393753936@apache.org>

On Friday, October 11, 2002, at 09:43  AM, Stefan Eissing wrote:
> My point is that allowing ':' in path segments makes life more
> complicated than it needs to be.
> Unless there is a compelling reason for allowing unescaped ':'
> in path segments of *hierarchical* URIs, the spec should say that
> ':' needs to be escaped in these segments.

Existing practice is a compelling reason.

> Then, generating correct relative URIs from absolute ones is
> much less painful and less error prone.
> Currently, code that "reliativizes" URIs needs to carefully check
> that the first segment does not contain ':'. If it does, it needs
> to prefix a './' to the relative URI.

If I added your constraint to the syntax, then the code would still
have to do the same thing, since it isn't safe to assume the URI was
revised according to the new spec and it isn't valid to automatically
percent-encode the ":".  Either way, the code remains the same, and
we just piss-off the authors by demanding changes for no purpose.

Received on Friday, 11 October 2002 20:43:50 UTC

This archive was generated by hypermail 2.4.0 : Sunday, 10 October 2021 22:17:41 UTC