Public bug reported:

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)

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
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):
  New

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to