Comment 11 for bug 1497461

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (stable/kilo)

Reviewed: https://review.openstack.org/236092
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=bd94a41eefa4a1208f06886c598b75cab8339250
Submitter: Jenkins
Branch: stable/kilo

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.

    Closes-Bug: #1497461

    Conflicts:
        keystone/tests/unit/token/test_fernet_provider.py
        keystone/token/providers/fernet/token_formatters.py

    Change-Id: Ia4a4f760d67d8bbc22759c48fc800aef016b84ed
    (cherry picked from commit 9ec4e61940190624dca71f4024b09226d3f4ed08)