NetBSD-Bugs archive

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

bin/45116: /usr/bin/ftp fails to parse Content-Range header



>Number:         45116
>Category:       bin
>Synopsis:       /usr/bin/ftp fails to parse Content-Range header
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 04 12:00:00 +0000 2011
>Originator:     Matthew Sporleder
>Release:        5.1
>Organization:
netbsd
>Environment:
NetBSD vc136-15.vc.panix.com 5.1 NetBSD 5.1 (PANIX-VC) #0: Thu Mar 10 01:49:14 
EST 2011  
root%juggler.panix.com@localhost:/misc/obj/misc/devel/netbsd/5.1/src/sys/arch/amd64/compile/PANIX-VC
 amd64
>Description:
I believe the parsing of Content-Range headers is broken in ftp.  This is 
affecting a few packages in pkgsrc.
>How-To-Repeat:
ucspi-tcp $ ftp -d http://www.fefe.de/ucspi/ucspi-tcp-0.88-ipv6.diff19.bz2

isipv6addr: got 0 for http://www.fefe.de/ucspi/ucspi-tcp-0.88-ipv6.diff19.bz2
fetch_url: `http://www.fefe.de/ucspi/ucspi-tcp-0.88-ipv6.diff19.bz2' proxyenv 
`<null>'
parse_url: URL `http://www.fefe.de/ucspi/ucspi-tcp-0.88-ipv6.diff19.bz2'
parse_url: user `<null>' pass `<null>' host www.fefe.de port http(80) path 
`/ucspi/ucspi-tcp-0.88-ipv6.diff19.bz2'
fetch_url: savefile `ucspi-tcp-0.88-ipv6.diff19.bz2'
Requesting http://www.fefe.de/ucspi/ucspi-tcp-0.88-ipv6.diff19.bz2
fetch_url: received `HTTP/1.1 200 Coming Up'
fetch_url: received `Accept-Ranges: bytes'
fetch_url: received `Server: Gatling/0.12'
fetch_url: received `Content-Type: application/octet-stream'
fetch_url: received `Content-Length: 22632'
fetch_url: parsed len as: 22632
fetch_url: received `Date: Mon, 04 Jul 2011 11:45:12 GMT'
fetch_url: received `Last-Modified: Thu, 19 Mar 2009 11:46:48 GMT'
parsed date as: Thu, 19 Mar 2009 07:46:48 -0400
fetch_url: received `Content-Range: bytes 0-22631/22632'
parsed range as: 0-22631/22632
ftp: Received unexpected Content-Range header

>Fix:



Home | Main Index | Thread Index | Old Index