Merge lp:~allenap/launchpad/kde-bugzilla-being-odd into lp:launchpad
Proposed by
Gavin Panella
on 2010-01-11
| Status: | Merged |
|---|---|
| Approved by: | Gavin Panella on 2010-01-13 |
| Approved revision: | not available |
| Merged at revision: | not available |
| Proposed branch: | lp:~allenap/launchpad/kde-bugzilla-being-odd |
| Merge into: | lp:launchpad |
| Diff against target: |
125 lines (+39/-23) 2 files modified
lib/lp/bugs/doc/externalbugtracker-bugzilla.txt (+28/-3) lib/lp/bugs/externalbugtracker/bugzilla.py (+11/-20) |
| To merge this branch: | bzr merge lp:~allenap/launchpad/kde-bugzilla-being-odd |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2010-01-11 | Approve on 2010-01-12 |
|
Review via email:
|
|||
Commit Message
Don't break when an XML-RPC reply from a remote Bugzilla instance is not a mapping. Older Bugzilla instances return tuples. Also, simplify Bugzilla version parsing.
To post a comment you must log in.
| Gavin Panella (allenap) wrote : | # |
| Brad Crittenden (bac) wrote : | # |
Looks nice Gavin.
Since 'remote_
review:
Approve
(code)
| Gavin Panella (allenap) wrote : | # |
Thanks Brad! Good catch; I've changed the name.

KDE bugs returns tuples instead of mappings to XML-RPC calls. This causes the Bugzilla sniffer to fall over. I've changed it to consider anything other than a dict as unsupported (for API consideration). This means Launchpad will fall-back to the standard boring stupid Bugzilla support, which should work at least. This addresses bug 505958. I discussed this with Graham Binns briefly before implementation.
I also noticed that I could have a go at fixing Bugzilla. _parseVersion( ) to simply extract the numeric parts of the version. This addresses bug 334980.
Lint free.
Test: bin/test -vvt 'external.*bug'