Closed Bug 365593 Opened 18 years ago Closed 18 years ago

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

Categories

(Bugzilla :: WebService, defect)

2.23.3
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: cso, Assigned: mbd)

Details

Attachments

(1 file)

[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)
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+
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 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+
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+
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
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: