keystoneclient cannot log non-ascii data

Bug #1457279 reported by Ken Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient
New
Undecided
Unassigned

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

Revision history for this message
Rodrigo Duarte (rodrigodsousa) wrote :

This should be targeted to python-keystoneclient

affects: keystone → python-keystoneclient
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.