Adding an XML-RPC to append comments

Jeff Lasslett jeff.lasslett at datataker.com.au
Thu May 17 06:58:30 UTC 2007


Thanks Max,

After patching the original (v3.0) Bug.pm with patch attachment #245546

My script produces the following when trying to call 'Bug.create':

I don't see why Bugzilla::WebService::Bug can no longer be located.

Can you please point me in the right direction?

Thanks in advance.

Client Failed to access class (Bugzilla::WebService::Bug): Can't locate
Bugzilla/WebService/Bug.pm in @INC (@INC
contains: . /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at (eval 123) line 3.
 in XMLRPC call near ./exodus.pl line 46.


On Wed, 2007-05-16 at 22:19 -0700, Max Kanat-Alexander wrote:
> On Thu, 17 May 2007 14:24:36 +1000 Jeff Lasslett
> <jeff.lasslett at datataker.com.au> wrote:
> >         Can this 'add_comment' XMLRPC be made to work easily?  Am I
> >         close?  Or is there some reason why an 'add_comment' RPC is
> > 	not possible at this time?
> 
> 	Well, there's a reason that it's not in 3.0. We need to fix the
> architecture of Bugzilla a bit and then we can make one.
> 
> >     Bugzilla::Bug->AppendComment( $bid, $uid, $params->{comment} );
> 
> 	AppendComment is not a method. Just call it as a subroutine.
> 
> 	By the way, did you see this bug that has a patch to do what
> you want?
> 	
> 	https://bugzilla.mozilla.org/show_bug.cgi?id=355847
> 
> 	-Max




More information about the developers mailing list