Failure when federated user name contains non ascii characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
High
|
Steve Martinelli |
Bug Description
When logging in with openid-connect, I get
'{"error": {"message": "An unexpected error prevented the server from fulfilling your request: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128) (Disable debug mode to suppress these details.)", "code": 500, "title": "Internal Server Error"}}'
My name has an 'å'. I suspect there is a connection.
Coincidentally(?), if I do the following in python shell:
>>> unicode('Jon Kåre Hellan')
I get 'UnicodeDecodeE
This is on liberty, using federation in contrib. On master, federation has been moved up from contrib, but I couldn't see any code changes that would help.
Stack trace:
Traceback (most recent call last):
File "/usr/lib/
result = method(context, **params)
File "/usr/lib/
protocol_id)
File "/usr/lib/
return self.authentica
File "/usr/lib/
self.
File "/usr/lib/
auth_context)
File "/usr/lib/
self.
File "/usr/lib/
federation_api, identity_api)
File "/usr/lib/
identity_
File "/usr/lib/
mapped_
File "/usr/lib/
new_local = self._update_
File "/usr/lib/
new_value = self._update_
File "/usr/lib/
new_value = v.format(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128)
Changed in keystone: | |
assignee: | nobody → Deliang Fan (vanderliang) |
this sounds like it's very likely a bug, i'm not sure how much extra handling (if any) we do for non-ascii names in the federation mapping