Creation of a watcher audit with an unknown audit template generates bad error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| watcher |
Low
|
Taylor Peoples |
Bug Description
From CLI, following command (with foo unknown audit template):
watcher audit-create -a foo
returns:
Internal Server Error (HTTP 500)
Should return an explicit error like "Audit template 'foo' unknown".
Changed in watcher: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in watcher: | |
milestone: | none → mitaka-3 |
Changed in watcher: | |
assignee: | nobody → Taylor Peoples (tpeoples) |
Fix proposed to branch: master
Review: https:/
Changed in watcher: | |
status: | Confirmed → In Progress |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit e34ee792a8c1acf
Author: Taylor Peoples <email address hidden>
Date: Thu Jan 21 08:40:13 2016 +0100
Validate audit template UUID on audit create
The audit template UUID should be validated during the creation of an
audit. An HTTP 400 error is returned to the client if an invalid audit
template UUID is passed as part of the body when creating an audit.
APIImpact
Closes-Bug: #1510188
Change-Id: I0543d22751b77f
Changed in watcher: | |
status: | In Progress → Fix Released |
This will have to be covered by unit tests