bzr lp-propose-merge -R foo crashes if there is no such team or person on launchpad

Bug #693096 reported by Zygmunt Krynicki
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
bzr (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: bzr

I used "bzr lp-propose-merge -R person" and made a typo in the person's nickname.
Bzr did not handle that situation and crashed.

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: bzr 2.2.1-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic x86_64
NonfreeKernelModules: vmblock vsock vmci vmhgfs
Architecture: amd64
BzrDebugFlags: set()
BzrVersion: 2.2.1
CommandLine: ['/usr/bin/bzr', 'lp-propose-merge', '-R', 'deepti']
CrashDb: bzr
Date: Tue Dec 21 18:01:24 2010
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate amd64 (20100928)
InterpreterPath: /usr/bin/python2.6
Locale: pl_PL.utf8
Platform: Linux-2.6.35-24-generic-x86_64-with-Ubuntu-10.10-maverick
ProcCmdline: /usr/bin/python /usr/bin/bzr lp-propose-merge -R deepti
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=pl_PL.utf8
PythonVersion: 2.6.6
SourcePackage: bzr
Title: bzr crashed with KeyError in __getitem__()
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad/__init__.py", line 343, in run
    reviews, staging, approve=approve)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad/lp_propose.py", line 97, in __init__
    reviews]
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py", line 921, in __getitem__
    raise KeyError(key)
KeyError: u'deepti'

Revision history for this message
Zygmunt Krynicki (zyga) wrote :
tags: removed: need-duplicate-check
Martin Pool (mbp)
description: updated
Martin Pool (mbp)
visibility: private → public
Jelmer Vernooij (jelmer)
Changed in bzr:
status: New → Confirmed
Changed in bzr (Ubuntu):
status: New → Triaged
Changed in bzr:
importance: Undecided → Low
Changed in bzr (Ubuntu):
importance: Undecided → Medium
Changed in bzr:
importance: Low → Medium
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.