Bug 974085 - Error updating component details via RPC
Summary: Error updating component details via RPC
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Simon Green
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-13 11:56 UTC by Lubos Kocman
Modified: 2014-10-12 22:50 UTC (History)
3 users (show)

Fixed In Version: 4.4-3.4
Clone Of:
Environment:
Last Closed: 2013-06-25 00:13:12 UTC
Embargoed:


Attachments (Terms of Use)

Description Lubos Kocman 2013-06-13 11:56:56 UTC
Description of problem:

I'm getting weird error while trying to update qa contact trough Component.update()

Bugzilla::User::new_from_list does not sound much relevant to what I'm doing:-) 

xmlrpclib.Fault: <Fault 52: 'Invalid parameter passed to Bugzilla::User::new_from_list: It must be numeric.'>



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. bz_session.Component.update({'names' : [{'product' : 'Red Hat Enterprise Linux 7', 'component' : 'grilo-plugins'},],
 'updates' : {'default_qa_contact': 'desktop-qa-list'}}) 

Actual results:

xmlrpclib.Fault: <Fault 52: 'Invalid parameter passed to Bugzilla::User::new_from_list: It must be numeric.'>

Expected results:

Something like {'default_qa_contact': 'desktop-qa-list'}


Additional info:

Comment 2 Simon Green 2013-06-21 04:24:41 UTC
For the record, this happens when the value you are changing is currently unset. Despite the error, the change is still committed.

Comment 3 Lubos Kocman 2013-06-21 10:29:49 UTC
Hello Simon,

yeah I figured out that the changes was commited. Workaround was to change it bug by bug and continue in case that exception was raised :-)

Thanks for having a look at it.

Lubos

Comment 4 Simon Green 2013-06-25 00:13:12 UTC
This should now be fixed.


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