[API] OOPS when distribution.getSeries() is called with an invalid name or version

Bug #358332 reported by Michael Bienia
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Unassigned

Bug Description

When calling distribution.getSeries() with an invalid name or version I get an "HTTP Error 500: Internal Server Error".
The content of the exception ('NoSuchDistroSeries') is correct about the fact that there is no such distro series but I would have preferred if the method returns e.g. None instead of throwing the general HTTPError exception and producing an OOPS.

OOPS-ID: OOPS-1195ED82

Revision history for this message
Diogo Matsubara (matsubara) wrote :

That should be a 4XX or something error, similar to a NotFound. Definitely not a 500.

affects: launchpad → launchpad-registry
Changed in launchpad-registry:
importance: Undecided → Medium
status: New → Triaged
tags: added: api
tags: added: oops
Curtis Hovey (sinzui)
Changed in launchpad-registry:
assignee: nobody → Edwin Grubbs (edwin-grubbs)
importance: Medium → High
milestone: none → 2.2.4
Revision history for this message
Curtis Hovey (sinzui) wrote :

I'm taking this bug because it is related to other work I have,

Changed in launchpad-registry:
assignee: Edwin Grubbs (edwin-grubbs) → Curtis Hovey (sinzui)
milestone: 2.2.4 → 2.2.5
Curtis Hovey (sinzui)
tags: added: story-series-milestones-releases
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: Triaged → In Progress
Revision history for this message
Curtis Hovey (sinzui) wrote :

Fixed in launchpad devel r8370.

Changed in launchpad-registry:
status: In Progress → Fix Committed
Revision history for this message
Curtis Hovey (sinzui) wrote : Fix released

Fixed released in Launchpad 2.2.5.

Changed in launchpad-registry:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Curtis Hovey (sinzui) → nobody
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.