internal error getPublishedSources distro_series has extra slash

Bug #809863 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Curtis Hovey
lazr.restful
Fix Released
High
Curtis Hovey

Bug Description

I was writing an API client for bzr that will check if a package-import branch has the latest published source. I accidentally started passing "distro_series='/ubuntu/natty/'" and I would get Internal Server Error.

I'm guessing there is an OOPS associated with this, but I never saw it on my side. To reproduce, you can just go to:
https://api.launchpad.net/1.0/ubuntu/+archive/primary?distro_series=%2Fubuntu%2Fnatty%2F&exact_match=true&source_name=%22bzr%22&status=Published&ws.op=getPublishedSources&ws.size=1

this compares with the 'correct' URL:
https://api.launchpad.net/1.0/ubuntu/+archive/primary?distro_series=%2Fubuntu%2Fnatty&exact_match=true&source_name=%22bzr%22&status=Published&ws.op=getPublishedSources&ws.size=1

The returned text is: ComponentLookupError

OOPS-2020AO138 ComponentLookupError: ((<lazr.restful.declarations.DistroSeriesEntry_1_0Adapter object at 0x10730050>, <canonical.launchpad.webapp.servers.WebServiceClientRequest instance URL=http://1.0/ubuntu/natty/>), <InterfaceClass lazr.restful.interfaces._rest.IEntry>, u'')

Tags: api oops qa-ok

Related branches

Revision history for this message
Gary Poster (gary) wrote :

Yeah, pretty sure that this should be a 404. I'm not sure where the OOPS is, but I expect it will show up eventually.

Changed in launchpad:
status: New → Triaged
importance: Undecided → Critical
tags: added: oops
description: updated
Revision history for this message
Steve Kowalik (stevenk) wrote :

OOPS-5b757253672e349b2399c1b549ac08f1 is a modern OOPS.

William Grant (wgrant)
tags: added: api
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: nobody → Curtis Hovey (sinzui)
Curtis Hovey (sinzui)
Changed in lazr.restful:
assignee: nobody → Curtis Hovey (sinzui)
status: New → In Progress
importance: Undecided → High
Curtis Hovey (sinzui)
Changed in lazr.restful:
milestone: none → 0.19.10
Curtis Hovey (sinzui)
Changed in lazr.restful:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in lazr.restful:
milestone: 0.19.10 → none
tags: added: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad:
status: In Progress → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
Steve Kowalik (stevenk)
Changed in lazr.restful:
status: Fix Committed → Fix Released
Changed in launchpad:
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.