Comment 1 for bug 1408602

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystonemiddleware (master)

Reviewed: https://review.openstack.org/145505
Committed: https://git.openstack.org/cgit/openstack/keystonemiddleware/commit/?id=dcce0d6367ca326c79269a9be143efee519a3174
Submitter: Jenkins
Branch: master

commit dcce0d6367ca326c79269a9be143efee519a3174
Author: Alistair Coles <email address hidden>
Date: Wed Jan 7 13:52:06 2015 +0000

    Fix environ keys missing HTTP_ prefix

    The _fmt_msg() function constructs a debug message using
    identity attributes from the request environ dict, but
    accesses these using keys such as X_USER_ID, when the
    correct key should be HTTP_X_USER_ID. Consequently no
    identity attribute values are ever included in the debug
    log message.

    This patch adds the missing HTTP_ prefix to the keys and
    adds an assertion to the unit tests to verify that the debug
    log is generated as expected.

    Closes-Bug: 1408602
    Change-Id: Ib309abcb3d0f15a20ae581105de1f8964497e5a2