Bug 491674

Summary: Use relative paths in HTTP requests via m2urllib2
Product: Red Hat Enterprise Linux 5 Reporter: James Bowes <jbowes>
Component: m2cryptoAssignee: Miloslav Trmač <mitr>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: bkearney, ohudlick, sgrubb, zmraz
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 11:20:05 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: 490077    
Attachments:
Description Flags
use relative file paths in https requests none

Description James Bowes 2009-03-23 15:20:03 UTC
HTTP requests have the form:
GET $SOME_RESOURCE HTTP/1.1

where $SOME_RESOURCE can either be a relative path ("/index.html") or an absolute URI ("https://my-server.com/index.html").

m2urllib2 always uses absolute URIs, which is technically correct, but not understood by some webservers. The attached patch switches to using relative paths for both direct connections, and for requests routed through a proxy via the CONNECT directive.

Comment 1 James Bowes 2009-03-23 15:21:00 UTC
Created attachment 336304 [details]
use relative file paths in https requests

Comment 3 Miloslav Trmač 2009-03-23 17:35:29 UTC
Thanks for your report.

The second hunk is already upstream, I have filed the first one as https://bugzilla.osafoundation.org/show_bug.cgi?id=12760 .

Comment 8 errata-xmlrpc 2009-09-02 11:20:05 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-2009-1351.html