BugzillaAPI.getCommentIds() should never have worked

Bug #423046 reported by Graham Binns
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Graham Binns

Bug Description

What happens:
When Bug.comments() is called on a Bugzilla 3.4 instance's API it returns a struct in this form:

{'bugs': {'1': {'comments': [1, 2, 3]}}}

BugzillaAPI.getCommentIds(), which calls Bug.comments() tries to get the list of comments from the second level of this nest of dicts rather than the third. For reasons that I can't satisfactorily explain this worked when I QAd it locally. Of course, it never should have worked at all, and after I looked at the code it no longer works at all.

What should happen:
BugzillaAPI.getCommentIds() should look in the right place to get the list of comment IDs.

Related branches

Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit

Fixed in devel r9314.

Changed in malone:
status: In Progress → Fix Committed
Graham Binns (gmb)
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.