Creation of a watcher audit with an unknown audit template generates bad error

Bug #1510188 reported by David TARDIVEL
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
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
Revision history for this message
Vincent Françoise (vincent-francoise) wrote :

This will have to be covered by unit tests

tags: added: api low-hanging-fruit
Changed in watcher:
milestone: none → mitaka-3
Changed in watcher:
assignee: nobody → Taylor Peoples (tpeoples)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to watcher (master)

Fix proposed to branch: master
Review: https://review.openstack.org/270645

Changed in watcher:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (master)

Reviewed: https://review.openstack.org/270645
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=e34ee792a8c1acf3e69cac8879fd92e51b6255e0
Submitter: Jenkins
Branch: master

commit e34ee792a8c1acf3e69cac8879fd92e51b6255e0
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: I0543d22751b77f6641ddef6a7f0f4acce61180fd

Changed in watcher:
status: In Progress → 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.