secret create 500 due to format string in py26

Bug #1291482 reported by John Wood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
High
John Wood

Bug Description

2014-03-12 16:27:36.810 22161 ERROR barbican.api.resources [-] Secret creation failure seen - please contact site administrator.
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources Traceback (most recent call last):
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources File "/usr/lib/python2.6/site-packages/barbican/api/resources.py", line 276, in handler
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources fn(inst, req, resp, *args, **kwargs)
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources File "/usr/lib/python2.6/site-packages/barbican/api/resources.py", line 262, in enforcer
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources fn(inst, req, resp, *args, **kwargs)
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources File "/usr/lib/python2.6/site-packages/barbican/api/resources.py", line 336, in on_post
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources data = api.load_body(req, resp, self.validator)
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources File "/usr/lib/python2.6/site-packages/barbican/api/__init__.py", line 88, in load_body
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources parsed_body = validator.validate(parsed_body)
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources File "/usr/lib/python2.6/site-packages/barbican/common/validators.py", line 137, in validate
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources "{!s}").format(mime_types.SUPPORTED),
2014-03-12 16:27:36.810 22161 TRACE barbican.api.resources ValueError: zero length field name in format

Note the '!s' toward the end. That should instead be '0!s'.

John Wood (john-wood-w)
Changed in barbican:
milestone: none → icehouse
importance: Undecided → High
assignee: nobody → John Wood (john-wood-w)
Changed in barbican:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to barbican (master)

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

Changed in barbican:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.openstack.org/80031
Committed: https://git.openstack.org/cgit/stackforge/barbican/commit/?id=838340aa8fad4bd1e1e31d184067cd04626c120b
Submitter: Jenkins
Branch: master

commit 838340aa8fad4bd1e1e31d184067cd04626c120b
Author: jfwood <email address hidden>
Date: Wed Mar 12 12:54:47 2014 -0500

    Fix string format used to report content validation errors

    The format used ('{!s}') was not compatible with Python 2.6. Replaced
    this format with ('{0}').

    Change-Id: Iab252cf867f16e4da354d9634d8ae4712fefb77e
    Closes-Bug: #1291482

Changed in barbican:
status: In Progress → Fix Committed
Changed in barbican:
status: Fix Committed → Fix Released
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.