Assertion signing error causes TypeError for Message objects do not support addition

Bug #1484735 reported by Brant Knudson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Brant Knudson

Bug Description

If running the xmlsec1 binary fails with some output, rather than getting the log of the error you'll get a TypeError exception with the message "Message objects do not support addition.". This is because oslo.i18n Message objects don't support addition, which the code is attempting to do.

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

Fix proposed to branch: master
Review: https://review.openstack.org/212845

Changed in keystone:
status: New → In Progress
Revision history for this message
Dolph Mathews (dolph) wrote :
tags: added: user-experience
tags: added: federation
tags: added: kilo-backport-potential
Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/212845
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=e16aa8e5e5429ebbfb3d2086a22c8acc52c1b6cf
Submitter: Jenkins
Branch: master

commit e16aa8e5e5429ebbfb3d2086a22c8acc52c1b6cf
Author: Brant Knudson <email address hidden>
Date: Thu Aug 13 18:30:28 2015 -0500

    Enhance tests for saml2 signing exception logging

    There was no test that verified that the log message was generated
    correctly when there was an exception from the xmlsec1 binary. The
    test shows that the log message isn't generated correctly but
    instead causes a TypeError to be raised.

    The test__sign_assertion_fileutils_exc test is also enhanced to
    verify that the error is logged correctly.

    Change-Id: I5b7c22d27bad241339fdacae8b61973d45d55d30
    Partial-Bug: 1484735

Changed in keystone:
milestone: none → liberty-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/203047
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=82bddf17cdcf7c8f183b2122f8c2f759eddb5da4
Submitter: Jenkins
Branch: master

commit 82bddf17cdcf7c8f183b2122f8c2f759eddb5da4
Author: Brant Knudson <email address hidden>
Date: Fri Jul 17 09:20:43 2015 -0500

    Fix logging in federation/idp.py

    The existing code would raise a TypeError exception:

      TypeError: Message objects do not support addition.

    This is because oslo.i18n Message objects do not support the +
    operator and instead require substitution to be used.

    Closes-Bug: 1484735
    Change-Id: I65e093808b243d8eff5b3cefdf6d64c3d7216801

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: liberty-rc1 → 8.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.