Bug 974085 - Error updating component details via RPC
Summary: Error updating component details via RPC
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService (Show other bugs)
(Show other bugs)
Version: 4.4
Hardware: Unspecified Unspecified
high vote
Target Milestone: ---
Assignee: Simon Green
QA Contact: tools-bugs
Depends On:
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
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-25 00:13:12 UTC
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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@redhat.com'}}) 

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@redhat.com'}

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.


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.