Bugzilla:BzAPI: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 103: Line 103:
If you want to install the API proxy on your own machine for your own Bugzilla, you will need:
If you want to install the API proxy on your own machine for your own Bugzilla, you will need:


* the latest stable 3.4.x or 3.6.x release of Bugzilla (many features will not work on 3.2); and
* the <b>latest</b> stable 3.4.x, 3.6.x or 4.0.x point release of Bugzilla (many features will not work on 3.2); and
* to be using UTF-8 (this is the default on new installations).
* to be using UTF-8 (this is the default on new installations); and
* To have the necessary optional modules for XML-RPC (e.g. Test::Taint).
* to have the necessary optional modules for XML-RPC (e.g. Test::Taint).


Then, install a copy of the API software - it does not have to be on the same machine. See the INSTALL file in the repository for some installation hints; feel free to send me tips from your experience.
Then, install a copy of the API software - it does not have to be on the same machine. See the INSTALL file in the repository for some installation hints; feel free to send me tips from your experience.
Line 113: Line 113:
  hg clone http://hg.mozilla.org/webtools/bzapi bzapi
  hg clone http://hg.mozilla.org/webtools/bzapi bzapi


===Patches===
===Extension (or Patches)===


Even the latest stable release of Bugzilla requires a little modification to work properly with the BzAPI. Unfortunately, it is not possible to support all the necessary functionality without some changes to Bugzilla itself, which the Bugzilla team have declined to take.  
Even the latest stable release of Bugzilla requires a little modification to work properly with the BzAPI. Unfortunately, it is not possible to support all the necessary functionality without some changes to Bugzilla itself, which the Bugzilla team have declined to take.  


The patch and template in question are in the BzAPI distribution from version 0.8 onwards. See the INSTALL file for details.  
So, for Bugzilla 3.6 and above, there is a Bugzilla Extension which adds the necessary functionality. Find it in <tt>$BZAPI_HOME/extension</tt>; copy the <tt>BzAPI</tt> directory from there into <tt>$BUGZILLA_HOME/extensions</tt>.


If you are using an earlier version, you need this info:
If you are on 3.4 or below, you need a patch and a template. These are shipped  in the BzAPI distribution, in the <tt>patches</tt> directory, from version 0.8 onwards. See the INSTALL file for details.


*  [https://bugzilla.mozilla.org/show_bug.cgi?id=521398 Make legacy XML interface supply more data (flags, etc.)] - for 3.4 only; you'll need patch version 8a.
Also, if you are using non-ASCII characters at all, you need to patch the BZ::Client module, which has an encoding bug. The patch for that is also in the <tt>patches</tt> directory.
* [https://bugzilla.mozilla.org/show_bug.cgi?id=523325 JSON template for config.cgi] - for 3.4 and 3.6; you'll need the original patch v.1 and then the [https://bugzilla.mozilla.org/attachment.cgi?id=475044 most recent config.json.tmpl], which is attached to a different bug. (Note: updated 14/09/2010)
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits

Navigation menu