How can I authenticate when using the Bugzilla Perl API in a script?

后端 未结 3 838
闹比i
闹比i 2021-01-13 16:39

Working from the Bugzilla API, I\'ve written a quick Perl script to clone a Bugzilla Product (recreating all the Components under their new Product). The Bugzilla Perl API i

3条回答
  •  无人及你
    2021-01-13 17:34

    Oh, I'm being rather ignorant today, I focused on "web services" and didn't understand what you really wanted.

    If you're just using the API to communicate with the database (as opposed to manipulating the database directly), do you really need to authenticate as any user at all?

    In the 3.2 source tree, look at merge-users.pl for instance, which uses Bugzilla::User objects. Couldn't you do the same with Bugzilla::Component?

    You should also look at sanitycheck.pl, which uses Bugzilla->set_user.

提交回复
热议问题