Bug 1033190 - codec can't encode character u'\\u2013'
Summary: codec can't encode character u'\\u2013'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-keystone
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: Upstream M2
: 5.0 (RHEL 7)
Assignee: Jamie Lennox
QA Contact: Udi Kalifon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-21 16:37 UTC by Dan Yocum
Modified: 2016-04-27 04:23 UTC (History)
7 users (show)

Fixed In Version: openstack-keystone-2014.1-4.el7ost
Doc Type: Bug Fix
Doc Text:
Some errors, including those thrown from the database, are reported in an ASCII byte string format. This error message is included in some failures and so the error message would display the byte escaped output and UTF-8 values would be lost. As a consequence, UTF-8 characters would appear escaped, for example \\u2013 in messages instead of the correct UTF-8 character. This has been fixed to ensure that UTF-8 characters that are present will be correctly rendered. Now the output displays full UTF-8 characters in error messages.
Clone Of:
Environment:
Last Closed: 2014-07-08 15:23:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1253905 0 None None None Never
OpenStack gerrit 57850 0 None None None Never
OpenStack gerrit 57851 0 None None None Never
Red Hat Product Errata RHEA-2014:0854 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement - Identity 2014-07-08 19:22:33 UTC

Description Dan Yocum 2013-11-21 16:37:34 UTC
Description of problem:

[root@public-control1 ~]# keystone tenant-create --name "Consulting – Middleware Delivery" 
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. 'ascii' codec can't encode character u'\\u2013' in position 11: ordinal not in range(128)", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)


NB: the "dash" in the name is not an ascii dash.  It's something else.

Version-Release number of selected component (if applicable):

openstack-keystone-2013.1.3-2.el6ost.noarch

How reproducible:

Every


Additional info:

Performing the same command on a Folsom cloud works just fine.

Comment 2 Jamie Lennox 2014-01-07 21:42:57 UTC
It is also currently on gate for a havana backport https://review.openstack.org/#/c/62264/

Comment 3 Jamie Lennox 2014-02-04 21:41:29 UTC
merged to stable/havana

Comment 8 Udi Kalifon 2014-07-03 14:23:16 UTC
If the "dash" in the name is not an ascii dash, but something else, can you say where you got it off from? I assume you copy-pasted it from somewhere, right? How can I reproduce it?

Comment 11 Udi Kalifon 2014-07-06 08:41:53 UTC
Verified in puddle 2014-07-03.1:
openstack-keystone-2014.1-6.el7ost.noarch
python-keystone-2014.1-6.el7ost.noarch
python-keystoneclient-0.9.0-1.el7ost.noarch

Comment 13 errata-xmlrpc 2014-07-08 15:23:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0854.html


Note You need to log in before you can comment on or make changes to this bug.