P4DTI issue job000411

TitleBugzilla integration depends on MySQLdb returning lists
Statusclosed
Prioritycritical
Assigned userNick Barnes
OrganizationRavenbrook
DescriptionA user reported an error from the Bugzilla integration, when the P4DTI was attempting to update a Bugzilla bug which had other bugs blocked on it but which was not blocked on any other bugs.
This was the error:
(P4DTI-891X) Defect tracker error (exceptions.TypeError): can only concatenate tuple (not "list") to tuple

This happened when the P4DTI was attempting to update a Bugzilla bug which had other bugs blocked on it but which was not blocked on any other bugs.
It has not yet been possible to reproduce this bug at Ravenbrook, and it is possible that most users will not see this bug.
AnalysisThis is caused by behaviour of the Python database library MySQLdb which we have not observed. It is probably due to an incompatible version of MySQLdb, used to access the Bugzilla database. This is therefore related to job000317 (we don't check the MySQLdb version number).
We may be able to configure the behaviour of MySQLdb. I have asked the MySQLdb author for advice.
We know that this doesn't happen in MySQLdb version 0.2.2 or 0.3.0.
In any case, the P4DTI should accept any sequence of sequences, as that is what is promised by the Python DB API version 2.0.
How foundcustomer
Evidence<http://info.ravenbrook.com/mail/2001/10/20/01-14-25/0.txt>
Observed in1.1.6
Introduced in0.5.0
Created byNick Barnes
Created on2001-10-22 15:48:46
Last modified byNick Barnes
Last modified on2002-04-09 11:36:34
History2001-10-22 NB Created.

Fixes

Change Effect Date User Description
23520 closed 2001-10-25 14:30:22 Nick Barnes Handle results from MySQLdb of any sequence type, as that is all the DB API promised.