BugzillaAPI._storeBugs() doesn't handle bugs not having an alias field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Graham Binns |
Bug Description
Steps to reproduce:
Execute the following in bin/harness:
>>> from lp.bugs.
>>> b = Bugzilla('https:/
>>> b = b.getExternalBu
>>> b.initializeRem
What happens:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/
return func(*args, **kwargs)
File "/home/
self.
File "/home/
if remote_bug['alias'] != '':
KeyError: 'alias'
What should happen:
_storeBugs() should handle the lack of an alias field appropriately (and if it's indicative of data being wonky, should handle *that* appropriately) instead of letting the KeyError bubble up.
Related branches
- Abel Deuring (community): Approve (code)
-
Diff: 72 lines (+40/-1)3 files modifiedlib/lp/bugs/doc/externalbugtracker-bugzilla-api.txt (+17/-0)
lib/lp/bugs/externalbugtracker/bugzilla.py (+1/-1)
lib/lp/bugs/tests/externalbugtracker.py (+22/-0)
Changed in malone: | |
status: | Triaged → In Progress |
assignee: | nobody → Graham Binns (gmb) |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in malone: | |
status: | Fix Committed → Fix Released |
Fixed in stable r11719 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 11719>.