JS failure for anonymous users on bug page
Bug #798622 reported by
Данило Шеган
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Данило Шеган |
Bug Description
When trying to load the bug page, there is a JS error "No bug specified in `config' or bug.web_link is invalid." when loading the "other subscribers" list. This was introduced in the fix for bug 772754.
The problem is that we are using LP.cache.bug for the bug, but that's not available when users are not logged in. LP.cache.context instead is a bugtask (because the bug page forwards to the bug task page), and the +bug-portlet-
Related branches
lp:~danilo/launchpad/anon-subscribers-list
- Abel Deuring (community): Approve (code)
-
Diff: 150 lines (+51/-4)6 files modifiedlib/lp/bugs/browser/bugsubscription.py (+8/-3)
lib/lp/bugs/browser/configure.zcml (+6/-0)
lib/lp/bugs/browser/tests/test_bugsubscription_views.py (+17/-0)
lib/lp/bugs/javascript/subscribers_list.js (+4/-0)
lib/lp/bugs/javascript/tests/test_subscribers_list.js (+13/-0)
lib/lp/bugs/templates/bugtask-index.pt (+3/-1)
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in stable r13258 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 13258>.