API - Trying to fetch an already deleted Audit Template with 500 as status code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| watcher |
Medium
|
Vincent Françoise |
Bug Description
When trying to retrieve an Audit Template which either does not exist at all or got previously deleted, we get a misleading status code. As the resource dos not exist, one would expect to have a 404 status code instead of a 500 status code as it is currently the case.
So the objective is to return a 404 NOT FOUND in this scenario. Also, the correct/specific exception should be raised, i.e. AuditTemplateNo
tags: | added: api |
Changed in watcher: | |
status: | New → Confirmed |
Changed in watcher: | |
importance: | Undecided → Medium |
Taylor Peoples (tpeoples) wrote : | #1 |
Well it's kind of the same but this one is about audit templates whereas the other one is about audits.
So they are very similar and it's likely that fixing one will fix the other but I'm not sure yet.
So IMHO, the best thing to do would be to link them together but I don't know how.
After switching to a fresh devstack environment, the problem wasn't there anymore. So I guess it was fixed along the way.
Changed in watcher: | |
status: | Confirmed → Fix Released |
Changed in watcher: | |
assignee: | nobody → Vincent Françoise (vincent-francoise) |
Same bug as https:/ /bugs.launchpad .net/watcher/ +bug/1533217?