Muting a bug subscription for a team with a contact address crashes getRecipientFilterData

Bug #778847 reported by William Grant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Yellow Squad

Bug Description

getRecipientFilterData crashes if it finds a BugSubscriptionFilterMute for a person who isn't receiving an email through that filter. This has only shown itself once on production so far: people muted ~launchpad-bugs' subscription to launchpad when it had no contact address, but then it had its contact address readded. This meant that only the team itself received notifications from that filter, so all the mutes were redundant and crashy.

Steps to reproduce locally:
 1) Create a team with a contact address.
 2) Subscribe that team to a project's bugs.
 3) As a member of that team, mute the structural subscription.
 4) File a bug on the project.
 5) After 5 minutes (or whatever the notification batching window is), run send-bug-notifications.py.
 6) OOPS-1952REPORTIFSEEN1000 (http://launchpadlibrarian.net/71237712/mxcMwtvbHTEmUeoQItq4WoPvjt.txt)

Related branches

William Grant (wgrant)
tags: added: oops regression story-better-bug-notification
Revision history for this message
Tom Haddon (mthaddon) wrote :

Not sure if this is related, but it also looks like the bug subscriptions aren't being added for newly created bugs - I just created bug 779406 but no-one was subscribed by default, when normally I'd expect at least ~launchpad to be subscribed.

Revision history for this message
William Grant (wgrant) wrote :

Tom, that's just a display issue. It seems to be a deliberate change from the advanced subscriptions work -- see bug #768483.

Graham Binns (gmb)
Changed in launchpad:
assignee: nobody → Launchpad Yellow Squad (yellow)
Graham Binns (gmb)
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
Robert Collins (lifeless) wrote :

This was incomplete new functionality vs breaking 'released' functionality - untagging regression from it.

tags: removed: regression
tags: added: regression
tags: removed: regression
Revision history for this message
Robert Collins (lifeless) wrote :

Ok, retagging - once a recipient was affecting, all notifications on the same bug halted.

tags: added: regression
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Graham Binns (gmb)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
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.