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
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Jelmer Vernooij

Bug Description

Hi,

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.

Thanks,

James

Tags: lp-soyuz qa-ok

Related branches

Revision history for this message
Muharem Hrnjadovic (al-maisan) wrote :

If that level of functionality is desired then check_upload_to_archive() (in lib/lp/archiveuploader/permission.py|128|) should be exposed. That's the function used for source package upload authorization checks (in lib/lp/archiveuploader/nascentupload.py|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.

Revision history for this message
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)
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
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
Changed in soyuz:
status: In Progress → Fix Committed
tags: added: qa-needstesting
Jelmer Vernooij (jelmer)
tags: added: qa-ok
removed: qa-needstesting
tags: removed: qa-ok
Curtis Hovey (sinzui)
Changed in soyuz:
status: Fix Committed → Fix Released
Revision history for this message
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)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
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.