Undescriptive error message when user isn't part of LP team.

Bug #200412 reported by Ryan Kavanagh
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Jonathan Lange

Bug Description

Bazaar should provide a more descriptive error message when the user is trying to upload to a launchpad team, yet isn't part of the team.

In this case, I tried to upload to the bazaar.launchpad.net/~5-a-day/5-a-day-data/main branch, but got an error message:

% add-5-a-day 199441
Enter passphrase for key '/home/ryan/.ssh/id_dsa':
Enter passphrase for key '/home/ryan/.ssh/id_dsa':
Tree is up to date at revision 1467.
added ryanakca
Enter passphrase for key '/home/ryan/.ssh/id_dsa':
bzr: ERROR: Cannot lock LockDir(lp--1217704244:///~5-a-day/5-a-day-data/main/.bzr/branchlock): Transport operation not possible: readonly transport
bzr failed with error code 768

To fix this, I needed to join the 5-a-day launchpad team. In a case like this, I think a more descriptive error message would be:
bzr: ERROR: Cannot lock LockDir(lp--1217704244:///~5-a-day/5-a-day-data/main/.bzr/branchlock): Transport operation not possible: You are not a member of the 5-a-day team.

Tags: lp-code
Martin Albisetti (beuno)
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

This is primarily a bug in Launchpad's bzr server, not Bazaar itself.

Tim Penhey (thumper)
Changed in launchpad-bazaar:
assignee: nobody → jml
Revision history for this message
Jonathan Lange (jml) wrote :

This somehow got fixed.

$ bzr push lp://staging/~ubuntu-core-dev/launchpad/test-error-message
bzr: ERROR: Permission denied: "/~ubuntu-core-dev/launchpad/test-error-message": : Jonathan Lange is not a member of Ubuntu Core Development Team

Changed in launchpad-bazaar:
status: Confirmed → 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.