[Swift-devel] URIs in mappers

Ben Clifford benc at hawaga.org.uk
Tue Sep 18 14:35:34 CDT 2007



On Tue, 18 Sep 2007, Mihael Hategan wrote:
> > 
> > file://localhost/etc/group dies like this:
> 
> Shouldn't that be file:////etc/group?

localhost or empty host component are the same, according to RFC 1738.

file://localhost/etc/group should behave the same as file:///etc/group 
(which worked in my test)

That document is not particularly explicit as to how the path component is 
to be interpreted. The interpretation I've always seen (eg. Windows and OS 
X command-line launchers, globus-url-copy) is that file: URL paths are 
relative to / so I would expect file:///etc/group to work (which it did) 
and also file://localhost/etc/group to also work (which it did not).

-- 




More information about the Swift-devel mailing list