Order creation failing with 500

Bug #1208528 reported by Melissa Kam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Critical
Unassigned

Bug Description

Steps to Reproduce:
POST http://.../v1/test_tenant/orders

{
  "secret": {
    "name": "secretname",
    "algorithm": "AES",
    "bit_length": 256,
    "cypher_type": "CBC"
  }
}

Response
{
    "title": "Order creation failure seen - please contact site administrator"
}

Also, since I've been running Barbican locally, I have the logging for this error.

2013-08-05 11:34:51 DEBUG [barbican.api.resources] Start on_post...{u'secret': {u'bit_length': 256, u'cypher_type': u'CBC', u'name': u'secretname', u'algorithm': u'AES', 'expiration': None}}
2013-08-05 11:34:51 DEBUG [barbican.api.resources] Secret to create is secretname
2013-08-05 11:34:51 ERROR [barbican.api.resources] Order creation failure seen - please contact site administrator
Traceback (most recent call last):
  File "/home/.../barbican/barbican/api/resources.py", line 225, in handler
    fn(inst, req, resp, *args, **kwargs)
  File "/home/.../barbican/barbican/api/resources.py", line 515, in on_post
    new_order.secret_mime_type = secret_info['mime_type']
KeyError: 'mime_type'

Tags: creation order
tags: added: order
tags: added: creation
John Wood (john-wood-w)
Changed in cloudkeep:
importance: Undecided → Critical
John Wood (john-wood-w)
Changed in cloudkeep:
milestone: none → havana-3
Revision history for this message
Douglas Mendizábal (dougmendizabal) wrote :

Fixed in latest barbican (Commit 9ee72c2a90a4a4f643f7d79b41318cff54cdb181)

Server now responds with:

400 - "No support for value set on field 'payload_content_type' on schema 'Order': Only 'application/octet-stream' supported"

Changed in cloudkeep:
status: New → Fix Committed
Changed in cloudkeep:
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.