This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2884 - fn-resolve-uri-3
Summary: fn-resolve-uri-3
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.4
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-16 17:57 UTC by Jerome Simeon
Modified: 2006-06-22 13:02 UTC (History)
0 users

See Also:


Attachments

Description Jerome Simeon 2006-02-16 17:57:07 UTC
"http://" seems to be a valid URI as far as I can tell. The
RFC says that the authority can be absend and the path can be
empty in the following:

      URI         = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
      hier-part   = "//" authority path-abempty
                  ...

   The scheme and path components are required, though the path may be
   empty (no characters).  When authority is present, the path must
   either be empty or begin with a slash ("/") character.  When
   authority is not present, the path cannot begin with two slash
   characters ("//").  These restrictions result in five different ABNF
   rules for a path (Section 3.3), only one of which will match any
   given URI reference.

And my URI library actually accepts it.

I'm not an expert here, though... Any feedback would be appreciated.

- Jerome
Comment 1 Andrew Eisenberg 2006-02-17 19:37:43 UTC
I believe that your argument for the validity of http:// is based on RFC 2396.
RFC 3986 differs, requiring that host be specified:

URI         = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

hier-part   = "//" authority path-abempty
              / path-absolute
              / path-rootless
              / path-empty

authority   = [ userinfo "@" ] host [ ":" port ]

host        = IP-literal / IPv4address / reg-name


So, what we need a URI that bith RFCs agree is invalid.
Comment 2 Carmelo Montanez 2006-03-08 19:23:30 UTC
How about:

http//
Comment 3 Carmelo Montanez 2006-03-10 20:15:19 UTC
Jerome:

Made the URI invalid by removing the ":", please close the bug
if in agreement and able to verify.

Carmelo