[Bug 278729] New: rpm HTTP client doesn't seem to follow HTTP 302 (redirect)
https://bugzilla.novell.com/show_bug.cgi?id=278729 Summary: rpm HTTP client doesn't seem to follow HTTP 302 (redirect) Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: mls@novell.com ReportedBy: poeml@novell.com QAContact: qa@suse.de CC: tschmidt@novell.com This can be reproduced on 10.1 and 10.2 at least. x86_64 and i586. poeml@batavia510 ~ % rpm -Uvvh --test http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/i586/kop... Retrieving http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/i586/kop... D: ... as /var/tmp/rpm-xfer.yu95CW D: failed to open http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/i586/kop...: error: skipping http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/i586/kop... - transfer failed - Unknown or unexpected error D: May free Score board((nil)) warning: u 0x54fa80 ctrl 0x550d90 nrefs != 0 (software.opensuse.org http) rpm seems to contact software.opensuse.org twice, instead of following the redirect by using the address from the Location header: poeml@batavia510 ~ % strace -econnect,sendto rpm -Uvvh --test http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/i586/kop... Retrieving http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/i586/kop... D: ... as /var/tmp/rpm-xfer.JtmZi2 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0 sendto(3, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0U\0", 20, MSG_NOSIGNAL, NULL, 0) = 20 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0 connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 28) = 0 sendto(3, "\206\371\1\0\0\1\0\0\0\0\0\0\10software\10opensuse\3o"..., 39, 0, NULL, 0) = 39 connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("195.135.221.130")}, 16) = 0 connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 28) = 0 sendto(3, "\5\220\1\0\0\1\0\0\0\0\0\0\10software\10opensuse\3o"..., 39, 0, NULL, 0) = 39 connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("195.135.221.130")}, 16) = 0 D: failed to open http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/i586/kop...: error: skipping http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/i586/kop... - transfer failed - Unknown or unexpected error D: May free Score board((nil)) warning: u 0x54fa80 ctrl 0x550d90 nrefs != 0 (software.opensuse.org http) Process 1733 detached The server headers look like this: poeml@batavia510 ~ % curl -sI http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/i586/kop... HTTP/1.1 302 Found Date: Tue, 29 May 2007 12:22:17 GMT Server: Apache/2.2.4 (Linux/SUSE) X-Zrkadlo-Chose-Mirror: ftp.halifax.rwth-aachen.de Location: http://ftp.halifax.rwth-aachen.de/opensuse/repositories/home:/dmacvicar/open... Content-Type: text/html; charset=iso-8859-1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=278729 User poeml@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=278729#c1 --- Comment #1 from Peter Poeml <poeml@novell.com> 2009-02-26 06:33:11 MST --- Workaround on download.opensuse.org (exclusion from redirection) added also for rpm with user agent "rpm/4.4.2.3". Cf. bug 479914. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com