← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1376078] [NEW] NovaProxyRequestHandlerBaseTestCase fails on python < 2.7.4 due to urlparse bug

 

Public bug reported:

Due to this change:

https://review.openstack.org/#/c/124384/

The tests are using this URL:

self.wh.path = "ws://127.0.0.1/?token=123-456-789"

And "ws" is an undefined scheme.  Due to a python bug:

http://bugs.python.org/issue9374

The query string isn't parsed for an undefined scheme.  For example:

Python 2.7.3 (default, Sep 26 2013, 20:08:41) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> 
>>> 
>>> import urlparse
>>> path = "ws://127.0.0.1/?token=123-456-789"
>>> query = urlparse.urlparse(path).query
>>> query
''

There is an older bug 1202149 for the same problem in Nova.

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: console

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1376078

Title:
  NovaProxyRequestHandlerBaseTestCase fails on python < 2.7.4 due to
  urlparse bug

Status in OpenStack Compute (Nova):
  New

Bug description:
  Due to this change:

  https://review.openstack.org/#/c/124384/

  The tests are using this URL:

  self.wh.path = "ws://127.0.0.1/?token=123-456-789"

  And "ws" is an undefined scheme.  Due to a python bug:

  http://bugs.python.org/issue9374

  The query string isn't parsed for an undefined scheme.  For example:

  Python 2.7.3 (default, Sep 26 2013, 20:08:41) 
  [GCC 4.6.3] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> 
  >>> 
  >>> 
  >>> import urlparse
  >>> path = "ws://127.0.0.1/?token=123-456-789"
  >>> query = urlparse.urlparse(path).query
  >>> query
  ''

  There is an older bug 1202149 for the same problem in Nova.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1376078/+subscriptions


Follow ups

References