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

Bug #1394746 reported by Julian Edwards
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
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.

Tags: api trivial

Related branches

Changed in maas:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.7.1
tags: added: api trivial
Graham Binns (gmb)
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)
Changed in maas:
status: In Progress → Fix Committed
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Thanks for the fix ;)

Christian Reis (kiko)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.