oops trying to create a code import if branch policy produces a private branch

Bug #380271 reported by Diogo Matsubara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Tim Penhey

Bug Description

Steps to reproduce:
1. Open https://code.staging.launchpad.net/+code-imports/+new
2. Enter oops-tools in the project field
3. Enter a random git repository (e.g. git://github.com/lloyd/yajl.git) in the git field
4. Click request import
5. OOPS-1241S110 BranchCreationForbidden: You cannot create branches in u'~vcs-imports/oops-tools'

This might be a dupe of bug 268682

tags: added: code-import oops
Changed in launchpad-code:
importance: Undecided → High
milestone: none → 2.2.5
status: New → Triaged
importance: High → Critical
Changed in launchpad-code:
assignee: nobody → Jonathan Lange (jml)
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

So it turns out that the problem is caused by the code import creation code passing the ~vcs-imports team as the registrant of the branch (which is bogus: the registrant should always be a person), and ~vcs-imports doesn't have the right to create a branch in the project Diogo was trying.

Hance, reduce importance, bump to next milestone.

summary: - oops trying to import from a git repository
+ oops trying to create a code import if branch policy produces a private
+ branch
Changed in launchpad-code:
importance: Critical → High
milestone: 2.2.5 → 2.2.6
Tim Penhey (thumper)
Changed in launchpad-code:
assignee: Jonathan Lange (jml) → Tim Penhey (thumper)
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.