internal error getPublishedSources distro_series has extra slash

Bug #809863 reported by John A Meinel on 2011-07-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Critical
Curtis Hovey
lazr.restful
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'')

Related branches

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
Steve Kowalik (stevenk) wrote :

OOPS-5b757253672e349b2399c1b549ac08f1 is a modern OOPS.

William Grant (wgrant) on 2012-10-22
tags: added: api
Curtis Hovey (sinzui) on 2012-12-03
Changed in launchpad:
assignee: nobody → Curtis Hovey (sinzui)
Curtis Hovey (sinzui) on 2012-12-06
Changed in lazr.restful:
assignee: nobody → Curtis Hovey (sinzui)
status: New → In Progress
importance: Undecided → High
Curtis Hovey (sinzui) on 2012-12-06
Changed in lazr.restful:
milestone: none → 0.19.10
Curtis Hovey (sinzui) on 2012-12-06
Changed in lazr.restful:
status: In Progress → Fix Committed
Curtis Hovey (sinzui) on 2012-12-06
Changed in launchpad:
status: Triaged → In Progress
Launchpad QA Bot (lpqabot) wrote :
Changed in lazr.restful:
milestone: 0.19.10 → none
tags: added: qa-needstesting
Curtis Hovey (sinzui) on 2012-12-06
Changed in launchpad:
status: In Progress → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
Steve Kowalik (stevenk) on 2012-12-11
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  Edit
Everyone can see this information.

Other bug subscribers