Remove str() casting for the client_message variable
This is done since the e.client_message variable is a unicode
string that might be derived from a non-ascii input (for
example, the user-supplied paylaod content type). If the str()
function is applied to a non-ascii char, a UnicodeEncodeError
exception will be thrown.
Reviewed: https:/ /review. openstack. org/167044 /git.openstack. org/cgit/ openstack/ barbican/ commit/ ?id=78f90d8b204 fcb56cfe19759a6 65044381cdd89c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 78f90d8b204fcb5 6cfe19759a66504 4381cdd89c
Author: Everardo Padilla Saca <email address hidden>
Date: Tue Mar 24 01:31:51 2015 +0200
Remove str() casting for the client_message variable
This is done since the e.client_message variable is a unicode
string that might be derived from a non-ascii input (for
example, the user-supplied paylaod content type). If the str()
function is applied to a non-ascii char, a UnicodeEncodeError
exception will be thrown.
Change-Id: I3ce5454a373472 97b3ec0b0124234 025a4aed872
Closes-bug: #1435613
Related-Bug: #1421478