Trying to import a branch to a project which you're not allowed to crashes

Bug #268682 reported by Ursula Junque
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Tim Penhey

Bug Description

As seen on OOPS-983D2075, OOPS-983E2868, OOPS-983H2844, trying to import a branch to LP, to a project which you don't have permission to access the code, causes LP to crash. It should display an error message highlighting the project field, informing the user that he's not allowed to create the branch on that project instead of crashing.

Steps to reproduce:
1) Go to https://code.staging.launchpad.net/+code-imports/+new
2) Select a project you're not allowed to view or touch, ubunet project in the above OOPS case
3) In the "Subversion", "Branch URL" field, insert a svn branch, svn://ratproxy.googlecode.com/svn/trunk/ratproxy-read-only in the above OOPS
4) It should oops like OOPS-984S1141:
BranchCreationForbidden: You cannot create branches for the product u'ubunet'

Revision history for this message
Jonathan Lange (jml) wrote :

I know it causes OOPSes, but it's not high priority since it's not something you should be doing anyway.

Changed in launchpad-bazaar:
importance: Undecided → Medium
status: New → Triaged
Tim Penhey (thumper)
Changed in launchpad-code:
assignee: nobody → Tim Penhey (thumper)
milestone: none → 2.2.6
Tim Penhey (thumper)
Changed in launchpad-code:
status: Triaged → In Progress
Tim Penhey (thumper)
tags: added: code-import
Revision history for this message
Tim Penhey (thumper) wrote :

Fixed in RF 8616.

Changed in launchpad-code:
status: In Progress → Fix Committed
Tim Penhey (thumper)
Changed in launchpad-code:
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.