← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1448286] Re: unicode query string raises UnicodeEncodeError

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1448286

Title:
  unicode query string raises UnicodeEncodeError

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  The logging in keystone.common.wsgi is unable to handle unicode query
  strings. The simplest example would be:

    $ curl http://localhost:35357/?Ϡ;

  This will fail with a backtrace similar to:

    2015-04-24 19:57:45.860 22255 TRACE keystone.common.wsgi   File ".../keystone/keystone/common/wsgi.py", line 234, in __call__
    2015-04-24 19:57:45.860 22255 TRACE keystone.common.wsgi     'params': urllib.urlencode(req.params)})
    2015-04-24 19:57:45.860 22255 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/urllib.py", line 1311, in urlencode
    2015-04-24 19:57:45.860 22255 TRACE keystone.common.wsgi     k = quote_plus(str(k))
    2015-04-24 19:57:45.860 22255 TRACE keystone.common.wsgi UnicodeEncodeError: 'ascii' codec can't encode character u'\u03e0' in position 0: ordinal not in range(128)

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


References