]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix the data in the bzr repo to match the data in the CVS repo.
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Mon, 1 Feb 2010 21:51:39 +0000 (13:51 -0800)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Mon, 1 Feb 2010 21:51:39 +0000 (13:51 -0800)
During the CVS imports into Bzr, there were some inconsistencies introduced
(mostly that files that were deleted in CVS weren't being deleted in Bzr).
So this checkin makes the bzr repo actually consistent with the CVS repo,
including fixing permissions of files.

36 files changed:
Bugzilla/User/Setting/Skin.pm [changed mode: 0755->0644]
Bugzilla/WebService.pm [changed mode: 0755->0644]
Bugzilla/WebService/Bugzilla.pm [changed mode: 0755->0644]
Bugzilla/WebService/Constants.pm [changed mode: 0755->0644]
Bugzilla/WebService/Product.pm [changed mode: 0755->0644]
Bugzilla/WebService/User.pm [changed mode: 0755->0644]
contrib/bugzilla-submit/bugdata.txt [changed mode: 0644->0755]
contrib/bugzilla-submit/bugzilla-submit.xml [changed mode: 0644->0755]
contrib/cmdline/query.conf [changed mode: 0644->0755]
contrib/cvs-update.pl [changed mode: 0644->0755]
contrib/gnats2bz.pl [changed mode: 0644->0755]
contrib/gnatsparse/README [changed mode: 0755->0644]
contrib/jb2bz.py [changed mode: 0644->0755]
contrib/merge-users.pl [changed mode: 0644->0755]
contrib/sendbugmail.pl [changed mode: 0644->0755]
contrib/sendunsentbugmail.pl [changed mode: 0644->0755]
contrib/yp_nomail.sh [changed mode: 0644->0755]
docs/makedocs.pl [changed mode: 0644->0755]
docs/xml/Bugzilla-Guide.xml
docs/xml/administration.xml
docs/xml/customization.xml
docs/xml/dbschema.mysql [deleted file]
docs/xml/faq.xml
docs/xml/filetemp.patch [deleted file]
docs/xml/installation.xml
editfields.cgi [changed mode: 0644->0755]
email_in.pl [changed mode: 0644->0755]
search_plugin.cgi [changed mode: 0644->0755]
skins/standard/IE-fixes.css [changed mode: 0755->0644]
skins/standard/global/body-back.gif [changed mode: 0755->0644]
skins/standard/global/header.png [changed mode: 0755->0644]
skins/standard/index/front.png [changed mode: 0755->0644]
template/en/default/admin/keywords/create.html.tmpl [changed mode: 0755->0644]
template/en/default/admin/keywords/created.html.tmpl [changed mode: 0755->0644]
template/en/default/admin/keywords/edit.html.tmpl [changed mode: 0755->0644]
template/en/default/admin/keywords/rebuild-cache.html.tmpl [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 8da2cae9aa8b044c2150f42858013591ade6b347..8f287edbc88f62c27661804759a6ea5b8a23923e 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version="1.0"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
-                      "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" [
     <!ENTITY % myents SYSTEM "bugzilla.ent">
     %myents;
 
@@ -36,7 +35,7 @@
 
 <!ENTITY bz-ver "3.0.11">
 <!ENTITY bz-nextver "3.2">
-<!ENTITY bz-date "2010-01-31">
+<!ENTITY bz-date "2009-01-31">
 <!ENTITY current-year "2010">
 
 <!ENTITY landfillbase "http://landfill.bugzilla.org/bugzilla-3.0-branch/">
index c24ca40f323544999d50be52f5496603b12c0100..b4de07390f106620b5d3d85278e59e1936362ecd 100644 (file)
                 port) of your LDAP server. If no port is specified, it assumes
                 the default LDAP port of 389.
                 </para>
-                <para>Ex. <quote>ldap.company.com</quote>
+                <para>For example: <quote>ldap.company.com</quote>
                  or <quote>ldap.company.com:3268</quote>
                 </para>
                 <para>You can also specify a LDAP URI, so as to use other
                 the URI, the default is either 389 or 636 for 'LDAP' and 'LDAPS'
                 schemes respectively.
                 </para>
-                <para>Ex. <quote>ldap://ldap.company.com</quote>,
-                <quote>ldaps://ldap.company.com</quote> or
-                <quote>ldapi://%2fvar%2flib%2fldap_sock</quote>
+                <tip>
+                  <para>
+                    In order to use SSL with LDAP, specify a URI with "ldaps://".
+                    This will force the use of SSL over port 636.
+                  </para>
+                </tip>
+                <para>For example, normal LDAP: 
+                <quote>ldap://ldap.company.com</quote>, LDAP over SSL:
+                <quote>ldaps://ldap.company.com</quote> or LDAP over a UNIX 
+                domain socket <quote>ldapi://%2fvar%2flib%2fldap_sock</quote>.
                 </para>
                </listitem>
              </varlistentry>
@@ -2828,7 +2835,6 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
      </para>
 
     </section>
-
   </section>
 
   <section id="sanitycheck">
@@ -2864,349 +2870,6 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
 
   </section>
 
-  <section id="upgrading">
-    <title>Upgrading to New Releases</title>
-
-    <para>
-      Upgrading Bugzilla is something we all want to do from time to time,
-      be it to get new features or pick up the latest security fix. How easy
-      it is to update depends on a few factors:
-    </para>
-
-    <itemizedlist>
-      <listitem>
-        <para>
-          If the new version is a revision or a new point release
-        </para>
-      </listitem>
-      <listitem>
-        <para>
-          How many local changes (if any) have been made
-        </para>
-      </listitem>
-    </itemizedlist>
-
-    <section id="upgrading-version-defns">
-      <title>Version Definitions</title>
-
-      <para>
-        Bugzilla displays the version you are using at the top of the home
-        page <filename>index.cgi</filename>. It looks something like
-        '2.20.3', '2.22.1' or '3.0rc1'. The first number in this series is
-        the Major Version. This does not change very often;
-        Bugzilla was 1.x.x when it was first created, and went to 2.x.x
-        when it was re-written in perl in Sept 1998. The major version
-        3.x.x, released in early 2007, is pretty far from what the 2.x.x
-        series looked like, both about its UI and its code.
-      </para>
-
-      <para>
-        The second number in the version is called the 'minor number', and
-        a release that changes the minor number is called a 'point release'.
-        An even number in this position (2.18, 2.20, 2.22, 3.0, 3.2, etc.)
-        represents a stable version, while an odd number (2.19, 2.21, 2.23, etc.)
-        represents a development version. In the past, stable point releases
-        were feature-based, coming when certain enhancements had been
-        completed, or the Bugzilla development team felt that enough
-        progress had been made overall. As of version 2.18, however,
-        Bugzilla has moved to a time-based release schedule; current plans
-        are to create a stable point release every 6 months or so after
-        2.18 is deployed.
-      </para>
-
-      <para>
-        The third number in the Bugzilla version represents a bugfix version.
-        Bugfix Revisions are released only to address security vulnerabilities
-        and, for a limited period, bug fixes. Once enough of these
-        bugfixes have accumulated (or a new security vulnerability is
-        identified and closed), a bugfix release is made. As an
-        example, 2.20.3 was a bugfix release, and improved on 2.20.2.
-      </para>
-
-      <note>
-        <para>
-          When reading version numbers, everything separated by a point ('.')
-          should be read as a single number. It is <emphasis>not</emphasis>
-          the same as decimal. 2.22 is newer than 2.8 because minor version
-          22 is greater than minor version 8. The now unsupported release 2.16.11
-          was newer than 2.16.9 (because bugfix 11 is greater than bugfix 9. This is
-          confusing to some people who aren't used to dealing with software.
-        </para>
-      </note>
-    </section>
-
-    <section id="upgrading-notifications">
-      <title>Upgrading - Notifications</title>
-
-      <para>
-        Bugzilla 3.0 introduces the ability to automatically notify
-        administrators when new releases are available, based on the
-        <literal>upgrade_notification</literal> parameter, see
-        <xref linkend="parameters"/>. Administrators will see these
-        notifications when they access the <filename>index.cgi</filename>
-        page, i.e. generally when logging in. Bugzilla will check once per
-        day for new releases, unless the parameter is set to
-        <quote>disabled</quote>. If you are behind a proxy, you may have to set
-        the <literal>proxy_url</literal> parameter accordingly. If the proxy
-        requires authentication, use the
-        <literal>http://user:pass@proxy_url/</literal> syntax.
-      </para>
-    </section>
-
-    <section id="upgrading-methods">
-    <title>Upgrading - Methods and Procedure</title>
-      <para>
-        There are three different ways to upgrade your installation.
-      </para>
-
-      <orderedlist>
-        <listitem>
-          <para>
-            Using CVS (<xref linkend="upgrade-cvs"/>)
-          </para>
-        </listitem>
-        <listitem>
-          <para>
-            Downloading a new tarball (<xref linkend="upgrade-tarball"/>)
-          </para>
-        </listitem>
-        <listitem>
-          <para>
-            Applying the relevant patches (<xref linkend="upgrade-patches"/>)
-          </para>
-        </listitem>
-      </orderedlist>
-
-      <para>
-        Each of these options has its own pros and cons; the one that's
-        right for you depends on how long it has been since you last
-        installed, the degree to which you have customized your installation,
-        and/or your network configuration. (Some discussion of the various
-        methods of updating compared with degree and methods of local
-        customization can be found in <xref linkend="template-method"/>.)
-      </para>
-
-      <para>
-        The larger the jump you are trying to make, the more difficult it
-        is going to be to upgrade if you have made local customizations.
-        Upgrading from 2.22 to 2.22.1 should be fairly painless even if
-        you are heavily customized, but going from 2.18 to 3.0 is going
-        to mean a fair bit of work re-writing your local changes to use
-        the new files, logic, templates, etc. If you have done no local
-        changes at all, however, then upgrading should be approximately
-        the same amount of work regardless of how long it has been since
-        your version was released.
-      </para>
-
-      <warning>
-        <para>
-          Upgrading is a one-way process. You should backup your database
-          and current Bugzilla directory before attempting the upgrade. If
-          you wish to revert to the old Bugzilla version for any reason, you
-          will have to restore from these backups.
-        </para>
-      </warning>
-
-      <para>
-        The examples in the following sections are written as though the
-        user were updating to version 2.22.1, but the procedures are the
-        same regardless of whether one is updating to a new point release
-        or simply trying to obtain a new bugfix release. Also, in the
-        examples the user's Bugzilla installation is found at
-        <filename>/var/www/html/bugzilla</filename>. If that is not the
-        same as the location of your Bugzilla installation, simply
-        substitute the proper paths where appropriate.
-      </para>
-
-      <section id="upgrade-cvs">
-      <title>Upgrading using CVS</title>
-
-        <para>
-          Every release of Bugzilla, whether it is a point release or a bugfix,
-          is tagged in CVS.  Also, every tarball that has been distributed since
-          version 2.12 has been created in such a way that it can be used with
-          CVS once it is unpacked. Doing so, however, requires that you are able
-          to access cvs-mirror.mozilla.org on port 2401, which may not be an
-          option or a possibility for some users, especially those behind a
-          highly restrictive firewall.
-        </para>
-
-        <tip>
-          <para>
-            If you can, updating using CVS is probably the most painless
-            method, especially if you have a lot of local changes.
-          </para>
-        </tip>
-
-        <para>
-          The following shows the sequence of commands needed to update a
-          Bugzilla installation via CVS, and a typical series of results.
-        </para>
-
-        <programlisting>
-bash$ <command>cd /var/www/html/bugzilla</command>
-bash$ <command>cvs login</command>
-Logging in to :pserver:anonymous@cvs-mirror.mozilla.org:2401/cvsroot
-CVS password: <emphasis>('anonymous', or just leave it blank)</emphasis>
-bash$ <command>cvs -q update -r BUGZILLA-2_22_1 -dP</command>
-P checksetup.pl
-P collectstats.pl
-P docs/rel_notes.txt
-P template/en/default/list/quips.html.tmpl
-<emphasis>(etc.)</emphasis>
-        </programlisting>
-
-        <caution>
-          <para>
-            If a line in the output from <command>cvs update</command> begins
-            with a <computeroutput>C</computeroutput>, then that represents a
-            file with local changes that CVS was unable to properly merge. You
-            need to resolve these conflicts manually before Bugzilla (or at
-            least the portion using that file) will be usable.
-          </para>
-        </caution>
-      </section>
-
-      <section id="upgrade-tarball">
-        <title>Upgrading using the tarball</title>
-
-        <para>
-          If you are unable (or unwilling) to use CVS, another option that's
-          always available is to obtain the latest tarball from the <ulink
-          url="http://www.bugzilla.org/download/">Download Page</ulink> and 
-          create a new Bugzilla installation from that.
-        </para>
-
-        <para>
-          This sequence of commands shows how to get the tarball from the
-          command-line; it is also possible to download it from the site
-          directly in a web browser. If you go that route, save the file
-          to the <filename class="directory">/var/www/html</filename>
-          directory (or its equivalent, if you use something else) and 
-          omit the first three lines of the example.
-        </para>
-
-        <programlisting>
-bash$ <command>cd /var/www/html</command>
-bash$ <command>wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-2.22.1.tar.gz</command>
-<emphasis>(Output omitted)</emphasis>
-bash$ <command>tar xzvf bugzilla-2.22.1.tar.gz</command>
-bugzilla-2.22.1/
-bugzilla-2.22.1/.cvsignore
-<emphasis>(Output truncated)</emphasis>
-bash$ <command>cd bugzilla-2.22.1</command>
-bash$ <command>cp ../bugzilla/localconfig* .</command>
-bash$ <command>cp -r ../bugzilla/data .</command>
-bash$ <command>cd ..</command>
-bash$ <command>mv bugzilla bugzilla.old</command>
-bash$ <command>mv bugzilla-2.22.1 bugzilla</command>
-        </programlisting>
-
-        <warning>
-          <para>
-            The <command>cp</command> commands both end with periods which
-            is a very important detail, it tells the shell that the destination
-            directory is the current working directory. 
-          </para>
-        </warning>
-
-        <para>
-          This upgrade method will give you a clean install of Bugzilla with the 
-          same version as the tarball. That's fine if you don't have any local
-          customizations that you want to maintain, but if you do then you will 
-          need to reapply them by hand to the appropriate files. 
-        </para>
-
-        <para>
-          It's worth noting that since 2.12, the Bugzilla tarballs come
-          CVS-ready, so if you decide at a later date that you'd rather use
-          CVS as an upgrade method, your code will already be set up for it.
-        </para>
-      </section>
-
-      <section id="upgrade-patches">
-        <title>Upgrading using patches</title>
-
-        <para>
-          If you are doing a bugfix upgrade -- that is, one where only the 
-          last number of the revision changes, such as from 2.22 to 2.22.1
-          -- then you have the option of obtaining and applying a patch file
-          from the <ulink
-          url="http://www.bugzilla.org/download/">Download Page</ulink>.
-          This file is made available by the <ulink
-          url="http://www.bugzilla.org/developers/profiles.html">Bugzilla
-          Development Team</ulink>, and is a collection of all the bug fixes
-          and security patches that have been made since the last bugfix
-          release. If you are planning to upgrade via patches, it is safer
-          to grab this developer-made patch file than to read the patch
-          notes and apply all (or even just some of) the patches oneself,
-          as sometimes patches on bugs get changed before they get checked in.
-        </para>
-
-        <para>
-          As above, this example starts with obtaining the file via the 
-          command line. If you have already downloaded it, you can omit the
-          first two commands.
-        </para>
-
-        <programlisting>
-bash$ <command>cd /var/www/html/bugzilla</command>
-bash$ <command>wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-2.22-to-2.22.1.diff.gz</command>
-<emphasis>(Output omitted)</emphasis>
-bash$ <command>gunzip bugzilla-2.22-to-2.22.1.diff.gz</command>
-bash$ <command>patch -p1 &lt; bugzilla-2.22-to-2.22.1.diff</command>
-patching file checksetup.pl
-patching file collectstats.pl
-<emphasis>(etc.)</emphasis>
-        </programlisting>
-
-        <warning>
-          <para>
-            Be aware that upgrading from a patch file does not change the
-            entries in your <filename class="directory">CVS</filename> directory.
-            This could make it more difficult to upgrade using CVS
-            (<xref linkend="upgrade-cvs"/>) in the future.
-          </para>
-        </warning>
-
-      </section>
-    </section>
-
-    <section id="upgrading-completion">
-    <title>Completing Your Upgrade</title>
-
-      <para>
-        Regardless of which upgrade method you choose, you will need to
-        run <command>./checksetup.pl</command> before your Bugzilla
-        upgrade will be complete.
-      </para>
-
-      <programlisting>
-bash$ <command>cd bugzilla</command>
-bash$ <command>./checksetup.pl</command>
-      </programlisting>
-
-      <warning>
-        <para>
-          The period at the beginning of the command
-          <command>./checksetup.pl</command> is important and can not
-          be omitted.
-        </para>
-      </warning>
-          
-      <para>
-        If you have done a lot of local modifications, it wouldn't hurt
-        to run the Bugzilla Testing suite. This is not a required step,
-        but it isn't going to hurt anything, and might help point out
-        some areas that could be improved. (More information on the
-        test suite can be had by following this link to the appropriate
-        section in the <ulink
-        url="http://www.bugzilla.org/docs/developer.html#testsuite">Developers'
-        Guide</ulink>.)
-      </para>
-
-    </section>
-  </section>
 </chapter>
 
 <!-- Keep this comment at the end of the file
index 43701689f1cd002a5434e4300d92099ccfe6ea4f..f4668bd136f4aec3a1ae6ef9af09a50d2b47a66d 100644 (file)
       <note>
         <para>
           Regardless of which method you choose, it is recommended that
-          you run <command>./checksetup.pl</command> after creating or
+          you run <command>./checksetup.pl</command> after 
           editing any templates in the <filename>template/en/default</filename>
-          directory, and after editing any templates in the 
+          directory, and after creating or editing any templates in the 
           <filename>custom</filename> directory.
         </para>
       </note>
 
   <section id="cust-hooks">
     <title>The Bugzilla Extension Mechanism</title>
-        
+    
     <warning>
       <para>
-        Custom extensions require Template Toolkit version 2.12 or
-        above, or the application of a patch.  See <ulink
-        url="http://bugzilla.mozilla.org/show_bug.cgi?id=239112">bug
-        239112</ulink> for details.
+        Note that the below paths are inconsistent and confusing. They will
+        likely be changed in Bugzilla 4.0.
       </para>
     </warning>
        
 
     <para>
       The corresponding extension file for this hook is
-      <filename>BUGZILLA_ROOT/extensions/projman/template/en/hook/global/useful-links-edit.html.tmpl</filename>.
+      <filename>BUGZILLA_ROOT/extensions/projman/template/en/global/useful-links-edit.html.tmpl</filename>.
       You then create that template file and add the following constant:
     </para>
 
diff --git a/docs/xml/dbschema.mysql b/docs/xml/dbschema.mysql
deleted file mode 100644 (file)
index 8b13789..0000000
+++ /dev/null
@@ -1 +0,0 @@
-
index 22f0144ab75464dcfe51b17d1ebb55e5b1fffa9c..35678286d69d3c8971ac660232b2da41b2c1112b 100644 (file)
@@ -315,6 +315,23 @@ C:\mysql\bin\replace "#!/usr/bin/perl" "#!C:\perl\bin\perl" -- *.cgi *.pl
     <qandadiv id="faq-phb">
       <title>Managerial Questions</title>
 
+      <qandaentry>
+        <question id="faq-phb-deletebugs">
+          <para>
+            Is it possible to delete bug reports?
+          </para>
+        </question>
+        <answer>
+          <para>
+            Yes. You have to turn on the 'allowbugdeletion' parameter, which is
+            off by default. Note that you cannot delete bug reports one by one.
+            You have to move them in a product or component, e.g. named "Trash",
+            and then delete this product or component. The reason we make it
+            hard is that you generally don't want to do that. 
+          </para>
+        </answer>
+      </qandaentry>
+
       <qandaentry>
         <question id="faq-phb-client">
           <para>
diff --git a/docs/xml/filetemp.patch b/docs/xml/filetemp.patch
deleted file mode 100644 (file)
index 9fb70ad..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
---- File/Temp.pm.orig   Thu Feb  6 16:26:00 2003
-+++ File/Temp.pm        Thu Feb  6 16:26:23 2003
-@@ -205,6 +205,7 @@
-     # eg CGI::Carp
-     local $SIG{__DIE__} = sub {};
-     local $SIG{__WARN__} = sub {};
-+    local *CORE::GLOBAL::die = sub {};
-     $bit = &$func();
-     1;
-   };
-@@ -226,6 +227,7 @@
-     # eg CGI::Carp
-     local $SIG{__DIE__} = sub {};
-     local $SIG{__WARN__} = sub {};
-+    local *CORE::GLOBAL::die = sub {};
-     $bit = &$func();
-     1;
-   };
index 060c5647c10f23a3146308c0f258361dde84d4d3..f9a7a5eb3e447b52a1386a75b63b74a531f51ab9 100644 (file)
@@ -1,5 +1,5 @@
 <!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
-<!-- $Id: installation.xml,v 1.136.2.12 2008/02/24 19:31:07 lpsolit%gmail.com Exp $ -->
+<!-- $Id: installation.xml,v 1.136.2.18 2009/07/29 12:34:55 lpsolit%gmail.com Exp $ -->
 <chapter id="installing-bugzilla">
   <title>Installing Bugzilla</title>
 
     instructions.
     </para>
 
-    <para>
-      As an alternative to following these instructions, you may wish to
-      try Arne Schirmacher's unofficial and unsupported 
-      <ulink url="http://www.softwaretesting.de/article/view/33/1/8/">Bugzilla
-      Installer</ulink>, which installs Bugzilla and all its prerequisites
-      on Linux or Solaris systems.
-    </para>
-
     <para>This guide assumes that you have administrative access to the
     Bugzilla machine. It not possible to
     install and run Bugzilla itself without administrative access except
 
         <listitem>
           <para>
-            CGI &min-cgi-ver; or CGI &min-mp-cgi-ver; if using mod_perl
+            CGI &min-cgi-ver;
           </para>
         </listitem>
 
         <listitem>
           <para>
             CGI
-            (&min-cgi-ver;) for mod_perl
+            (&min-mp-cgi-ver;) for mod_perl
           </para>
         </listitem>
 
                     when granting extra access.
                 </para>
                 </note>
+
+                <note>
+                <para>
+                    On Windows, you may have to also add the
+                    <computeroutput>ScriptInterpreterSource Registry-Strict</computeroutput>
+                    line, see <link linkend="win32-http">Windows specific notes</link>.
+                </para>
+                </note>
             </step>                    
     
             <step>
@@ -1344,19 +1344,6 @@ c:\perl\bin\perl.exe -xc:\bugzilla -wT "%s" %s
         the Reports page.
       </para>
 
-      <para>
-        When upgrading Bugzilla, this format may change.
-        To create new status data, (re)move old data and run the following 
-        commands:
-      </para>
-
-      <screen>
-        <prompt>bash$</prompt>
-        <command>cd &lt;your-bugzilla-directory&gt;</command>
-        <prompt>bash$</prompt>
-        <command>./collectstats.pl --regenerate</command>
-      </screen>
-
       <note>
         <para>
           Windows does not have 'cron', but it does have the Task
@@ -1569,7 +1556,7 @@ AddType application/rdf+xml .rdf</screen>
         based system such as GNU/Linux.  That said, if you do want to get
         Bugzilla running on Windows, you will need to make the following
         adjustments. A detailed step-by-step
-        <ulink url="http://www.bugzilla.org/docs/win32install.html">
+        <ulink url="https://wiki.mozilla.org/Bugzilla:Win32Install">
         installation guide for Windows</ulink> is also available
         if you need more help with your installation.
       </para>
@@ -1659,16 +1646,6 @@ C:\perl&gt; <command>ppm install &lt;module name&gt;</command>
         </tip>
       </section>
   
-      <section id="win32-code-changes">
-        <title>Code changes required to run on Win32</title>
-
-        <para>
-          Bugzilla on Win32 is supported out of the box from version 2.20; this
-          means that no code changes are required to get Bugzilla running.
-        </para>
-        
-      </section>
-
       <section id="win32-http">
         <title>Serving the web pages</title>
 
@@ -1684,14 +1661,16 @@ C:\perl&gt; <command>ppm install &lt;module name&gt;</command>
 
         <note>
           <para>
-            If using Apache on windows, you can set the <ulink
-            url="http://httpd.apache.org/docs-2.0/mod/core.html#scriptinterpretersource">ScriptInterpreterSource</ulink>
-            directive in your Apache config to avoid having to modify
-            the first line of every script to contain your path to Perl
-            instead of <filename>/usr/bin/perl</filename>. When setting
-            <filename>ScriptInterpreterSource</filename>, do not forget
-            to specify the <command>-T</command> flag to enable the taint
-            mode. For example: <command>C:\Perl\bin\perl.exe -T</command>.
+            The web server looks at <filename>/usr/bin/perl</filename> to
+            call Perl. If you are using Apache on windows, you can set the
+            <ulink url="http://httpd.apache.org/docs-2.0/mod/core.html#scriptinterpretersource">ScriptInterpreterSource</ulink>
+            directive in your Apache config file to make it look at the
+            right place: insert the line
+            <programlisting>ScriptInterpreterSource Registry-Strict</programlisting>
+            into your <filename>httpd.conf</filename> file, and create the key
+            <programlisting>HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command</programlisting>
+            with <option>C:\Perl\bin\perl.exe -T</option> as value (adapt to your
+            path if needed) in the registry. When this is done, restart Apache.
           </para>
         </note>
 
@@ -2187,6 +2166,424 @@ pid-file=/home/foo/mymysql/the.pid
     </section>
   </section>
 
+
+  <section id="upgrade">
+    <title>Upgrading to New Releases</title>
+    
+    <para>Upgrading to new Bugzilla releases is very simple. There is
+      a script included with Bugzilla that will automatically
+      do all of the database migration for you.</para>
+    
+    <para>The following sections explain how to upgrade from one
+      version of Bugzilla to another. Whether you are upgrading
+      from one bug-fix version to another (such as 3.0.1 to 3.0.2)
+      or from one major version to another (such as from 3.0 to 3.2),
+      the instructions are always the same.</para>
+
+    <note>
+      <para>
+        Any examples in the following sections are written as though the
+        user were updating to version 2.22.1, but the procedures are the
+        same no matter what version you're updating to. Also, in the
+        examples, the user's Bugzilla installation is found at
+        <filename>/var/www/html/bugzilla</filename>. If that is not the
+        same as the location of your Bugzilla installation, simply
+        substitute the proper paths where appropriate.
+      </para>
+    </note>
+
+    <section id="upgrade-before">
+      <title>Before You Upgrade</title>
+    
+      <para>Before you start your upgrade, there are a few important
+        steps to take:</para>
+
+      <orderedlist>
+        <listitem>
+          <para>
+            Read the <ulink url="http://www.bugzilla.org/releases/">Release
+            Notes</ulink> of the version you're upgrading to,
+            particularly the "Notes for Upgraders" section.
+          </para>
+        </listitem>
+        
+        <listitem>
+          <para>
+            View the Sanity Check (<xref linkend="sanitycheck"/>) page
+            on your installation before upgrading. Attempt to fix all warnings
+            that the page produces before you go any further, or you may
+            experience problems  during your upgrade.
+          </para>
+        </listitem>
+        
+        <listitem>
+          <para>
+            Shut down your Bugzilla installation by putting some HTML or
+            text in the shutdownhtml parameter
+            (see <xref linkend="parameters"/>).
+          </para>
+        </listitem>
+        
+        <listitem>
+          <para>
+            Make a backup of the Bugzilla database.
+            <emphasis>THIS IS VERY IMPORTANT</emphasis>. If
+            anything goes wrong during the upgrade, your installation
+            can be corrupted beyond recovery. Having a backup keeps you safe.
+          </para>
+
+          <warning>
+            <para>
+              Upgrading is a one-way process. You cannot "downgrade" an
+              upgraded Bugzilla. If you wish to revert to the old Bugzilla
+              version for any reason, you will have to restore your database
+              from this backup.
+            </para>
+          </warning>
+
+          <para>Here are some sample commands you could use to backup
+            your database, depending on what database system you're
+            using. You may have to modify these commands for your
+            particular setup.</para>
+          
+          <variablelist>
+            <varlistentry>
+              <term>MySQL:</term>
+              <listitem>
+                <para>
+                  <command>mysqldump --opt -u bugs -p bugs > bugs.sql</command>
+                </para>
+              </listitem>
+            </varlistentry>
+              
+            <varlistentry>
+              <term>PostgreSQL:</term>
+              <listitem>
+                <para>
+                  <command>pg_dump --no-privileges --no-owner -h localhost -U bugs
+                    > bugs.sql</command>
+                </para>
+              </listitem>
+            </varlistentry>
+          </variablelist>
+        </listitem>
+      </orderedlist>
+    </section>
+      
+    <section id="upgrade-files">
+      <title>Getting The New Bugzilla</title>
+      
+      <para>There are three ways to get the new version of Bugzilla.
+        We'll list them here briefly and then explain them
+        more later.</para>
+      
+      <variablelist>
+        <varlistentry>
+          <term>CVS (<xref linkend="upgrade-cvs"/>)</term>
+          <listitem>
+            <para>
+              If have <command>cvs</command> installed on your machine
+              and you have Internet access, this is the easiest way to
+              upgrade, particularly if you have made modifications
+              to the code or templates of Bugzilla.
+            </para>
+          </listitem>
+        </varlistentry>
+
+        <varlistentry>
+          <term>Download the tarball (<xref linkend="upgrade-tarball"/>)</term>
+          <listitem>
+            <para>
+              This is a very simple way to upgrade, and good if you
+              haven't made many (or any) modifications to the code or
+              templates of your Bugzilla.
+            </para>
+          </listitem>
+        </varlistentry>
+        
+        <varlistentry>
+          <term>Patches (<xref linkend="upgrade-patches"/>)</term>
+          <listitem>
+            <para>
+              If you have made modifications to your Bugzilla, and
+              you don't have Internet access or you don't want to use
+              cvs, then this is the best way to upgrade.
+            </para>
+            
+            <para>
+              You can only do minor upgrades (such as 3.0 to 3.0.1 or
+              3.0.1 to 3.0.2) with patches.
+            </para>
+          </listitem>
+        </varlistentry>
+      </variablelist>
+        
+      <section id="upgrade-modified">
+        <title>If you have modified your Bugzilla</title>
+      
+        <para>
+          If you have modified the code or templates of your Bugzilla,
+          then upgrading requires a bit more thought and effort.
+          A discussion of the various methods of updating compared with
+          degree and methods of local customization can be found in
+          <xref linkend="template-method"/>.
+        </para>
+
+        <para>
+          The larger the jump you are trying to make, the more difficult it
+          is going to be to upgrade if you have made local customizations.
+          Upgrading from 3.0 to 3.0.1 should be fairly painless even if
+          you are heavily customized, but going from 2.18 to 3.0 is going
+          to mean a fair bit of work re-writing your local changes to use
+          the new files, logic, templates, etc. If you have done no local
+          changes at all, however, then upgrading should be approximately
+          the same amount of work regardless of how long it has been since
+          your version was released.
+        </para>
+      </section>
+
+      <section id="upgrade-cvs">
+        <title>Upgrading using CVS</title>
+
+        <para>
+          This requires that you have cvs installed (most Unix machines do),
+          and requires that you are able to access cvs-mirror.mozilla.org
+          on port 2401, which may not be an option if you are behind a
+          highly restrictive firewall or don't have Internet access.
+        </para>
+
+        <para>
+          The following shows the sequence of commands needed to update a
+          Bugzilla installation via CVS, and a typical series of results.
+        </para>
+
+        <programlisting>
+bash$ <command>cd /var/www/html/bugzilla</command>
+bash$ <command>cvs login</command>
+Logging in to :pserver:anonymous@cvs-mirror.mozilla.org:2401/cvsroot
+CVS password: <emphasis>('anonymous', or just leave it blank)</emphasis>
+bash$ <command>cvs -q update -r BUGZILLA-2_22_1 -dP</command>
+P checksetup.pl
+P collectstats.pl
+P docs/rel_notes.txt
+P template/en/default/list/quips.html.tmpl
+<emphasis>(etc.)</emphasis>
+        </programlisting>
+
+        <caution>
+          <para>
+            If a line in the output from <command>cvs update</command> begins
+            with a <computeroutput>C</computeroutput>, then that represents a
+            file with local changes that CVS was unable to properly merge. You
+            need to resolve these conflicts manually before Bugzilla (or at
+            least the portion using that file) will be usable.
+          </para>
+        </caution>
+      </section>
+
+      <section id="upgrade-tarball">
+        <title>Upgrading using the tarball</title>
+
+        <para>
+          If you are unable (or unwilling) to use CVS, another option that's
+          always available is to obtain the latest tarball from the <ulink
+          url="http://www.bugzilla.org/download/">Download Page</ulink> and 
+          create a new Bugzilla installation from that.
+        </para>
+
+        <para>
+          This sequence of commands shows how to get the tarball from the
+          command-line; it is also possible to download it from the site
+          directly in a web browser. If you go that route, save the file
+          to the <filename class="directory">/var/www/html</filename>
+          directory (or its equivalent, if you use something else) and 
+          omit the first three lines of the example.
+        </para>
+
+        <programlisting>
+bash$ <command>cd /var/www/html</command>
+bash$ <command>wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-2.22.1.tar.gz</command>
+<emphasis>(Output omitted)</emphasis>
+bash$ <command>tar xzvf bugzilla-2.22.1.tar.gz</command>
+bugzilla-2.22.1/
+bugzilla-2.22.1/.cvsignore
+<emphasis>(Output truncated)</emphasis>
+bash$ <command>cd bugzilla-2.22.1</command>
+bash$ <command>cp ../bugzilla/localconfig* .</command>
+bash$ <command>cp -r ../bugzilla/data .</command>
+bash$ <command>cd ..</command>
+bash$ <command>mv bugzilla bugzilla.old</command>
+bash$ <command>mv bugzilla-2.22.1 bugzilla</command>
+        </programlisting>
+
+        <warning>
+          <para>
+            The <command>cp</command> commands both end with periods which
+            is a very important detail--it means that the destination
+            directory is the current working directory.
+          </para>
+        </warning>
+
+        <para>
+          This upgrade method will give you a clean install of Bugzilla.
+          That's fine if you don't have any local customizations that you
+          want to maintain. If you do have customizations, then you will 
+          need to reapply them by hand to the appropriate files.
+        </para>
+      </section>
+
+      <section id="upgrade-patches">
+        <title>Upgrading using patches</title>
+
+        <para>
+          A patch is a collection of all the bug fixes that have been made
+          since the last bug-fix release.
+        </para>
+        
+        <para>
+          If you are doing a bug-fix upgrade&mdash;that is, one where only the 
+          last number of the revision changes, such as from 2.22 to
+          2.22.1&mdash;then you have the option of obtaining and applying a
+          patch file from the <ulink
+          url="http://www.bugzilla.org/download/">Download Page</ulink>.
+        </para>
+        
+        <para>
+          As above, this example starts with obtaining the file via the 
+          command line. If you have already downloaded it, you can omit the
+          first two commands.
+        </para>
+
+        <programlisting>
+bash$ <command>cd /var/www/html/bugzilla</command>
+bash$ <command>wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-2.22-to-2.22.1.diff.gz</command>
+<emphasis>(Output omitted)</emphasis>
+bash$ <command>gunzip bugzilla-2.22-to-2.22.1.diff.gz</command>
+bash$ <command>patch -p1 &lt; bugzilla-2.22-to-2.22.1.diff</command>
+patching file checksetup.pl
+patching file collectstats.pl
+<emphasis>(etc.)</emphasis>
+        </programlisting>
+
+        <warning>
+          <para>
+            Be aware that upgrading from a patch file does not change the
+            entries in your <filename class="directory">CVS</filename> directory.
+            This could make it more difficult to upgrade using CVS
+            (<xref linkend="upgrade-cvs"/>) in the future.
+          </para>
+        </warning>
+
+      </section>
+    </section>
+
+    <section id="upgrade-completion">
+      <title>Completing Your Upgrade</title>
+
+      <para>
+        Now that you have the new Bugzilla code, there are a few final
+        steps to complete your upgrade.
+      </para>
+      
+      <orderedlist>
+        <listitem>
+          <para>
+            If your new Bugzilla installation is in a different
+            directory or on a different machine than your old Bugzilla
+            installation, make sure that you have copied the
+            <filename>data</filename> directory and the
+            <filename>localconfig</filename> file from your old Bugzilla
+            installation. (If you followed the tarball instructions
+            above, this has already happened.)
+          </para>
+        </listitem>
+        
+        <listitem>
+          <para>
+            If this is a major update, check that the configuration
+            (<xref linkend="configuration"/>) for your new Bugzilla is
+            up-to-date. Sometimes the configuration requirements change
+            between major versions.
+          </para>
+        </listitem>
+        
+        <listitem>
+          <para>
+            If you didn't do it as part of the above configuration step,
+            now you need to run <command>checksetup.pl</command>, which
+            will do everything required to convert your existing database
+            and settings for the new version:
+          </para>
+
+          <programlisting>
+bash$ <command>cd /var/www/html/bugzilla</command>
+bash$ <command>./checksetup.pl</command>
+          </programlisting>
+
+          <warning>
+            <para>
+              The period at the beginning of the command
+              <command>./checksetup.pl</command> is important and can not
+              be omitted.
+            </para>
+          </warning>
+          
+          <caution>
+            <para>
+              If this is a major upgrade (say, 2.22 to 3.0 or similar),
+              running <command>checksetup.pl</command> on a large
+              installation (75,000 or more bugs) can take a long time,
+              possibly several hours.
+            </para>
+          </caution>
+        </listitem>
+
+        <listitem>
+          <para>
+            Clear any HTML or text that you put into the shutdownhtml
+            parameter, to re-activate Bugzilla.
+          </para> 
+        </listitem>
+
+        <listitem>
+          <para>
+            View the Sanity Check (<xref linkend="sanitycheck"/>) page in your
+            upgraded Bugzilla.
+          </para>
+          <para>
+            It is recommended that, if possible, you fix any problems
+            you see, immediately. Failure to do this may mean that Bugzilla
+            will not work correctly. Be aware that if the sanity check page
+            contains more errors after an upgrade, it doesn't necessarily
+            mean there are more errors in your database than there were
+            before, as additional tests are added to the sanity check over
+            time, and it is possible that those errors weren't being
+            checked for in the old version.
+          </para>
+        </listitem>
+      </orderedlist>
+
+    </section>
+    
+    <section id="upgrade-notifications">
+      <title>Automatic Notifications of New Releases</title>
+
+      <para>
+        Bugzilla 3.0 introduced the ability to automatically notify
+        administrators when new releases are available, based on the
+        <literal>upgrade_notification</literal> parameter, see
+        <xref linkend="parameters"/>. Administrators will see these
+        notifications when they access the <filename>index.cgi</filename>
+        page, i.e. generally when logging in. Bugzilla will check once per
+        day for new releases, unless the parameter is set to
+        <quote>disabled</quote>. If you are behind a proxy, you may have to set
+        the <literal>proxy_url</literal> parameter accordingly. If the proxy
+        requires authentication, use the
+        <literal>http://user:pass@proxy_url/</literal> syntax.
+      </para>
+    </section>
+  </section>
+
 </chapter>
 
 <!-- Keep this comment at the end of the file
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)