← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1457279] [NEW] keystoneclient cannot log non-ascii data

 

Public bug reported:

In keystoneclient/session.py file, _http_log_request method, we have below codes:
        if data:
            string_parts.append("-d '%s'" % data)

        logger.debug(' '.join(string_parts))

However, if data is not in ascii chars, this might cause error like:
UnicodeEncodeError: 'ascii' codec can't encode character u'\\xbb' in position 10: ordinal not in range(128)
This is also the reason of bug https://bugs.launchpad.net/horizon/+bug/1453953

** 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/1457279

Title:
  keystoneclient cannot log non-ascii data

Status in OpenStack Identity (Keystone):
  New

Bug description:
  In keystoneclient/session.py file, _http_log_request method, we have below codes:
          if data:
              string_parts.append("-d '%s'" % data)

          logger.debug(' '.join(string_parts))

  However, if data is not in ascii chars, this might cause error like:
  UnicodeEncodeError: 'ascii' codec can't encode character u'\\xbb' in position 10: ordinal not in range(128)
  This is also the reason of bug https://bugs.launchpad.net/horizon/+bug/1453953

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


Follow ups

References