500 errror for launchpadlib calls like launchpad.hwdb.devices(bus='PCI', vendor_id='MSI')

Bug #309043 reported by Abel Deuring
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Abel Deuring

Bug Description

Calls like launchpad.hwdb.devices(bus='PCI', vendor_id='MSI') lead to a 500 error, because the parameters vendor_id and product_id must be in a defined format for the buses USB, PCI and SCSI. Calls with invalid parameters as in the example above should not lead to an internal server error, Instead, 400 or perhaps 404 should be returned.

Tags: lp-bugs
Abel Deuring (adeuring)
Changed in malone:
assignee: nobody → adeuring
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Eleanor Berger (intellectronica) wrote :

Wouldn't an 'Invalid Input' error be more appropriate than 404?

Revision history for this message
Abel Deuring (adeuring) wrote : Re: [Bug 309043] Re: 500 errror for launchpadlib calls like launchpad.hwdb.devices(bus='PCI', vendor_id='MSI')

On 23.02.2009 11:02, Tom Berger wrote:
> Wouldn't an 'Invalid Input' error be more appropriate than 404?
>

Perhaps. Do we have a sort of a policy what should returned for API
requests with parameters that are invalid in a specific context?

Abel Deuring (adeuring)
Changed in malone:
status: Triaged → In Progress
Changed in malone:
milestone: none → 2.2.3
Revision history for this message
Björn Tillenius (bjornt) wrote : Bug fixed by a commit

Fixed in devel r8078.

Changed in malone:
status: In Progress → Fix Committed
Changed in malone:
status: Fix Committed → Fix Released
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.