Comment 3 for bug 1901654

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

Reviewed: https://review.opendev.org/c/openstack/keystone/+/781490
Committed: https://opendev.org/openstack/keystone/commit/f10ff1c9afaff4a707cf04c2948033d996adc803
Submitter: "Zuul (22348)"
Branch: stable/train

commit f10ff1c9afaff4a707cf04c2948033d996adc803
Author: Keigo Noha <email address hidden>
Date: Tue Oct 27 15:07:53 2020 +0900

    Support bytes type in generate_public_ID()

    python-ldap3.0 or later running on python3 uses str or bytes
    data type according to what fields are returned.
    local_id may be a bytes data type.
    To handle it properly, mapping[key] needs to be examined for
    identifying its data type and what python version is used.

    Closes-Bug: #1901654
    Change-Id: Iac097235fd31e166028c169d14ec0937c663c21c
    (cherry picked from commit f7df9fba828328d8b20e85d711c1d27c77089632)
    (cherry picked from commit 5b860e0b3b4e318b91325996156bae3f99abd6c7)
    (cherry picked from commit f4819fe36f087b2f652dc68fd33880860570f8d9)