Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1169530 - headers with different cases are not merged
headers with different cases are not merged
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-requests (Show other bugs)
5.0 (RHEL 7)
Unspecified Unspecified
high Severity high
: z4
: 5.0 (RHEL 7)
Assigned To: hguemar
Ami Jeain
: Rebase, ZStream
Depends On:
Blocks: 1135135 1176181 1176186 1183150 1202548 1232881
  Show dependency treegraph
 
Reported: 2014-12-01 17:50 EST by Josh Durgin
Modified: 2018-02-08 05:28 EST (History)
13 users (show)

See Also:
Fixed In Version: python-requests-2.3.0-1.el7
Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Story Points: ---
Clone Of:
: 1176181 1176186 1202548 (view as bug list)
Environment:
Last Closed: 2015-04-16 10:37:44 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
upstream fix for python-requests-1.1.0-8.1.el7ost package (4.00 KB, patch)
2014-12-01 17:50 EST, Josh Durgin
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0825 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Bug Fix and Enhancement Advisory 2015-04-16 14:28:14 EDT

  None (edit)
Description Josh Durgin 2014-12-01 17:50:55 EST
Created attachment 963430 [details]
upstream fix for python-requests-1.1.0-8.1.el7ost package

Description of problem:

The high-level problem is https://bugzilla.redhat.com/show_bug.cgi?id=1135135

The root cause is python-requests having a buggy implementation of a case
insensitive mapping. When swiftclient adds a 'Content-Length' header and requests implicitly adds a 'content-length' header, requests sends both as separate headers. This causes apache to reject the request with a 400 error.

Version-Release number of selected component (if applicable):

python-requests-1.1.0-8.1.el7ost

How reproducible:

always

Steps to Reproduce:

Run this testcase:
https://github.com/kennethreitz/requests/blob/f7596c75dce4e87ab83bdf74e8f120a4b1a5ff03/test_requests.py#L514

Additional info:

This was fixed upstream in https://github.com/kennethreitz/requests/issues/649
The fix as a patch against the current package is attached.
Comment 2 Lon Hohberger 2014-12-19 10:32:31 EST
python-requests-2.3.0-3.el7ost is in RHEL OSP 6 beta.
Comment 3 Lon Hohberger 2014-12-19 10:39:25 EST
It's probable that rebasing to python-requests 2.3.0 is how we should fix this; this was addressed in commit f7596c75 of upstream master.
Comment 10 Ami Jeain 2015-03-30 08:08:28 EDT
verified:
ran https://github.com/kennethreitz/requests/blob/f7596c75dce4e87ab83bdf74e8f120a4b1a5ff03/test_requests.py and verified that only valid errors occur
Comment 13 errata-xmlrpc 2015-04-16 10:37:44 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0825.html

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