Bug 1386161 - The return of method component.update contains null string
Summary: The return of method component.update contains null string
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 5.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: 5.0
Assignee: Matt Tyson 🤬
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-18 10:12 UTC by Rony Gong 🔥
Modified: 2018-12-09 06:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-19 04:09:14 UTC


Attachments (Terms of Use)

Description Rony Gong 🔥 2016-10-18 10:12:35 UTC
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:

Comment 1 Matt Tyson 🤬 2016-10-18 23:22:32 UTC
What product and component is this in?

Comment 2 Rony Gong 🔥 2016-10-19 02:03:23 UTC
(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': '********'})

Comment 3 Matt Tyson 🤬 2016-10-19 04:09:14 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.