question about lp access to bzr+ssh and empty/wrong password

Alexander Belchenko bialix at
Thu Feb 5 20:02:09 GMT 2009

John Arbash Meinel пишет:
> Alexander Belchenko wrote:
>> Wichmann, Mats D ?8H5B:
>>> bazaar-bounces at wrote:
>>>> Dear bzr devs and Andrew Bennetts in particular,
>>>> Can somebody of you shed some light on this bug (in QBzr):
>>>> Thank you.
>>> well it seems the command-line case is pretty clear,
>>> unless you have ssh key installed on the remote end
>>> it's not going to let you in, typing a password
>>> isn't an accepted way.
>> Sorry, I don't understand.
> At a minimum, launchpad does not allow password access. So you have to
> use an ssh key.
> Other than that, my guess is that the command-line UI returns either
> None/'' for the password prompt, and your GUI is returning the opposite one.
> Looking at SilentUIFactory, it always returns "None" as the password,
> however the CLIUIFactory uses 'get_non_echoed_password' which in turn
> uses 'getpass.getpass()'.
> And when I hit <enter> there, I get back the empty string. So my guess
> is that qbzr is returning None.

We send password via stin/stdout pipe as bencoded object, I don't think we can
bencode None properly.

Thanks anyway.

More information about the bazaar mailing list