Get secret with ACL returns 500 Internal Server Error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Barbican |
Fix Released
|
Critical
|
Dave McCowan | ||
Kilo |
Fix Released
|
Critical
|
Douglas Mendizábal |
Bug Description
If an ACL is defined with no read users list, the following get secret will fail with 500 Internal Server Error.
# Post Secret
201 POST http://
Request Body: {"secret_type": "private", "name": "myprivatekey", "algorithm": "rsa", "payload_
Response: {"secret_ref": "http://
# Post Acl
201 POST http://
Request Body: {"read": {"creator-only": true}, "write": {"creator-only": true}, "list": {"creator-only": true}}
Response: [{"acl_ref": "http://
# Get Secret
500 GET http://
Request Body: None
Response: {"code": 500, "description": "Secret payload retrieval failure seen - please contact site administrator.", "title": "Internal Server Error"}
# Traceback Captured on Server
2015-04-21 15:17:02.242 14335 ERROR barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
2015-04-21 15:17:02.242 14335 TRACE barbican.
Changed in barbican: | |
assignee: | nobody → Dave McCowan (dave-mccowan) |
Changed in barbican: | |
importance: | Undecided → Critical |
milestone: | none → liberty-1 |
Changed in barbican: | |
status: | Fix Committed → Fix Released |
Changed in barbican: | |
milestone: | liberty-1 → 1.0.0 |
Fix proposed to branch: master /review. openstack. org/176101
Review: https:/