Please expose an API method to know whether a person can upload a sourcepackagename to a series in an archive

Bug #503149 reported by James Westby on 2010-01-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Jelmer Vernooij

Bug Description


I would really like an API call that could tell me whether LP would
accept an upload from a person to an archive of a particular source package
name (with an optional series parameter). I would want this to be what
LPs decision was if it was processing the upload at that time and all other
things were equal (signed, version checks, etc.)

This means that it should accept it whether their right comes from the component,
the package, or the packageset, and would do the right thing if the package was
NEW to that archive.

It's my understanding that such a method may be in LP now (rather than being
spread out in other methods), so it may just be a job of exporting it.



Related branches

Muharem Hrnjadovic (al-maisan) wrote :

If that level of functionality is desired then check_upload_to_archive() (in lib/lp/archiveuploader/|128|) should be exposed. That's the function used for source package upload authorization checks (in lib/lp/archiveuploader/|491|).

Please note that check_upload_to_archive() is a plain function however, and, if memory serves right, only methods can be exposed on the LP API.

Julian Edwards (julian-edwards) wrote :

We can hang it off IArchive easily enough.

Changed in soyuz:
status: New → Triaged
importance: Undecided → High
milestone: none → 10.02
Jelmer Vernooij (jelmer) on 2010-02-10
Changed in soyuz:
assignee: nobody → Jelmer Vernooij (jelmer)
status: Triaged → In Progress
Changed in soyuz:
milestone: 10.02 → 10.03
Changed in soyuz:
milestone: 10.03 → 10.04
Changed in soyuz:
milestone: 10.04 → 10.05
Changed in soyuz:
status: In Progress → Fix Committed
tags: added: qa-needstesting
Jelmer Vernooij (jelmer) on 2010-06-01
tags: added: qa-ok
removed: qa-needstesting
tags: removed: qa-ok
Curtis Hovey (sinzui) on 2010-06-02
Changed in soyuz:
status: Fix Committed → Fix Released
Ursula Junque (ursinha) wrote :
Changed in soyuz:
milestone: 10.05 → 10.06
tags: added: qa-needstesting
Changed in soyuz:
status: Fix Released → Fix Committed
Jelmer Vernooij (jelmer) on 2010-06-18
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui) on 2010-07-07
Changed in soyuz:
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