golang_import_spec needs to check that the branch is accessible

Bug #1474592 reported by William Grant on 2015-07-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
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) on 2015-07-14
Changed in launchpad:
assignee: nobody → Bayard 'kit' Randel (blr)
William Grant (wgrant) on 2015-07-15
Changed in launchpad:
status: Triaged → In Progress
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Kit Randel (blr) on 2015-07-16
tags: added: qa-ok
removed: qa-needstesting
Colin Watson (cjwatson) on 2015-07-30
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers