Bug 823693

Summary: Bug.update does not update bug
Product: [Community] Bugzilla Reporter: Bernd Groh <bgroh>
Component: WebServiceAssignee: PnT DevOps Devs <hss-ied-bugs>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2CC: ebaak, sgreen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-22 00:36:36 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:
Embargoed:

Description Bernd Groh 2012-05-21 22:04:13 UTC
Description of problem:

I'm using the following xmlrpc call (simplified):

call( 'Bug.update', { ids => [<bug id>], updates => { 'comment' => <comment> }} );

In the previous version of Bugzilla (3.6), this did update the comments in the bug, and returned with a success.

In the current version of Bugzilla (4.2), this does not update the comments in the bug, but still returns with a success.

Comment 1 Simon Green 2012-05-22 00:36:36 UTC
The correct format for updating a comment with Bug.update is documented at:
https://bugzilla.redhat.com/docs/en/html/api/Bugzilla/WebService/Bug.html#update

For example:

 48 $call = $rpc->call(
 49     'Bug.update',
 50     {
 51         ids => [ 66 ],
 52         comment => { body => 'Test comment' },
 53     }
 54 );

Marking as NOTABUG from Bugzilla perspective.

  -- simon