API handlers are raising ValidationError, which is not an API exception

Bug #1394746 reported by Julian Edwards on 2014-11-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Graham Binns

Bug Description

Grep will find them all, but basically these should be coerced into a MAASAPIBadRequest instead. As it stands, ValidationError will cause a 500 to be returned to the client and a stack trace in the log.

Related branches

Changed in maas:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.7.1
tags: added: api trivial
Graham Binns (gmb) on 2014-11-26
Changed in maas:
assignee: nobody → Graham Binns (gmb)
status: Triaged → In Progress
Changed in maas:
milestone: 1.7.1 → 1.7.2
Raphaël Badin (rvb) on 2015-01-13
Changed in maas:
status: In Progress → Fix Committed
Julian Edwards (julian-edwards) wrote :

Thanks for the fix ;)

Christian Reis (kiko) on 2015-01-28
Changed in maas:
milestone: 1.7.2 → next
Changed in maas:
status: Fix Committed → Fix Released
milestone: next → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers