Bug 564299

Summary: Handle http 302 redirect request for satellite-sync
Product: Red Hat Enterprise Linux 5 Reporter: Miroslav Suchý <msuchy>
Component: rhnlibAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Jan Hutař <jhutar>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: jhutar, jkastner, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 564377 (view as bug list) Environment:
Last Closed: 2010-03-30 09:08:22 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    

Description Miroslav Suchý 2010-02-12 10:30:28 UTC
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.

Comment 1 Miroslav Suchý 2010-02-12 10:39:45 UTC
Commited to svn as rev. 190759

Comment 2 Miroslav Suchý 2010-02-12 10:52:46 UTC
Forward ported to Spacewal as commit 06cc87b6f9249cfff26277001763338e3a4896ce

Comment 13 errata-xmlrpc 2010-03-30 09:08:22 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-0322.html