No rebuild option if have upload privileges via per-package rights
Bug #493425 reported by
Robert Ancell
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Steve Kowalik |
Bug Description
I have upload privileges to desktop packages in main as I am a member of the ubuntu-desktop team. However if a build fails and I want to retry it I do not have a link to do this from Launchpad. People who are main uploaders do have this option.
i.e.
1. I uploaded xscreensaver
2. LP notifies me by email that it failed to build on ia64
3. I go to the build log to see why:
https:/
4. Realising it was an error in a dependant package I want to rebuild but I don't have the option
Note that this kind of error seems to be quite frequent and I currently have to find someone with main privileges to perform the retry
Related branches
lp:~stevenk/launchpad/fixes-bug-493425
- Julian Edwards (community): Approve
- Canonical Launchpad Engineering: Pending requested
-
Diff: 80 lines (+44/-9)2 files modifiedlib/canonical/launchpad/security.py (+12/-9)
lib/lp/soyuz/browser/tests/build-views.txt (+32/-0)
affects: | launchpad → soyuz |
Changed in soyuz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → 10.02 |
summary: |
- No rebuild option if have upload privileges via a team + No rebuild option if have upload privileges via per-package rights |
Changed in soyuz: | |
milestone: | 10.02 → 10.03 |
Changed in soyuz: | |
status: | Triaged → In Progress |
assignee: | nobody → Steve Kowalik (stevenk) |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in soyuz: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The security adapter is not taking package sets into account, so if the upload permission is via a package set then it won't get build edit rights
Instead of calling IArchive. canUpload( ), it should call archiveuploader .permission. check_upload_ to_archive( ) which works properly with package sets.