NetBSD-Bugs archive

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

Re: bin/57003 (ftp can't handle HTTP redirections?)



The following reply was made to PR bin/57003; it has been noted by GNATS.

From: Kimmo Suominen <kim%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, martin%netbsd.org@localhost, 
	yeti%digitalfoto-model-award.de@localhost
Subject: Re: bin/57003 (ftp can't handle HTTP redirections?)
Date: Sun, 11 Sep 2022 10:15:06 +0300

 Hi all,
 
 The redirect is valid. A relative URI has been allowed in the
 Location: header since at least June 2014 in RFC-7231. It obsoleted
 RFC-2616 from June 1999, which did require an absolute URI.
 
 RFC-7231 has been obsoleted by RFC-9110 in June 2022, but the
 specification for the Location header did not change.
 
 So ftp(1) appears to have a bug where it is not resolving the relative
 URI into an absolute one.
 
 On Debian 11.4:
 
 : beowulf:/tmp/kim; ftp about:version
 Version: tnftp 20200705
 
 : beowulf:/tmp/kim; ftp
 https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
 Trying [2a04:4e42:3a::262]:443 ...
 Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
 Redirected to /pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz
 ftp: Can't lookup
 `/pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz:ftp':
 Name or service not known
 ftp: Can't connect or login to host
 `/pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz:?'
 Exit 1
 
 On NetBSD 9.99.99 (202208051900Z):
 
 : revolutions:/tmp/kim; ftp about:version
 Version: NetBSD-ftp 20210826
 
 : revolutions:/tmp/kim; ftp
 https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
 Trying [2a04:4e42:3a::262]:443 ...
 Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
 Redirected to /pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz
 ftp: Can't lookup
 `/pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz:ftp':
 No address associated with hostname
 ftp: Can't connect or login to host
 `/pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz:?'
 Exit 1
 
 Kind regards,
 + Kimmo
 


Home | Main Index | Thread Index | Old Index