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.
Reviewed: https:/ /review. openstack. org/145505 /git.openstack. org/cgit/ openstack/ keystonemiddlew are/commit/ ?id=dcce0d6367c a326c79269a9be1 43efee519a3174
Committed: https:/
Submitter: Jenkins
Branch: master
commit dcce0d6367ca326 c79269a9be143ef ee519a3174
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 a20ae581105de1f 8964497e5a2
Change-Id: Ib309abcb3d0f15