[Bug 1711573] Re: Invalid parsing of Forwarded header (RFC7239)

Corey Bryant corey.bryant at canonical.com
Wed Oct 25 18:30:31 UTC 2017


Regression testing was successful for xenial-ocata-proposed and zesty-
proposed:

xenial-ocata proposed stable charms:

======                   
Totals                   
======                   
Ran: 102 tests in 1742.1837 sec.                  
 - Passed: 93            
 - Skipped: 9            
 - Expected Fail: 0      
 - Unexpected Success: 0 
 - Failed: 0             
Sum of execute time for each test: 856.3288 sec.

xenial-ocata proposed dev charms:

======
Totals
======
Ran: 102 tests in 1987.3271 sec.
 - Passed: 93
 - Skipped: 9
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 1008.6304 sec.

zesty-ocata proposed stable charms:

======
Totals
======
Ran: 102 tests in 1604.2247 sec.
 - Passed: 93
 - Skipped: 9
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 843.3645 sec.

zesty-ocata proposed dev charms:

======
Totals
======
Ran: 102 tests in 1579.9423 sec.
 - Passed: 93
 - Skipped: 9
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 867.0801 sec.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1711573

Title:
  Invalid parsing of Forwarded header (RFC7239)

Status in Ubuntu Cloud Archive:
  Fix Released
Status in Ubuntu Cloud Archive ocata series:
  Fix Released
Status in Ubuntu Cloud Archive pike series:
  Fix Released
Status in oslo.middleware:
  Fix Released
Status in python-oslo.middleware package in Ubuntu:
  Fix Released
Status in python-oslo.middleware source package in Zesty:
  Fix Committed
Status in python-oslo.middleware source package in Artful:
  Fix Released

Bug description:
  >>> from oslo_middleware.http_proxy_to_wsgi import HTTPProxyToWSGI
  >>> HTTPProxyToWSGI._parse_rfc7239_header("for=192.0.2.60;proto=http, for=192.0.2.60;by=203.0.113.43")
  [{'for': '192.0.2.60', 'proto': 'http'}, {' for': '192.0.2.60', 'by': '203.0.113.43'}]
  >>>
  >>> HTTPProxyToWSGI._parse_rfc7239_header("for=192.0.2.60; proto=http, for=192.0.2.60; by=203.0.113.43")
  [{' proto': 'http', 'for': '192.0.2.60'}, {' for': '192.0.2.60', ' by': '203.0.113.43'}]

  According to some sources:
  https://en.wikipedia.org/wiki/X-Forwarded-For#Alternatives_and_variations
  https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded

  using space after semicolon in Forwarded header is valid, but
  _parse_rfc7239_header does not parse it properly: note spaces in keys
  in the dict above.

  This affects e.g. Heat when using a proxy+SSL.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1711573/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list