ArchivePermission allows duplicated rows

Bug #887185 reported by Julian Edwards
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Colin Watson

Bug Description

This is fine until you come to delete one and you get a NotOneError.

Example:
launchpad_prod_3=# select * from archivepermission where packageset=109;
 id | date_created | person | permission | archive | component | sourcepackagename | packageset | explicit
-----+----------------------------+---------+------------+---------+-----------+-------------------+------------+----------
 769 | 2011-11-03 19:37:40.072146 | 3666300 | 1 | 1 | | | 109 | f
 755 | 2011-10-13 14:45:10.404165 | 16139 | 1 | 1 | | | 109 | f
 731 | 2011-10-13 14:45:10.404165 | 16139 | 1 | 1 | | | 109 | f

Related branches

Changed in launchpad:
status: New → Triaged
importance: Undecided → High
tags: added: packagesets
tags: added: soyuz-upload
Revision history for this message
Raphaël Badin (rvb) wrote :

I've checked ubuntu/oneiric and ubuntu-leb/oneiric: no other duplication.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Precise has got *many* duplicated permissions for its packagesets and the timestamps are all at the time that precise was initialised. This means there's a bug in initialize-distroseries.py.

Changed in launchpad:
importance: High → Critical
assignee: nobody → Launchpad Red Squad (redsquad)
Revision history for this message
Colin Watson (cjwatson) wrote :

I have a test exercising this behaviour and am working on a fix, hopefully in time for initialising Q.

Changed in launchpad:
assignee: Launchpad Red Squad (redsquad) → Colin Watson (cjwatson)
Colin Watson (cjwatson)
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
William Grant (wgrant) wrote :

https://pastebin.canonical.com/64714/ is an analysis of the broken production data.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
William Grant (wgrant)
tags: added: qa-untestable
removed: qa-needstesting
Gavin Panella (allenap)
Changed in launchpad:
status: In Progress → Fix Released
Revision history for this message
Stéphane Graber (stgraber) wrote :

Filed bug 1025441 to clear the remaining duplicates from the DB.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.