no lp-logout command

Bug #349143 reported by Samuel Bronson
68
This bug affects 18 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Fix Released
Low
Jelmer Vernooij
Launchpad itself
Invalid
Undecided
Unassigned

Bug Description

If a user does an "lp-login", but then realizes (a) their SSH public key for the system they are on isn't associated with their launchpad account and (b) they aren't sure they want it to be, there is no simple way for them to cancel the lp-login, and they won't be able to read or write lp: branches:

$ bzr pull --remember lp:bzrtools
Permission denied (publickey). < 0KB 0KB/s |
bzr: ERROR: Connection closed: please check connectivity and permissions

Tags: lp-login

Related branches

Revision history for this message
Martin Pool (mbp) wrote :

That's true. As a workaround, they can edit ~/.bazaar/bazaar.conf

Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

(02:32:48) RenatoSilva: bzr branch lp:bzr-email: FATAL ERROR: Disconnected: No supported authentication methods available
(02:33:12) RenatoSilva: can't I branch as anonymous after a lp-login?
(02:39:21) jmarsden: RenatoSilva: I think you can't "undo" the lp-login easily, you have to edit or rm a file or two under .bzr/ before it will use http to access the repository. Someone was discussing this eitehr here on on #ubuntu-motu a few days ago I think.
jmarsden jml
(02:39:57) RenatoSilva: jmarsden: thanks for the info at least
(02:40:34) RenatoSilva: jmarsden: something like bzr branch --annonymous, and bzr lp-logout would be nice

Jonathan Lange (jml)
tags: added: lp-login
Revision history for this message
Trent McPheron (tiz-ex1) wrote :

This is _essential_ for people who use the Arch Linux distribution and are members of a Launchpad project; it becomes impossible to build -bzr PKGBUILDs when you're logged into Launchpad. This happens: http://omploader.org/vNHIzZw

The mentioned workaround works, but it is far from ideal.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 349143] Re: no lp-logout command

Trent I'm not really sure why that's related, can you please post the
traceback from .bzr.log?

Revision history for this message
Samuel Bronson (naesten) wrote :

How come this bug is lower priority than its duplicate, #438711 ?

Changed in launchpad:
status: New → Invalid
Revision history for this message
Martin Pool (mbp) wrote :

On 11 February 2011 11:32, Robert Collins <email address hidden> wrote:
> ** Changed in: launchpad
>       Status: New => Invalid

Sam, this doesn't require any code changes in Launchpad.

Martin Pool (mbp)
Changed in bzr:
importance: Low → Medium
Revision history for this message
Vincent Ladeuil (vila) wrote :

Another workaround, available in bzr >= 2.3:

  bzr config --remove launchpad_username

Revision history for this message
Beni Cherniavsky (cben) wrote :

Why does a read-only command like "bzr branch" use the login info at all?

Revision history for this message
Martin Pool (mbp) wrote :

On 4 April 2011 23:43, Beni Cherniavsky <email address hidden> wrote:
> Why does a read-only command like "bzr branch" use the login info at
> all?

Because it uses the login info to create an ssh connection, and then
it branches over that. That's a bit faster and a bit less prone to
interference from http proxies or other causes.

Revision history for this message
William Grant (wgrant) wrote :

And it works for private branches.

Revision history for this message
lcampagn (luke-campagnola) wrote :

I just got bit by this bug. Had to track down this report to get a solution, then had to figure out where the config file is stored on Windows to fix it. I would recommend that if read-only operations such as pull should fail due to SSH connection issues, then simply print a warning and attempt to fall back to HTTP.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Low
Jelmer Vernooij (jelmer)
Changed in brz:
status: Triaged → In Progress
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in brz:
status: In Progress → Fix Released
milestone: none → 3.0.0
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.