Container creation returns 500 for a BadRequest. Expected error code: 400
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Barbican |
Fix Released
|
Medium
|
Arun Kant |
Bug Description
Container creation returns 500 for a BadRequest. Expected error code: 400
Here's the post data for container create request which violates the DB integrity constraints (secret_ref not unique).
containerpostdata:
{
"name": "my rsakey",
"type": "rsa",
"secret_refs": [
{
"name": "public_key",
},
{
"name": "private_key",
},
{
"name": "private_
}
]
}
curl -i http://
HTTP/1.1 500 Internal Server Error
Content-Type: text/html; charset=UTF-8
Content-Length: 134
{"code": 500, "description": "Container creation failure seen - please contact site administrator.", "title": "Internal Server Error"}
Changed in barbican: | |
assignee: | nobody → Arun Kant (arunkant-uws) |
description: | updated |
Changed in barbican: | |
milestone: | none → juno-2 |
Changed in barbican: | |
importance: | Undecided → Medium |
Changed in barbican: | |
milestone: | juno-2 → juno-3 |
Changed in barbican: | |
status: | Fix Committed → Fix Released |
Changed in barbican: | |
milestone: | juno-3 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/98926
Review: https:/