| Summary: | The return of method component.update contains null string | ||
|---|---|---|---|
| Product: | [Community] Bugzilla | Reporter: | Rony Gong 🔥 <qgong> |
| Component: | WebService | Assignee: | Matt Tyson 🤬 <mtyson> |
| Status: | CLOSED NOTABUG | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.0 | CC: | huiwang, mtyson, qgong |
| Target Milestone: | 5.0 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-19 04:09:14 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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. |
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: