archive.checkUpload() OOPSes when distoseries is set to a stable release

Bug #608891 reported by Michael Bienia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Julian Edwards

Bug Description

The LP API function fails with an OOPS if distroseries is passed a stable release (e.g. lucid).

{{{
$ lp-shell
Connected to LP service "edge" with API version "1.0":
Note: LP can be accessed through the "lp" object.
>>> ubuntu = lp.distributions['ubuntu']
>>> archive = ubuntu.main_archive
>>> lucid = ubuntu.getSeries(name_or_version='lucid')
>>> archive.checkUpload(component='universe', distroseries=lucid, person=lp.me, pocket='Release', sourcepackagename='ubuntu-dev-tools')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py", line 528, in __call__
    url, in_representation, http_method, extra_headers=extra_headers)
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 277, in _request
    raise HTTPError(response, content)
HTTPError: HTTP Error 500: Internal Server Error
Response headers:
---
connection: close
content-length: 20
content-type: text/plain
date: Thu, 22 Jul 2010 19:16:59 GMT
server: zope.server.http (HTTP)
status: 500
vary: Accept-Encoding
via: 1.1 wildcard.edge.launchpad.net
x-lazr-oopsid: OOPS-1664ED2148
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
CannotUploadToPocket
---
}}}

The error message itself is correct but I don't assume it should cause an OOPS to transfer it.

Related branches

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Thanks for reporting this.

For the fixer:

In interfaces/archive.py, the CannotUploadToPocket class is missing a:
webservice_error(403)

Changed in soyuz:
status: New → Triaged
importance: Undecided → High
tags: added: trivial
Changed in soyuz:
status: Triaged → In Progress
assignee: nobody → Julian Edwards (julian-edwards)
tags: added: oops
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in soyuz:
milestone: none → 10.08
tags: added: qa-needstesting
Changed in soyuz:
status: In Progress → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
Changed in soyuz:
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.