[Swift-devel] URIs in mappers
Mihael Hategan
hategan at mcs.anl.gov
Tue Sep 18 14:45:23 CDT 2007
On Tue, 2007-09-18 at 19:35 +0000, Ben Clifford wrote:
>
> 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)
I shall then update things to do that.
>
> 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).
Actually GridFTP considers relative paths to be relative to CWD
(typically ~). And http servers have that relative to the webroot. So
I'm not sure we should force all paths to be absolute if the
implementations think otherwise.
More information about the Swift-devel
mailing list