Some runtime errors not reported correctly in the RESTful API

Bug #1217983 reported by Trevor McKay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Medium
Trevor McKay

Bug Description

The route decorator in savanna/utils/api.py will report exceptions derived from SavannaException nicely, but all other exceptions will be reported as "Internal Server Error". This is good because it protects against leaking information unintentionally.

However, some of the errors from REST calls that are currently raised as RuntimeError or other exceptions should be changed to be SavannaExceptions so that the user can have better information in the JSON response. Duplicate object creation, for example.

Changed in savanna:
milestone: none → 0.3a1
importance: Undecided → Medium
status: New → Triaged
tags: added: 0.3
Trevor McKay (tmckay)
description: updated
summary: - Duplicate database entry errors not reported correctly in the RESTful
- API
+ Runtime errors not reported correctly in the RESTful API
Trevor McKay (tmckay)
description: updated
summary: - Runtime errors not reported correctly in the RESTful API
+ Some runtime errors not reported correctly in the RESTful API
Changed in savanna:
milestone: 0.3a1 → none
milestone: none → 0.3
Changed in savanna:
milestone: 0.3 → next
tags: removed: 0.3
Revision history for this message
Trevor McKay (tmckay) wrote :

In general known issues were fixed during the normal course of development. Future instances of this type of bug will have their own new, specific bug report.

Changed in savanna:
status: Triaged → Fix Released
assignee: nobody → Trevor McKay (tmckay)
Changed in savanna:
milestone: next → none
milestone: none → 0.3
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.