golang_import_spec needs to check that the branch is accessible

Bug #1474592 reported by William Grant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Kit Randel

Bug Description

Accessing a project page with a default branch or repository on which you don't have launchpad.View crashes with an Unauthorized:

Module lp.registry.browser.product, line 1048, in golang_import_spec
    branch=self.context.development_focus.branch.unique_name)

Unauthorized: (<Branch u'<REDACTED>' (16950244)>, 'unique_name', 'launchpad.View')<br />

Related branches

Kit Randel (blr)
Changed in launchpad:
assignee: nobody → Bayard 'kit' Randel (blr)
William Grant (wgrant)
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Kit Randel (blr)
tags: added: qa-ok
removed: qa-needstesting
Colin Watson (cjwatson)
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.