IETF-SSH archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: I-D ACTION:draft-ietf-secsh-scp-sftp-ssh-uri-00.txt



Sorry I goofed up my response

So how about 

scp://hostname/c:/bin/thingy

Isn't there current a similar problem with ftp urls?

It would seem that in order to form the URL you would have to convert
path-separators into / to fit into URL syntax. I think this is what is
done with FTP.  Currently I don't have access to a windows FTP server to
test out this theory.  

I guess the difference is that in FTP you have an explicit change
directory command that you can interpret each path element to be an
argumant for.  I'm not sure if SCP has this concept.  In any case we
will have to be a bit more specific about the handling of path elements
SCP and probably SFTP as well.

Joe  

> -----Original Message-----
> From: Simon Tatham [mailto:simon%ixion.tartarus.org@localhost] On 
> Behalf Of Simon Tatham
> Sent: Wednesday, August 13, 2003 11:18 AM
> To: Joseph Salowey
> Cc: ietf-ssh%NetBSD.org@localhost
> Subject: Re: I-D ACTION:draft-ietf-secsh-scp-sftp-ssh-uri-00.txt
> 
> 
> > I wrote:
> >>  - SCP is a bit harder, because AIUI there's no requirement for
> >>    absolute path names on an SCP server to begin with a slash, so
> >>    the stated syntax is potentially ambiguous. (A Windows SCP
> >>    server, for example, is at liberty to begin all its 
> absolute path
> >>    names with "c:\" and "d:\" and so on, I believe.)
> 
> "Joseph Salowey" <jsalowey%cisco.com@localhost> wrote:
> > I'm not sure, but I believe it is acceptable for the absolute path 
> > section to contain C: or d:.
> > 
> > Scp://c:/file.txt
> > 
> > Do you see an issue with this?
> 
> Well, the URI definition said
> 
>   scp_URI = "scp://" [ userinfo "@" ] host [ ":" port ] 
>         [ ; parameter = value ] [ abs_path ]
> 
> So the `abs_path' section starts immediately after the host 
> name, and hence it is expected to begin with a slash:
> 
>   scp://hostname/usr/bin/thingy
>                 ^^^^^^^^^^^^^^^
> 
> If the abs_path doesn't begin with a slash, you get
> 
>   scp://hostnamec:\bin\thingy
> 
> which is clearly useless (and that's without even going into 
> the backslash issue)

> 
> -- 
> Simon Tatham         "_shin_, n. An ingenious device for
> <anakin%pobox.com@localhost>    finding tables and chairs in the dark."
> 




Home | Main Index | Thread Index | Old Index