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

Bug #1510188 reported by David TARDIVEL on 2015-10-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Taylor Peoples

Bug Description

From CLI, following command (with foo unknown audit template):

watcher audit-create -a foo
Internal Server Error (HTTP 500)

Should return an explicit error like "Audit template 'foo' unknown".

Changed in watcher:
importance: Undecided → Low
status: New → Confirmed

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)

Fix proposed to branch: master

Changed in watcher:
status: Confirmed → In Progress

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.

    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  Edit
Everyone can see this information.

Other bug subscribers