| Summary: | does not seem to support sftp protocol version 5 rename flag for overwriting files | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Martin Steigerwald <ms> |
| Component: | sftp-server | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED WORKSFORME | ||
| Severity: | enhancement | CC: | djm, dtucker |
| Priority: | P5 | ||
| Version: | 6.0p1 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
|
Description
Martin Steigerwald
2013-07-01 20:01:20 AEST
git repo of script is at: git://oss.teamix.org/distkeys.git tag to reproduce problem is: openssh-bug-2123 Thanks, Martin OpenSSH does not support sftp protocol version 5 and given the required complexity to do so is unlikely to any time soon.
It does implement a vendor extension to protocol version 3 ("posix-rename@openssh.com") that does what you want.
The details are in
http://openssh.com/specs.html and http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL?rev=HEAD;content-type=text/plain
Thanks, Darren, reported issue upstream at:
please support protocol version 3 ("posix-rename@openssh.com")
https://github.com/net-ssh/net-sftp/issues/31
Since Ruby Net SCP does not yet seem to support renames I am using the delete first, rename them work-around for now to get distkeys compatible with Ruby 1.9 until a more solution becomes viable.
Closing: this looks like a bug in ruby-net-ssh rather than sftp-server. Damien, huh? It is an SFTP v5 protocol feature that OpenSSH does not support. In what way is this SFTP v5 protocol less important than the vendor extension to protocol version 3 ("posix-rename@openssh.com").
In other words: I do not agree to the notion of "we don't support this feature of the protocol, but the client uses is, thus its the client fault" I read out of your statement.
Resolution "WORKSFORME" also does not seem to apply or did you test with recent version of ruby-net-sftp or did you at least test the vendor extension rename function?
It's totally the client's fault if it calls a protocol method that doesn't exist for the revision of the protocol that the server advertises. We decided long ago not to support versions of the sftp protocol after 3; the standards process ran off the rails at that point. We're happy to add specific features that people need as protocol extensions (and document them in our PROTOCOL file). Hmmm, okay, the server doesn't advertise V5. Well. Close all resolved bugs after 7.3p1 release |