Bug pages should be viewable on Launchpad read-only mode

Bug #380774 reported by Ursula Junque
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Eleanor Berger

Bug Description

When trying to view a bug while Launchpad was in read-only mode, I got the following error:

https://pastebin.canonical.com/17756/

This error appears instead of letting me read the bug content.

Tags: lp-bugs
Ursula Junque (ursinha)
description: updated
William Grant (wgrant)
Changed in malone:
assignee: nobody → Tom Berger (intellectronica)
Revision history for this message
Eleanor Berger (intellectronica) wrote :

The reason for this is that we check for launchpad.Edit when accessing userIsAffected. We should check for launchpad.View

Changed in malone:
importance: Undecided → High
milestone: none → 2.2.6
status: New → Triaged
Revision history for this message
Eleanor Berger (intellectronica) wrote :

This is a bit tricky to test. For now I suggest using check_permission to make sure we use the correct security policy. Another, better and more complicated, option, is to test rendering the bug page after patching the security policy to match read-only mode.

Revision history for this message
Eleanor Berger (intellectronica) wrote :

Setting config.launchpad.read_only to True in a test should do the right thing.

Changed in malone:
status: Triaged → In Progress
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit

Fixed in devel r8495.

Changed in malone:
status: In Progress → Fix Committed
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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