Bug 564377

Summary: Handle http 302 redirect request for satellite-sync
Product: Red Hat Enterprise Linux 4 Reporter: Jiri Skrabal <jskrabal>
Component: rhnlibAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Martin Minar <mminar>
Severity: medium Docs Contact:
Priority: low    
Version: 4.9CC: atangrin, fnadge, jhutar, mkoci, mminar, msuchy, plyons
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhnlib-2.1.4-9.el4 Doc Type: Bug Fix
Doc Text:
Previously, rpclib._requests failed when redirect to CDN was issued. With this update, rhnlib handles HTTP 302 redirect requests for satellite-sync without failure.
Story Points: ---
Clone Of: 564299 Environment:
Last Closed: 2010-11-09 14:29:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 175155, 567989    

Description Jiri Skrabal 2010-02-12 15:18:49 UTC
+++ This bug was initially created as a clone of Bug #564299 +++

Description of problem:
When redirect to CDN is issued then rpclib._request could not handle it. In fact it will download only first package, but after first request the hostname is clobber. It should be reset in that Server object back to original value.

Version-Release number of selected component (if applicable):
rhnlib-2.2.7-2.el5

How reproducible:
always

Steps to Reproduce:
1. do satsync on CDN enabled RHN Satellite
  
Actual results:
HTTP error 666 on second downloaded package

Expected results:
all packages are downlaoded without problem.

--- Additional comment from msuchy on 2010-02-12 05:39:45 EST ---

Commited to svn as rev. 190759

--- Additional comment from msuchy on 2010-02-12 05:52:46 EST ---

Forward ported to Spacewal as commit 06cc87b6f9249cfff26277001763338e3a4896ce

Comment 5 Miroslav Suchý 2010-02-23 16:02:19 UTC
commited as rev. 191020 and 191021.

Comment 10 errata-xmlrpc 2010-11-09 14:29:09 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0841.html

Comment 11 Florian Nadge 2011-01-03 11:22:58 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, rpclib._requests failed when redirect to CDN was issued. With this update, rhnlib handles HTTP 302 redirect requests for satellite-sync without failure.