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

Re: grammar weirdness

From: Roy T. Fielding <fielding@gbiv.com>
Date: Tue, 2 Mar 2004 18:14:53 +0100
Cc: uri@w3.org
To: Rob Cameron <cameron@cs.sfu.ca>
Message-Id: <1EC07912-6C6D-11D8-B018-000393753936@gbiv.com>

Yes, the grammar issue was noted by Ray Merkert on Feb 17th.

> Perhaps the following text is appropriate.
> "An ABNF-driven parser will find that the border between
> authority and path is ambiguous; they are disambiguated by the
> "first-match-wins" (a.k.a. "greedy") algorithm.  This produces
> correct results whenever the authority is absent or the first
> segment of the path is empty.   Although the grammar permits
> a nonempty path in the presence of an authority component,
> the URI is considered ill-formed in this case."

Note that the text already says a more forceful equivalent
in section 3.3:

                                              If a URI contains an
    authority component, then the initial path segment must be empty
    (i.e., the path must begin with a slash ("/") character or be
    entirely empty).

Is that not sufficient?

Received on Tuesday, 2 March 2004 13:29:15 UTC

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