W3C home > Mailing lists > Public > uri@w3.org > November 2004

Re: remove dot segment

From: Roy T. Fielding <fielding@gbiv.com>
Date: Thu, 18 Nov 2004 23:57:39 -0800
Message-Id: <AEDD7A1B-3A00-11D9-8C5A-000393753936@gbiv.com>
Cc: <uri@w3.org>
To: "Martin Balaz" <balaz@ii.fmph.uniba.sk>

On Nov 18, 2004, at 9:17 AM, Martin Balaz wrote:
> I would like to discuss one old problem of the remove_dot_segments 
> function,
> which is not yet solved as I know.
> Following URIs are valid with the respect to the latest rfc2396bis:

No, they are allowed by the syntax.  They are not valid.

    The path segments "." and "..", also known as dot-segments, are
    defined for relative reference within the path name hierarchy.  They
    are intended for use at the beginning of a relative-path reference
    (Section 4.2) for indicating relative position within the
    hierarchical tree of names.  This is similar to their role within
    some operating systems' file directory structure to indicate the
    current directory and parent directory, respectively.  However,
    unlike a file system, these dot-segments are only interpreted within
    the URI path hierarchy and are removed as part of the resolution
    process (Section 5.2).

It doesn't matter what is the result of processing

> file:/x/..//y
> file:x/..//y/

because those are not valid file URIs.

Received on Friday, 19 November 2004 07:58:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:08 UTC