commit bd94a41eefa4a1208f06886c598b75cab8339250
Author: Eric Brown <email address hidden>
Date: Mon Sep 21 18:24:11 2015 -0700
Handle 16-char non-uuid user IDs in payload
If a user_id just happens to be of 16 character length, this will
cause the convert_uuid_bytes_to_hex function to improperly return
a UUID value instead of the user_id string unconverted.
This patch modifies the payload to indicate whether the ID was in
fact a UUID and the attempt to convert to bytes was successful.
This change has effect on more than just user IDs. It also resolves
potential issues with project IDs, group IDs, IDP IDs, and scope IDs.
Reviewed: https:/ /review. openstack. org/236092 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=bd94a41eefa 4a1208f06886c59 8b75cab8339250
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit bd94a41eefa4a12 08f06886c598b75 cab8339250
Author: Eric Brown <email address hidden>
Date: Mon Sep 21 18:24:11 2015 -0700
Handle 16-char non-uuid user IDs in payload
If a user_id just happens to be of 16 character length, this will uuid_bytes_ to_hex function to improperly return
cause the convert_
a UUID value instead of the user_id string unconverted.
This patch modifies the payload to indicate whether the ID was in
fact a UUID and the attempt to convert to bytes was successful.
This change has effect on more than just user IDs. It also resolves
potential issues with project IDs, group IDs, IDP IDs, and scope IDs.
Closes-Bug: #1497461
Conflicts:
keystone/ tests/unit/ token/test_ fernet_ provider. py
keystone/ token/providers /fernet/ token_formatter s.py
Change-Id: Ia4a4f760d67d8b bc22759c48fc800 aef016b84ed 4dca71f4024b092 26d3f4ed08)
(cherry picked from commit 9ec4e6194019062