P4DTI issue job000262

TitleBugzilla: Can't use Perforce to confirm an unconfirmed bug
Statusclosed
Priorityessential
Assigned userNick Barnes
OrganizationRavenbrook
DescriptionAn unconfirmed Bugzilla bug can not be confirmed from Perforce. That is, a bug status "UNCONFIRMED" can not be changed by editing the corresponding Perforce job. Attempting to confirm a bug will cause a replication failure, with a message like "Given 1 when expecting a string".
AnalysisThe integration is smart enough to know that it should set the 'everconfirmed' field to 1 when confirming a bug, but not smart enough to know that 'everconfirmed' is a number.
So in bugzilla.py, when quoting the value 1 to update the bug record, we give 1 to sqlquote, and get a failure: "Given 1 when expecting a string."
Add this to the 'bugs' entry in quote_table in bugzilla.py:
    'everconfirmed': self_str,
    'groupset': self_str,
    'reporter': self_str,
    'qa_contact': self_str,
    'votes': self_str
(note that some of these are read-only from Perforce, but if we add them to this table now then they will work if we ever allow the replicator to update them).
How foundmanual_test
Evidenceemail backtrace.
Observed in1.0.4
Introduced in0.5.0
Test procedure<http://www.ravenbrook.com/project/p4dti/master/test/test_p4dti.py>, section 14
Created byNick Barnes
Created on2001-03-20 15:07:20
Last modified byGareth Rees
Last modified on2010-10-07 12:06:09
History2001-03-20 NB Created.
2001-03-21 NB Changed description to user visible impact.
2001-03-21 RB Set priority to essential.

Fixes

Change Effect Date User Description
22404 closed 2001-09-10 15:49:37 Nick Barnes Quote values of integral types correctly when constructing SQL. job000262
12440 closed 2001-05-09 14:33:51 Nick Barnes Adding bugs to Bugzilla now seems to work.