archive.checkUpload() OOPSes when distoseries is set to a stable release
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.distribution
>>> archive = ubuntu.main_archive
>>> lucid = ubuntu.
>>> archive.
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib/
url, in_representation, http_method, extra_headers=
File "/usr/lib/
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.
x-lazr-oopsid: OOPS-1664ED2148
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
CannotUploadToP
---
}}}
The error message itself is correct but I don't assume it should cause an OOPS to transfer it.
Related branches
- Māris Fogels (community): Approve (code)
-
Diff: 83 lines (+68/-0)2 files modifiedlib/lp/soyuz/browser/tests/test_archive_webservice.py (+67/-0)
lib/lp/soyuz/interfaces/archive.py (+1/-0)
Changed in soyuz: | |
status: | Triaged → In Progress |
assignee: | nobody → Julian Edwards (julian-edwards) |
tags: | added: oops |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in soyuz: | |
status: | Fix Committed → Fix Released |
Thanks for reporting this.
For the fixer:
In interfaces/ archive. py, the CannotUploadToP ocket class is missing a: error(403)
webservice_