If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

bz_webservices_demo.pl does not appear to match the API as defined in the Webservices code

RESOLVED FIXED in Bugzilla 3.0

Status

()

Bugzilla
WebService
--
minor
RESOLVED FIXED
11 years ago
11 years ago

People

(Reporter: cso, Assigned: Mads Bondo Dydensborg)

Tracking

2.23.3
Bugzilla 3.0
Bug Flags:
approval +

Details

Attachments

(1 attachment)

(Reporter)

Description

11 years ago
[colin@landfill contrib]$ ./bz_webservice_demo.pl --uri https://bugzilla.mozilla.org/xmlrpc.cgi --bug_id 365588
Connecting to a Bugzilla of version 2.23.3+.
Bugzilla's timezone is -0800.
Client Failed to locate method (get_bug) in class (Bugzilla::WebService::Bug) at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 314.
 in SOAP call near ./bz_webservice_demo.pl line 216.

[colin@landfill contrib]$ grep "sub" ../Bugzilla/WebService/Bug.pm 
sub get_bugs {
sub create {
sub legal_values {

Making the call be get_bugs instead results in the output being:

[colin@landfill bugzilla-trunk]$ contrib/bz_webservice_demo.pl --uri https://bugzilla.mozilla.org/xmlrpc.cgi --bug_id 365588
Connecting to a Bugzilla of version 2.23.3+.
Bugzilla's timezone is -0800.
bugs: ARRAY(0x94f7cf0)
(Assignee)

Comment 1

11 years ago
Created attachment 250441 [details] [diff] [review]
Patch to use get_bugs instead of obsolote get_bug

The bug is valid. This patch fixes the problem. The fix is (almost) trivial. Please review. Would be good to have in 3.0RC1.
Assignee: webservice → mbd
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #250441 - Flags: review+
(Assignee)

Comment 2

11 years ago
Comment on attachment 250441 [details] [diff] [review]
Patch to use get_bugs instead of obsolote get_bug

Ok, ok, I flagged the review wrong - sorry about that :-)
Attachment #250441 - Flags: review+ → review?(mkanat)

Comment 3

11 years ago
Comment on attachment 250441 [details] [diff] [review]
Patch to use get_bugs instead of obsolote get_bug

Yeah, trivially correct.
Attachment #250441 - Flags: review?(mkanat) → review+

Updated

11 years ago
Severity: normal → minor
Flags: approval?
OS: Mac OS X 10.3 → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 3.0
Version: unspecified → 2.23.3
Flags: approval? → approval+

Comment 4

11 years ago
Checking in contrib/bz_webservice_demo.pl;
/cvsroot/mozilla/webtools/bugzilla/contrib/bz_webservice_demo.pl,v  <--  bz_webservice_demo.pl
new revision: 1.7; previous revision: 1.6
done
Status: ASSIGNED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.