Subject: bin/30802: ftp(1) doesn't use ftp/http proxies in interactive mode
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <mishka@apk.od.ua>
List: netbsd-bugs
Date: 07/21/2005 13:33:01
>Number:         30802
>Category:       bin
>Synopsis:       ftp(1) doesn't use ftp/http proxies in interactive mode
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 21 13:33:00 +0000 2005
>Originator:     Mike M. Volokhov
>Release:        NetBSD current
>Organization:
ISPK
>Environment:
All ftp clients at NetBSD and pkgsrc systems
>Description:

	Greetings!

	The ftp(1) utility is used to fetch files via HTTP and FTP
	protocols. When autofetch feature is used (i.e. full URL specified
	as argument to command) it is possible to use ftp_proxy and
	http_proxy environment variables to redirect request via HTTP/FTP
	proxy.

	But in interactive mode all proxy setting are ignored and ftp(1)
	always connects directly to remote host specified at 'open' command.

	This creates a lot of real troubles for pkgsrc users when installing
	prebuilded binary packages using pkg_add(8) command. The pkg_add
	disallows to specify any external fetch program, like wget, and
	massively use NetBSD ftp(1) in interactive mode. Thus, for proxied
	users it's just impossible to download packages.

>How-To-Repeat:

	Be sure you have no direct connection to any FTP/HTTP servers
	where packages resides. Also, setup ftp(1) to nearest proxy.
	Then, try to add the packages:

		pkg_add ftp://ftp.NetBSD.org/...

	Obscure the problem.
	
>Fix:

	Unfortunately, not implemented.