Difficulties to interface with bugzilla API
Guillaume Rousse
Guillaume.Rousse at inria.fr
Tue Jan 23 10:46:52 UTC 2007
Max Kanat-Alexander wrote:
> On Sun, 21 Jan 2007 20:47:25 +0100 Guillaume Rousse
> <Guillaume.Rousse at inria.fr> wrote:
>> I'm interfacing with bugzilla from another perl application. The
>> interface code is available at
>> http://www.zarb.org/cgi-bin/viewvc.cgi/soft/core/trunk/lib/Youri/Bugzilla.pm?root=youri&view=markup
>
> The problem that you're experiencing is that the Bugzilla::
> namespace is not an API. It's just our internal libraries for Bugzilla.
>
> The API for Bugzilla is the XML-RPC webservice.
For a local interaction in the same langage, involving low-level
database access, that's not really suited...
> And if you want
> to write an extension, the thing to do is to use the Bugzilla::Hook
> mechanism. You can also hook templates, and the Parameters are
> pluggable.
I don't want to call code from bugzilla, I want to access bugzilla
database, as all command lines tools shipped with bugzilla do. Current
implementation enforce some policies in a way that make them mandatory,
instead of just being configurable with proper defaults. Admin scripts
such as whineatnews.pl, for instance, don't have taint mode activated,
because they don't need it. Why should them face cgi-oriented measures
such as ENV cleaning, for instance ?
More information about the developers
mailing list