Hide Forgot
Description of problem: The return of method component.update contains null string Version-Release number of selected component (if applicable): 5.0.3-rh11 How reproducible: Steps to Reproduce: 1.Try to update component's contacts like below: =================Executed XML-RPC================= xmlrpc.Component.update({'updates': {'name': 'bne_test_yUvF', 'default_docs_contact': 'redhat1', 'default_cc': ['redhat1', 'admin1'], 'default_qa_contact': 'redhat1', 'default_assignee': 'redhat1', 'template_id': 1, 'description': 'just for test'}, 'ids': [147950], 'Bugzilla_login': 'admin1', 'Bugzilla_password': '******'}) 2. 3. Actual results: It contains '' =============XMLRPC Execution Results============= {'components_updates': {'147950': {'default_cc': ['', 'admin1, redhat1'], 'default_docs_contact': ['', 'redhat1'], 'default_qa_contact': ['', 'redhat1']}}} Expected results: Additional info:
What product and component is this in?
(In reply to Matt Tyson from comment #1) > What product and component is this in? This product and component create by myself, it doesn't come from production. This error only happened when this component create without default_docs_contact set, then update this component's default_docs_contact to users. e.g: result = proxy.Component.create({'Bugzilla_login': 'admin1', 'Bugzilla_password': '*****','product':'Auto Test','component':'bne_test_11111','description':'just for test','default_assignee':'redhat1','default_qa_contact': 'admin3'}) result = proxy.Component.update({'updates': {'default_docs_contact': 'admin3', 'default_cc': ['redhat2', 'admin1'], 'default_qa_contact': 'admin3', 'default_assignee': 'redhat2', 'description': 'just for tests'}, 'names': [{'product': 'Auto Test', 'component': 'bne_test_11111'}], 'Bugzilla_login': 'admin1', 'Bugzilla_password': '********'})
This isn't a bug. When you perform an update, an array is returned for each field that is updated. The first element is the old value (an empty string) and the second element is the new value.