Subject: bin/28697: Proxied ftp (re)fetch displays size wrongly
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <mjl@netbsd.org>
List: netbsd-bugs
Date: 12/17/2004 23:36:00
>Number:         28697
>Category:       bin
>Synopsis:       Proxied ftp (re)fetch displays size wrongly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 17 23:36:00 +0000 2004
>Originator:     Martin J. Laubach
>Release:        NetBSD 2.0_RC4
>Organization:
>Environment:
System: NetBSD asparagus.emsi.priv.at 2.0_RC4 NetBSD 2.0_RC4 (ASPARAGUS) #1: Sun Oct 10 23:46:50 CEST 2004 mjl@asparagus.emsi.priv.at:/home/users/mjl/netbsd/cvs/src/sys20/arch/i386/compile/ASPARAGUS i386
Architecture: i386
Machine: i386

$ ident /usr/bin/ftp
/usr/bin/ftp:
     $NetBSD: crt0.c,v 1.13 2003/07/26 19:24:27 salo Exp $
     $NetBSD: cmds.c,v 1.102 2003/08/07 11:13:52 agc Exp $
     $NetBSD: cmdtab.c,v 1.41 2003/08/07 11:13:53 agc Exp $
     $NetBSD: complete.c,v 1.38 2000/05/01 10:35:17 lukem Exp $
     $NetBSD: domacro.c,v 1.20 2003/08/07 11:13:53 agc Exp $
     $NetBSD: fetch.c,v 1.146 2003/12/10 12:34:28 lukem Exp $
     $NetBSD: ftp.c,v 1.123 2003/12/10 12:34:28 lukem Exp $
     $NetBSD: main.c,v 1.86 2003/08/07 11:13:56 agc Exp $
     $NetBSD: progressbar.c,v 1.5 2004/03/09 17:04:24 hubertf Exp $
     $NetBSD: ruserpass.c,v 1.29 2003/08/07 11:13:57 agc Exp $
     $NetBSD: util.c,v 1.114 2003/08/07 11:13:57 agc Exp $

>Description:

  When trying to restart an aborted fetch, ftp shows its
progress-bar as if it was continuing the fetch though it
starts at zero.

>How-To-Repeat:


asparagus:30 [~] $ ftp -R  http://www.cincomsmalltalk.com/pub/cstnc/visualworks/vwnc7.3/CST04aNC_dec04.2.iso
Requesting http://www.cincomsmalltalk.com/pub/cstnc/visualworks/vwnc7.3/CST04aNC_dec04.2.iso
  (via proxy.laubach.at:3128)
401 Unauthorized
Username for `CSTCP': mlaubach
Password:
Requesting http://www.cincomsmalltalk.com/pub/cstnc/visualworks/vwnc7.3/CST04aNC_dec04.2.iso
  (via proxy.laubach.at:3128, with authorization)
 67% |************************             |   394 MB   49.14 KB/s  1:05:20 ETA
460844572 bytes retrieved in  2:32:05 (49.31 KB/s)


asparagus:31 [~] $ ls -l CS*
-rw-rw-r--  1 mjl  wheel  460844572 Dec 16 17:36 CST04aNC_dec04.2.iso


asparagus:32 [~] $ ftp -R  http://www.cincomsmalltalk.com/pub/cstnc/visualworks/vwnc7.3/CST04aNC_dec04.2.iso
Requesting http://www.cincomsmalltalk.com/pub/cstnc/visualworks/vwnc7.3/CST04aNC_dec04.2.iso
  (via proxy.laubach.at:3128)
401 Unauthorized
Username for `CSTCP': mlaubach
Password:
Requesting http://www.cincomsmalltalk.com/pub/cstnc/visualworks/vwnc7.3/CST04aNC_dec04.2.iso
  (via proxy.laubach.at:3128, with authorization)
 75% |***************************          |   440 MB   41.58 KB/s    58:18 ETA
^C
HTTP fetch aborted.


asparagus:33 [~] $ !ls
ls -l CS*
-rw-rw-r--  1 mjl  wheel     851968 Dec 18 00:20 CST04aNC_dec04.2.iso


>Fix: