P4DTI issue job000445

TitleBugzilla replicator doesn't like spaces in enum fields
Assigned userNick Barnes
DescriptionThe Bugzilla replicator doesn't translate an "enum" field correctly from Bugzilla to Perforce if the values in the field include spaces or other non-word characters. Two enum fields ("bug_status" and "resolution") are handled specially. For other enum fields (i.e. "priority" and "op_sys" in the default Bugzilla schema) there is no special handling and the replicator will fail if given a value with a non-word character such as a space.
AnalysisThere is code in configure_bugzilla to analyse the Bugzilla schema and create appropriate jobspec entries and translator objects. There is a bug in this code for enum fields: it uses translator.translator() instead of enum_translator.
How foundcustomer
Evidencecustomer email: <http://info.ravenbrook.com/mail/2001/11/29/10-57-14/0.txt>
Observed in1.2.1
Introduced in0.5.0
Test procedure<http://www.ravenbrook.com/project/p4dti/master/test/test_p4dti.py>, section 19
Created byNick Barnes
Created on2002-01-02 16:20:41
Last modified byGareth Rees
Last modified on2002-01-21 14:22:15
History2002-01-02 NB created.


Change Effect Date User Description
25683 closed 2002-01-07 16:58:44 Nick Barnes Enable the replicator to handle Bugzilla enum fields containing spaces. Also extend the test suite to handle alternative MySQL dump files and to use getattr and setattr where appropriate to access config parameters.