Bug 815654 - Flag::update XMLRPC call returns error
Summary: Flag::update XMLRPC call returns error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 4.2-1
Assignee: Simon Green
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: BZ42
TreeView+ depends on / blocked
 
Reported: 2012-04-24 07:39 UTC by Martin Kosek
Modified: 2025-10-16 23:31 UTC (History)
2 users (show)

Fixed In Version: 4.2.1-0.b28
Clone Of:
Environment:
Last Closed: 2012-04-26 09:35:15 UTC
Embargoed:


Attachments (Terms of Use)

Description Martin Kosek 2012-04-24 07:39:14 UTC
Description of problem:
Flag::update XMLRPC call successfully updates the Bug flags, but returns an error anyway:


$ python
Python 2.7.2 (default, Oct 27 2011, 01:40:22) 
[GCC 4.6.1 20111003 (Red Hat 4.6.1-10)] on linux2
>>> from bz.proxy import BugzillaProxy
>>> bz = BugzillaProxy()
>>> bz.login(user="mkosek", password="PASSWORD")
>>> bz.proxy
<ServerProxy for partner-bugzilla.redhat.com/xmlrpc.cgi>
>>> bz.proxy.Flag.update({'ids': [782894], 'nomail' : False,
...         'updates' : [
...             {'name' : 'devel_ack', 'status' : '+', }
...             ]
...         })
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1575, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "bz/proxy.py", line 234, in parse_response
    return xmlrpclib.SafeTransport.parse_response(self, response)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib64/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault -32000: 'Can\'t locate object method "id" via package "mkosek" (perhaps you forgot to load "mkosek"?) at Bugzilla/User.pm line 1951.\n'>


Version-Release number of selected component (if applicable):
4.2.1-0.b26

How reproducible:


Steps to Reproduce:
1. Run XMLRPC call "Flag.update"
2.
3.
  
Actual results:
Flags are updated but error is returned

Expected results:
Flags are updated and no error is returned if it was OK

Additional info:

Comment 1 Simon Green 2012-04-24 09:19:43 UTC
Actual results:
No e-mail is sent

Expected results:
E-mail is sent.

Will work on this on Thursday (tomorrow is a holiday in Australia)

  -- simon

Comment 3 Simon Green 2012-04-26 09:35:15 UTC
Will be fixed in the next release.

  -- simon


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