NotOneError caused by duplicate stuctural subscriptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Gary Poster |
Bug Description
https:/
OOPS-1922B2078
Module lp.app.
data=self.
Module lp.bugs.
for team in teams
Module lp.bugs.
if self.isSubscrib
Module lp.bugs.
subscription = self.context.
Module lp.bugs.
return all_subscriptio
Module storm.store, line 1163, in one
raise NotOneError("one() used with more than one result available")
NotOneError: one() used with more than one result
The DB patch is failing because the bugfilter related tables are not marked on delete cascade; a followup patch is needed to correct the db patch so it will pass.
Related branches
- Graham Binns (community): Approve (code)
- Stuart Bishop (community): Approve (db)
-
Diff: 573 lines (+521/-1)4 files modifieddatabase/schema/patch-2208-65-0.sql (+360/-0)
database/schema/security.cfg (+2/-1)
lib/lp/registry/model/person.py (+57/-0)
lib/lp/registry/tests/test_person.py (+102/-0)
Changed in launchpad: | |
assignee: | nobody → Gary Poster (gary) |
status: | Triaged → In Progress |
Changed in launchpad: | |
status: | In Progress → Fix Committed |
tags: |
added: qa-bad removed: qa-needstesting |
description: | updated |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
This issues was probable caused by the deletion of a team. It may released to bug 663947.