Bug 491674 - Use relative paths in HTTP requests via m2urllib2
Summary: Use relative paths in HTTP requests via m2urllib2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: m2crypto
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Miloslav Trmač
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks: 490077
TreeView+ depends on / blocked
 
Reported: 2009-03-23 15:20 UTC by James Bowes
Modified: 2018-09-14 09:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 11:20:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
use relative file paths in https requests (1.15 KB, patch)
2009-03-23 15:21 UTC, James Bowes
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1351 0 normal SHIPPED_LIVE m2crypto bug fix update 2009-09-01 10:49:36 UTC

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


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