Debian Bug report logs -
#708372
don't say "100%" until the file is really fully transmitted
Reported by: jidanni@jidanni.org
Date: Wed, 15 May 2013 12:09:02 UTC
Severity: important
Found in version openssh/1:6.2p1-3
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, tri@iki.fi, ylo@cs.hut.fi, Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>:
Bug#708372; Package openssh-client.
(Wed, 15 May 2013 12:09:06 GMT) (full text, mbox, link).
Acknowledgement sent
to jidanni@jidanni.org:
New Bug report received and forwarded. Copy sent to tri@iki.fi, ylo@cs.hut.fi, Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>.
(Wed, 15 May 2013 12:09:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
X-Debbugs-Cc: tri@iki.fi,ylo@cs.hut.fi
Package: openssh-client
Version: 1:6.2p1-3
Severity: important
scp prints "100%" at the very beginning of the transmission.
Whereupon people think the job is done and close down their computers
only to discover the next day the file was not fully transmitted to
their boss after all etc. etc.
$ scp big_file mysite.com:
dieyuan_logo_1181x1073.jpg 100% 794KB 793.9KB/s 00:00
It should wait for the file to really be fully transited before saying that!
A clear and undeniable bug.
Try it on a slow connection for proof!
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>:
Bug#708372; Package openssh-client.
(Fri, 24 May 2013 22:18:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Colin Watson <cjwatson@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>.
(Fri, 24 May 2013 22:18:04 GMT) (full text, mbox, link).
Message #10 received at 708372@bugs.debian.org (full text, mbox, reply):
On Wed, May 15, 2013 at 08:05:54PM +0800, jidanni@jidanni.org wrote:
> X-Debbugs-Cc: tri@iki.fi,ylo@cs.hut.fi
These people wrote the original version of scp, but I don't believe they
have been involved since OpenSSH was created. Please don't bother them
about this.
> scp prints "100%" at the very beginning of the transmission.
> Whereupon people think the job is done and close down their computers
> only to discover the next day the file was not fully transmitted to
> their boss after all etc. etc.
>
> $ scp big_file mysite.com:
> dieyuan_logo_1181x1073.jpg 100% 794KB 793.9KB/s 00:00
>
> It should wait for the file to really be fully transited before saying that!
I agree that this is a bug. Unfortunately it turns out to be difficult
to fix for the reasons given in the OpenSSH FAQ:
http://www.openssh.org/faq.html#2.10
Specifically, a natural fix for this bug would require extending the scp
"protocol" to have the sink end of the connection send acknowledgements
back to the source each time it's received a chunk of data. Given
interoperability requirements, I think this is very unlikely to be
feasible.
Normally, the answer to this kind of thing would be "use sftp instead".
However, I checked and it has the same bug, even though the SFTP
protocol does involve sending back acknowledgement messages after
receiving each chunk of data. That means this is just a client bug, so
it should be quite tractable, and indeed was only a few minutes' work.
I filed https://bugzilla.mindrot.org/show_bug.cgi?id=2108 upstream with
a patch which fixes sftp's progress meter to behave as you request; I
hope they'll accept that.
Now, that only provides a workaround in the form of using a different
program, and doesn't really fix this bug properly since for many
purposes scp's interface is more convenient. I have been meaning for a
long time to convert scp into an SFTP client under the covers, when it
isn't being called in such a way that requires it to speak the old
protocol. If I ever manage to do that, or anyone else for that matter,
then that would allow this bug to be fixed properly, along with a number
of others. Until then it will have to be blocked.
Thanks,
--
Colin Watson [cjwatson@debian.org]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>:
Bug#708372; Package openssh-client.
(Sat, 25 May 2013 08:21:13 GMT) (full text, mbox, link).
Acknowledgement sent
to jidanni@jidanni.org:
Extra info received and forwarded to list. Copy sent to Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>.
(Sat, 25 May 2013 08:21:13 GMT) (full text, mbox, link).
Message #15 received at 708372@bugs.debian.org (full text, mbox, reply):
Thanks.
Good thing banks don't work that way.
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>:
Bug#708372; Package openssh-client.
(Sat, 25 May 2013 10:12:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Jordon Bedwell <jordon@envygeeks.com>:
Extra info received and forwarded to list. Copy sent to Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>.
(Sat, 25 May 2013 10:12:04 GMT) (full text, mbox, link).
Message #20 received at 708372@bugs.debian.org (full text, mbox, reply):
On Sat, May 25, 2013 at 3:16 AM, <jidanni@jidanni.org> wrote:
> Thanks.
> Good thing banks don't work that way.
Too bad they do from a consumer point of view.
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>:
Bug#708372; Package openssh-client.
(Fri, 26 Dec 2014 05:06:05 GMT) (full text, mbox, link).
Acknowledgement sent
to 積丹尼 Dan Jacobson <jidanni@jidanni.org>:
Extra info received and forwarded to list. Copy sent to Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>.
(Fri, 26 Dec 2014 05:06:05 GMT) (full text, mbox, link).
Message #25 received at 708372@bugs.debian.org (full text, mbox, reply):
Please confirm that
https://bugzilla.mindrot.org/show_bug.cgi?id=2108
has been applied and
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708372
can be closed.
I think the bug is still there in 1:6.7p1-3.
But I can't tell, as there are two changelogs etc.
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Mar 25 18:22:56 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.