keystone/releasenotes/notes/bug-1832265-cb76ccf505c2d9d1.yaml
James Page ffa0918f5a token: consistently decode binary types
Ensure that any binary types unpacked from message payloads
are correctly converted from binary to text type.

Under Python 3 msgpack returns the serialized input as a
byte string. Similar to other msgpack'd values in the payload,
we need to explicitly decode it to a string value.

This is specifically more of an issue under Python 3; however
the decode operation is safe back to Python 2 so there is no
need to limit the decode codepath to just Python 3.

Change-Id: Ib1073acf5677a60714d0a386de3bcd14ce6cd134
Closes-Bug: 1832265
2019-07-04 07:55:43 +01:00

8 lines
298 B
YAML

---
fixes:
- |
[`bug 1832265 <https://bugs.launchpad.net/keystone/+bug/1832265>`_]
Binary msgpack payload types are now consistently and correctly decoded
when running Keystone under Python 3, avoiding any TypeErrors when
attempting to convert binary encoded strings into UUID's.