Improve KMIP error code for invalid key spec
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-barbicanclient |
Fix Committed
|
Undecided
|
Max |
Bug Description
When using KMIP plugin for backend, Generate RSA using the orders interface with passphrase, returns 500 status. This feature is not yet supported for KMIP backend. So in this case a 4XX Error code [Bad Request] would be an appropriate error code instead of 500.
Detailed description:
1) Version of Barbican we are using:
- stable/master
2) Reproduce steps:
a) Install via devstack, with following barbican post-configuration in local.conf:
#...
namespace = barbican.
username = 'yourUserName'
password = '*******'
host = 11.222.333.44
port = 6666
keyfile = '/opt/stack/
certfile = '/opt/stack/
ca_certs = '/opt/stack/
#...
b) Generate RSA using the orders interface:
curl -X POST http://
c) Check order status:
curl -H 'X-Project-
{"status": "ERROR", "updated": "2016-04-
Changed in python-barbicanclient: | |
assignee: | nobody → Max (max-abidi) |
Changed in python-barbicanclient: | |
status: | New → Fix Committed |
Fix is submitted: https:/ /review. openstack. org/#/c/ 305446/