Bug 823693 - Bug.update does not update bug
Bug.update does not update bug
Status: CLOSED NOTABUG
Product: Bugzilla
Classification: Community
Component: WebService (Show other bugs)
4.2
Unspecified Unspecified
unspecified Severity unspecified (vote)
: ---
: ---
Assigned To: PnT DevOps Devs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-21 18:04 EDT by Bernd Groh
Modified: 2014-06-18 04:22 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-21 20:36:36 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Bernd Groh 2012-05-21 18:04:13 EDT
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-21 20:36:36 EDT
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

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