mute_subscription is null in update_mute_after_subscription_change

Bug #753387 reported by Gavin Panella
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Henning Eggers

Bug Description

In Chromium, on https://bugs.launchpad.net/launchpad/+bug/753249, I
clicked Subscribe, the spinner briefly shows, then the page returns to
its previous state. The console log shows:

{{{
Uncaught TypeError: Cannot call method 'get' of null
get_mute_subscription launchpad.js:457
on_success launchpad.js:480
b.Subscriber._notify launchpad.js:2
b.Subscriber.notify launchpad.js:2
b.CustomEvent._notify launchpad.js:2
b.CustomEvent._procSubs launchpad.js:2
b.CustomEvent.fireSimple launchpad.js:2
b.CustomEvent.fire launchpad.js:2
t launchpad.js:2
B launchpad.js:2
R launchpad.js:2
}}}

I am however able to subscribe at
https://bugs.launchpad.net/launchpad/+bug/753249/+subscribe and
unsubscribe in the bug page itself (i.e. with ajax).

I was able to reproduce this bug reliably, so, as most people will not
be aware of the workaround, I am marking it as Critical.

Tags: qa-ok

Related branches

Revision history for this message
Martin Stjernholm (msub) wrote :

I'm experiencing a problem with the same effects for
https://bugs.launchpad.net/ubuntu/+bug/704105. I'm using Firefox 3.6, and get this in the Firebug console:

show_widget_node is null
  show_widget_node.set('innerHTML', 'Choose…');
704105 (line 552)

Revision history for this message
Henning Eggers (henninge) wrote :

This bug only happens when structural bug subscriptions are *not* enabled which is currently only the case on qastaging (for members of betatesters). The code has changed since this was reported but it now found in update_mute_after_subscription_change which is called even without the mute option being on the page. Also, this seems to not be critical anymore since it does not hinder the actual subscription.
Anyway, easy fix, I'll do it anyway.

Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Henning Eggers (henninge)
importance: Critical → High
summary: - Can't subscribe to bug: Uncaught TypeError: Cannot call method 'get' of
- null
+ mute_subscription is null in update_mute_after_subscription_change
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
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.