Red Hat Bugzilla – Bug 23804
rpm doesn't properly download http files with user:passwd specified
Last modified: 2007-04-18 12:30:39 EDT
parsing of the rpm command line for rpm packages located on a remote http
server does not work, rpm complains that the file can not be located
without attempting to authenticate to the remote http server.
user test, passwd test exists for http and ftp service such that the
combination username:passwd of test:test as part of a URL on command line
will download an rpm.
verified for rpm-4.0.4 on a 7.0 machine.
The http server recieving the request logs an attempt to download the file
with status 401 (Authorization Required). Turning off authentication
mechanisms on the http server allows the download to occur successfully.
filename path in both realms is /test/zsh-3.0.8-3.i386.rpm
$ rpm -vv -qip http://test:test@host/test/zsh-3.0.8-3.i386.rpm
open of http://test:test@schooner/test/zsh-3.0.8-3.i386.rpm failed: File
not found on server
$ rpm -vv -qip ftp://test:test@host/test/zsh-3.0.8-3.i386.rpm
D: logging into schooner as test, pw test
D: New Header signature
D: Signature size: 149
D: Signature pad : 3
D: file is not regular -- skipping size check
Name : zsh Relocations: (not relocateable)
Version : 3.0.8 Vendor: Red Hat, Inc.
[package description continues as normally expected]
Adding user@passwd only ever worked using an rpm client
against a TIS firewall http server AFAIK. Yes, TIS firewall
http servers are by no means common these days.
Please open a RFE naming a specific type of firewall
that you wish rpm to function with if you want an implementation.