Unembargoing packages via the API doesn't seem to apply overrides correctly
Bug #475808 reported by
Julian Edwards
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Michael Nelson |
Bug Description
OOPS-1405B2440
The flashplugin-nonfree package has a component of "contrib" which would have been overriden to "multiverse" when first uploading it to Ubuntu. However when unembargoing an update from the security PPA, the override seems to not work and the above OOPS is generated.
"QueueInconsist
Related branches
lp:~michael.nelson/launchpad/475808-unembargoing-oops
- Данило Шеган (community): Approve (release-critical)
- Aaron Bentley (community): Approve
-
Diff: 405 lines (+208/-63)4 files modifiedlib/lp/soyuz/interfaces/publishing.py (+28/-0)
lib/lp/soyuz/model/publishing.py (+29/-22)
lib/lp/soyuz/model/queue.py (+41/-6)
lib/lp/soyuz/scripts/tests/test_copypackage.py (+110/-35)
Changed in soyuz: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 3.1.11 |
tags: | added: ppa soyuz-security soyuz-upload |
Changed in soyuz: | |
milestone: | 3.1.11 → 3.1.12 |
Changed in soyuz: | |
assignee: | nobody → Michael Nelson (michael.nelson) |
description: | updated |
tags: | added: current-rollout-blocker |
Changed in soyuz: | |
status: | Triaged → In Progress |
Changed in soyuz: | |
milestone: | 3.1.12 → 10.01 |
Changed in soyuz: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Pre-implementation notes:
AFAICS, this will affect any (delayed) copy where the source package release component has been overridden from a component not in the distroseries. upload_ components.
The issue is that, for delayed copies, the component is not yet overridden when the PackageUpload is accepted, as it does not yet have a publishing history. The check that is happening during acceptFromCopy() ends up at PackageUploadSo urce.checkCompo nentAndSection( ) which currently only considers the SourcePackageRe lease.
So, I plan to add a caveat to PackageUploadSo urce.checkCompo nentAndSection( ) that will, for delayed copies, use the component from the (soon-to-be) ancestry, rather than the SPR.