IArchive.checkUpload() requires existing sourcepackagename
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Launchpad itself |
High
|
Unassigned | ||
Bug Description
There's no API for telling if someone can upload to a particular PPA. One API that looks like it might be appropriate is IArchive.
{{{
>>> ppa.checkUpload
True
>>> ppa.checkUpload
Traceback (most recent call last):
...
NotFound: HTTP Error 404: Not Found
Response headers:
---
...
status: 404
...
---
Response body:
---
No such source package: 'whatever'.
---
}}}
Exacerbated by bug 814725. If there were a way of actually getting feedback on upload, then we could just try & get the failure.
| Julian Edwards (julian-edwards) wrote : | #1 |
| summary: |
- No API for telling if someone can upload to PPA + IArchive.checkUpload() requires existing sourcepackagename |
| Changed in launchpad: | |
| status: | New → Triaged |
| importance: | Undecided → High |
| tags: | added: api ppa |
| Jonathan Lange (jml) wrote : | #2 |
Since the description was changed to refer to only one aspect of the bug, I've filed two other bugs that deal with the other aspects: bug 821374 and bug 821376.
| description: | updated |
| Jonathan Lange (jml) wrote : Re: [Bug 821366] Re: IArchive.checkUpload() requires existing sourcepackagename | #3 |
On Fri, Aug 5, 2011 at 10:36 AM, Julian Edwards
<email address hidden> wrote:
> (Fixed inflammatory bug title)
>
> The API is not as useful for PPAs as it could be because it was designed
> for the main archive. The source name, pocket and component should be
> optional parameters for PPAs and mandatory for the main archive.
>
Sorry, it wasn't meant to be inflammatory. From trying to use the API,
it looked as if it was designed for the main archive, and thus that
there was no actual API for checking to see if a user could upload to
a PPA.
jml

(Fixed inflammatory bug title)
The API is not as useful for PPAs as it could be because it was designed for the main archive. The source name, pocket and component should be optional parameters for PPAs and mandatory for the main archive.