commit ffa0918f5a92fd18c86703916d768012b0bea61b
Author: James Page <email address hidden>
Date: Mon Jun 17 09:56:11 2019 +0100
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.
Reviewed: https:/ /review. opendev. org/665617 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=ffa0918f5a9 2fd18c86703916d 768012b0bea61b
Committed: https:/
Submitter: Zuul
Branch: master
commit ffa0918f5a92fd1 8c86703916d7680 12b0bea61b
Author: James Page <email address hidden>
Date: Mon Jun 17 09:56:11 2019 +0100
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: Ib1073acf5677a6 0714d0a386de3bc d14ce6cd134
Closes-Bug: 1832265