Bug 166338 - HTTP install can't handle redirects
Summary: HTTP install can't handle redirects
Status: CLOSED DUPLICATE of bug 152285
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rpm   
(Show other bugs)
Version: 4.0
Hardware: i386
OS: Linux
Target Milestone: ---
: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2005-08-19 13:02 UTC by Andrew Benham
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-28 20:19:51 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Andrew Benham 2005-08-19 13:02:35 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6

Description of problem:
Want to be able to download the current version of our own corporate packages
in automated scripts.  Don't want to have to search for explicit version/release
A web server has all the details:

$ telnet cvs.thus.net 80
Connected to cvs.thus.net (
Escape character is '^]'.
GET /cgi-bin/pkgget.cgi/THUSdisktype/RedHat-EL.4-i386 HTTP/1.0
Host: cvs.thus.net

HTTP/1.1 302 Moved
Date: Fri, 19 Aug 2005 12:56:41 GMT
Server: Apache/1.3.19 (Unix)
location: http://cvs.thus.net/pub/packages/main/RedHat-EL.4-i386/THUSdisktype-8-1.i386.rpm
Connection: close
Content-Type: text/plain

Connection closed by foreign host.

The redirected location exists, is correct, and is downloadable.

However RPM can't install using this URL:

$ rpm -ivh http://cvs.thus.net/cgi-bin/pkgget.cgi/THUSdisktype/RedHat-EL.4-i386
Retrieving http://cvs.thus.net/cgi-bin/pkgget.cgi/THUSdisktype/RedHat-EL.4-i386
error: skipping http://cvs.thus.net/cgi-bin/pkgget.cgi/THUSdisktype/RedHat-EL.4-i386 - transfer failed - Unknown or unexpected error

Fedora Core 4 fails in a different manner:

$ rpm -ivh http://cvs.thus.net/cgi-bin/pkgget.cgi/THUSdisktype/RedHat-FC.4-i386
Retrieving http://cvs.thus.net/cgi-bin/pkgget.cgi/THUSdisktype/RedHat-FC.4-i386
/var/tmp/rpm-xfer.tpt4qG: not an rpm package (or package manifest):

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Create script to redirect to a valid URL
2. Use 'rpm -i' with the script's URL

Actual Results:  "Unknown or unexpected error"

Expected Results:  Package installed.

Additional info:

Comment 1 Paul Nasrat 2005-08-19 14:08:27 UTC
Note, as documented on https://bugzilla.redhat.com/ all RHEL support requests
should be directed through support to obtain correct prioritisation, etc.


Out of curiosity why aren't you using up2date with a repository/channel setup up
for your corporate packages?

Comment 2 Andrew Benham 2005-08-19 14:15:12 UTC
Because we want exactly one solution to cover all our supported platforms -
FreeBSD, HP-UX,  RedHat Enterprise Linux, Fedora Core Linux, and Solaris.

Comment 3 Paul Nasrat 2005-11-28 20:19:51 UTC

*** This bug has been marked as a duplicate of 152285 ***

Note You need to log in before you can comment on or make changes to this bug.