← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1448286] Re: unicode query string raises UnicodeEncodeError

 

In order for this to be safely backported to kilo, the fix for bug
1454968 needs to be included as well (the fix for this bug revealed the
problem fixed in bug 1454968).

** Also affects: keystone/kilo
   Importance: Undecided
       Status: New

** Changed in: keystone/kilo
     Assignee: (unassigned) => Dolph Mathews (dolph)

** Changed in: keystone/kilo
   Importance: Undecided => Medium

-- 
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 Keystone:
  Fix Released
Status in Keystone kilo series:
  In Progress

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