summaryrefslogtreecommitdiffstats
path: root/docs/html/Bugzilla-Guide.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/html/Bugzilla-Guide.html')
-rw-r--r--docs/html/Bugzilla-Guide.html6608
1 files changed, 2682 insertions, 3926 deletions
diff --git a/docs/html/Bugzilla-Guide.html b/docs/html/Bugzilla-Guide.html
index 3b3283361..b95ae37bd 100644
--- a/docs/html/Bugzilla-Guide.html
+++ b/docs/html/Bugzilla-Guide.html
@@ -1,10 +1,12 @@
<HTML
><HEAD
><TITLE
->The Bugzilla Guide - 2.17.5 Development Release</TITLE
+>The Bugzilla Guide - 2.17.5
+ Development Release</TITLE
><META
NAME="GENERATOR"
-CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><META
+CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
+"><META
NAME="KEYWORD"
CONTENT="Bugzilla"><META
NAME="KEYWORD"
@@ -42,61 +44,36 @@ CLASS="title"
><A
NAME="AEN2"
></A
->The Bugzilla Guide - 2.17.5 Development Release</H1
-><H3
-CLASS="author"
-><A
-NAME="AEN5"
-></A
->Matthew P. Barnson</H3
-><H3
-CLASS="author"
-><A
-NAME="AEN9"
-></A
->Jacob Steenhagen</H3
+>The Bugzilla Guide - 2.17.5
+ Development Release</H1
><H3
CLASS="corpauthor"
>The Bugzilla Team</H3
><P
CLASS="pubdate"
->2003-11-01<BR></P
+>2004-01-15<BR></P
><DIV
><DIV
CLASS="abstract"
><A
-NAME="AEN14"
+NAME="AEN7"
></A
><P
></P
><P
->&#13; This is the documentation for Bugzilla, the mozilla.org
- bug-tracking system.
+>&#13; This is the documentation for Bugzilla, a
+ bug-tracking system from mozilla.org.
Bugzilla is an enterprise-class piece of software
- that powers issue-tracking for hundreds of
- organizations around the world, tracking millions of bugs.
- </P
-><P
->
- This documentation is maintained in DocBook 4.1.2 XML format.
- Changes are best submitted as plain text or XML diffs, attached
- to a bug filed in the <A
-HREF="http://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla&component=Documentation"
-TARGET="_top"
->Bugzilla Documentation</A
-> component.
+ that tracks millions of bugs and issues for hundreds of
+ organizations around the world.
</P
><P
->This is a development version of this guide. Information in it
- is subject to change before the 2.18 release of this guide
- (which will correspond with the 2.18 release of Bugzilla).
- </P
-><P
>&#13; The most current version of this document can always be found on the
<A
HREF="http://www.bugzilla.org/documentation.html"
TARGET="_top"
->Bugzilla Documentation Page</A
+>Bugzilla
+ Documentation Page</A
>.
</P
><P
@@ -154,13 +131,18 @@ HREF="#introduction"
><DL
><DT
>2.1. <A
-HREF="#whatis"
+HREF="#what-is-bugzilla"
>What is Bugzilla?</A
></DT
><DT
>2.2. <A
-HREF="#why"
->Why Should We Use Bugzilla?</A
+HREF="#why-tracking"
+>Why use a bug-tracking system?</A
+></DT
+><DT
+>2.3. <A
+HREF="#why-bugzilla"
+>Why use Bugzilla?</A
></DT
></DL
></DD
@@ -173,19 +155,49 @@ HREF="#using"
><DL
><DT
>3.1. <A
-HREF="#how"
->How do I use Bugzilla?</A
+HREF="#myaccount"
+>Create a Bugzilla Account</A
></DT
><DT
>3.2. <A
+HREF="#bug_page"
+>Anatomy of a Bug</A
+></DT
+><DT
+>3.3. <A
+HREF="#query"
+>Searching for Bugs</A
+></DT
+><DT
+>3.4. <A
+HREF="#list"
+>Bug Lists</A
+></DT
+><DT
+>3.5. <A
+HREF="#bugreports"
+>Filing Bugs</A
+></DT
+><DT
+>3.6. <A
+HREF="#patchviewer"
+>Patch Viewer</A
+></DT
+><DT
+>3.7. <A
HREF="#hintsandtips"
>Hints and Tips</A
></DT
><DT
->3.3. <A
+>3.8. <A
HREF="#userpreferences"
>User Preferences</A
></DT
+><DT
+>3.9. <A
+HREF="#reporting"
+>Reports</A
+></DT
></DL
></DD
><DT
@@ -202,21 +214,26 @@ HREF="#stepbystep"
></DT
><DT
>4.2. <A
+HREF="#http"
+>HTTP Server Configuration</A
+></DT
+><DT
+>4.3. <A
HREF="#extraconfig"
>Optional Additional Configuration</A
></DT
><DT
->4.3. <A
+>4.4. <A
HREF="#os-specific"
>OS Specific Installation Notes</A
></DT
><DT
->4.4. <A
-HREF="#http"
->HTTP Server Configuration</A
+>4.5. <A
+HREF="#security"
+>Bugzilla Security</A
></DT
><DT
->4.5. <A
+>4.6. <A
HREF="#troubleshooting"
>Troubleshooting</A
></DT
@@ -241,136 +258,96 @@ HREF="#useradmin"
></DT
><DT
>5.3. <A
-HREF="#programadmin"
->Product, Component, Milestone, and Version Administration</A
+HREF="#products"
+>Products</A
></DT
><DT
>5.4. <A
-HREF="#voting"
->Voting</A
+HREF="#components"
+>Components</A
></DT
><DT
>5.5. <A
-HREF="#groups"
->Groups and Group Security</A
+HREF="#versions"
+>Versions</A
></DT
><DT
>5.6. <A
-HREF="#security"
->Bugzilla Security</A
+HREF="#milestones"
+>Milestones</A
></DT
><DT
>5.7. <A
-HREF="#cust-templates"
->Template Customization</A
+HREF="#voting"
+>Voting</A
></DT
><DT
>5.8. <A
-HREF="#cust-change-permissions"
->Change Permission Customization</A
+HREF="#groups"
+>Groups and Group Security</A
></DT
><DT
>5.9. <A
HREF="#upgrading"
>Upgrading to New Releases</A
></DT
-><DT
->5.10. <A
-HREF="#integration"
->Integrating Bugzilla with Third-Party Tools</A
-></DT
></DL
></DD
><DT
->A. <A
-HREF="#faq"
->The Bugzilla FAQ</A
-></DT
-><DT
->B. <A
-HREF="#database"
->The Bugzilla Database</A
+>6. <A
+HREF="#customization"
+>Customising Bugzilla</A
></DT
><DD
><DL
><DT
->B.1. <A
-HREF="#dbmodify"
->Modifying Your Running System</A
+>6.1. <A
+HREF="#cust-templates"
+>Template Customization</A
></DT
><DT
->B.2. <A
-HREF="#dbdoc"
->MySQL Bugzilla Database Introduction</A
+>6.2. <A
+HREF="#cust-change-permissions"
+>Customizing Who Can Change What</A
></DT
-></DL
-></DD
><DT
->C. <A
-HREF="#patches"
->Useful Patches and Utilities for Bugzilla</A
+>6.3. <A
+HREF="#dbmodify"
+>Modifying Your Running System</A
></DT
-><DD
-><DL
><DT
->C.1. <A
-HREF="#rewrite"
->Apache
- <TT
-CLASS="filename"
->mod_rewrite</TT
->
-
- magic</A
+>6.4. <A
+HREF="#dbdoc"
+>MySQL Bugzilla Database Introduction</A
></DT
><DT
->C.2. <A
-HREF="#cmdline"
->Command-line Bugzilla Queries</A
+>6.5. <A
+HREF="#integration"
+>Integrating Bugzilla with Third-Party Tools</A
></DT
></DL
></DD
><DT
->D. <A
-HREF="#variants"
->Bugzilla Variants and Competitors</A
-></DT
-><DD
-><DL
-><DT
->D.1. <A
-HREF="#variant-redhat"
->Red Hat Bugzilla</A
-></DT
-><DT
->D.2. <A
-HREF="#variant-fenris"
->Loki Bugzilla (Fenris)</A
-></DT
-><DT
->D.3. <A
-HREF="#variant-issuezilla"
->Issuezilla</A
-></DT
-><DT
->D.4. <A
-HREF="#variant-scarab"
->Scarab</A
+>A. <A
+HREF="#faq"
+>The Bugzilla FAQ</A
></DT
><DT
->D.5. <A
-HREF="#variant-perforce"
->Perforce SCM</A
+>B. <A
+HREF="#patches"
+>Contrib</A
></DT
+><DD
+><DL
><DT
->D.6. <A
-HREF="#variant-sourceforge"
->SourceForge</A
+>B.1. <A
+HREF="#cmdline"
+>Command-line Search Interface</A
></DT
></DL
></DD
><DT
->E. <A
+>C. <A
HREF="#gfdl"
>GNU Free Documentation License</A
></DT
@@ -484,14 +461,6 @@ HREF="#install-perlmodules-cpan"
>Installing perl modules with CPAN</A
></DT
><DT
->4-2. <A
-HREF="#http-apache-htaccess"
-><TT
-CLASS="filename"
->.htaccess</TT
-> files for Apache</A
-></DT
-><DT
>5-1. <A
HREF="#upgrade-cvs"
>Upgrading using CVS</A
@@ -524,7 +493,7 @@ NAME="copyright"
></A
>1.1. Copyright Information</H1
><A
-NAME="AEN35"
+NAME="AEN25"
></A
><TABLE
BORDER="0"
@@ -548,7 +517,7 @@ VALIGN="TOP"
Front-Cover Texts, and with no Back-Cover Texts. A copy of
the license is included in <A
HREF="#gfdl"
->Appendix E</A
+>Appendix C</A
>.
</P
></TD
@@ -564,7 +533,7 @@ ALIGN="RIGHT"
VALIGN="TOP"
>--<SPAN
CLASS="attribution"
->Copyright (c) 2000-2003 Matthew P. Barnson and The Bugzilla Team</SPAN
+>Copyright (c) 2000-2004 The Bugzilla Team</SPAN
></TD
><TD
WIDTH="10%"
@@ -574,7 +543,7 @@ WIDTH="10%"
><P
>&#13; If you have any questions regarding this document, its
copyright, or publishing this document in non-electronic form,
- please contact The Bugzilla Team.
+ please contact the Bugzilla Team.
</P
></DIV
><DIV
@@ -587,7 +556,7 @@ NAME="disclaimer"
>1.2. Disclaimer</H1
><P
>&#13; No liability for the contents of this document can be accepted.
- Use the concepts, examples, and other content at your own risk.
+ Follow the instructions herein at your own risk.
This document may contain errors
and inaccuracies that may damage your system, cause your partner
to leave you, your boss to fire you, your cats to
@@ -595,35 +564,20 @@ NAME="disclaimer"
war. Proceed with caution.
</P
><P
->&#13; All copyrights are held by their respective owners, unless
- specifically noted otherwise. Use of a term in this document
- should not be regarded as affecting the validity of any
- trademark or service mark.
- </P
-><P
>&#13; Naming of particular products or brands should not be seen as
endorsements, with the exception of the term "GNU/Linux". We
- wholeheartedly endorse the use of GNU/Linux in every situation
- where it is appropriate. It is an extremely versatile, stable,
+ wholeheartedly endorse the use of GNU/Linux; it is an extremely
+ versatile, stable,
and robust operating system that offers an ideal operating
environment for Bugzilla.
</P
><P
->&#13; You are strongly recommended to make a backup of your system
- before installing Bugzilla and at regular intervals thereafter.
- If you implement any suggestion in this Guide, implement this one!
- </P
-><P
>&#13; Although the Bugzilla development team has taken great care to
- ensure that all easily-exploitable bugs or options are
- documented or fixed in the code, security holes surely exist.
- Great care should be taken both in the installation and usage of
- this software. Carefully consider the implications of installing
- other network services with Bugzilla. The Bugzilla development
- team members, Netscape Communications, America Online Inc., and
- any affiliated developers or sponsors assume no liability for
- your use of this product. You have the source code to this
- product, and are responsible for auditing it yourself to ensure
+ ensure that all exploitable bugs or options have been
+ fixed, security holes surely exist. Great care should be taken both in
+ the installation and usage of this software. The Bugzilla development
+ team members assume no liability for your use of this software. You have
+ the source code, and are responsible for auditing it yourself to ensure
your security needs are met.
</P
></DIV
@@ -639,31 +593,17 @@ NAME="newversions"
>&#13; This is the 2.17.5 version of The Bugzilla Guide. It is so named
to match the current version of Bugzilla.
- This version of the guide, like its associated Bugzilla version is a
- development version. Information is subject to change between now and
- when 2.18 is released.
+ This version of the guide, like its associated Bugzilla version, is a
+ development version.
- If you are
- reading this from any source other than those below, please
- check one of these mirrors to make sure you are reading an
- up-to-date version of the Guide.
</P
><P
>&#13; The newest version of this guide can always be found at <A
HREF="http://www.bugzilla.org"
TARGET="_top"
>http://www.bugzilla.org</A
->; including
- documentation for past releases and the current development version.
- </P
-><P
->&#13; The documentation for the most recent stable release of Bugzilla can also
- be found at
- <A
-HREF="http://www.tldp.org"
-TARGET="_top"
->The Linux Documentation Project</A
->.
+>; however, you should read the version
+ which came with the Bugzilla release you are using.
</P
><P
>&#13; The latest version of this document can always be checked out via CVS.
@@ -703,116 +643,18 @@ NAME="credits"
contribution to the Bugzilla community:
</P
><P
-></P
-><DIV
-CLASS="variablelist"
-><DL
-><DT
->Matthew P. Barnson <TT
-CLASS="email"
->&#60;<A
-HREF="mailto:mbarnson@sisna.com"
->mbarnson@sisna.com</A
->&#62;</TT
-></DT
-><DD
-><P
->for the Herculaean task of pulling together the Bugzilla Guide
- and shepherding it to 2.14.
- </P
-></DD
-><DT
->Terry Weissman <TT
-CLASS="email"
->&#60;<A
-HREF="mailto:terry@mozilla.org"
->terry@mozilla.org</A
->&#62;</TT
-></DT
-><DD
-><P
->for initially writing Bugzilla and creating the README upon
- which the UNIX installation documentation is largely based.
- </P
-></DD
-><DT
->Tara Hernandez <TT
-CLASS="email"
->&#60;<A
-HREF="mailto:tara@tequilarists.org"
->tara@tequilarists.org</A
->&#62;</TT
-></DT
-><DD
-><P
->for keeping Bugzilla development going strong after Terry left
- mozilla.org and for running landfill.
- </P
-></DD
-><DT
->Dave Lawrence <TT
-CLASS="email"
->&#60;<A
-HREF="mailto:dkl@redhat.com"
->dkl@redhat.com</A
->&#62;</TT
-></DT
-><DD
-><P
->for providing insight into the key differences between Red
- Hat's customized Bugzilla, and being largely responsible for
- <A
-HREF="#variant-redhat"
->Section D.1</A
->.
- </P
-></DD
-><DT
->Dawn Endico <TT
-CLASS="email"
->&#60;<A
-HREF="mailto:endico@mozilla.org"
->endico@mozilla.org</A
->&#62;</TT
-></DT
-><DD
-><P
->for being a hacker extraordinaire and putting up with Matthew's
- incessant questions and arguments on irc.mozilla.org in #mozwebtools
- </P
-></DD
-><DT
->Jacob Steenhagen <TT
-CLASS="email"
->&#60;<A
-HREF="mailto:jake@bugzilla.org"
->jake@bugzilla.org</A
->&#62;</TT
-></DT
-><DD
-><P
->for taking over documentation during the 2.17 development
- period.
- </P
-></DD
-></DL
-></DIV
+>&#13; Matthew P. Barnson, Kevin Brannen, Dawn Endico, Ben FrantzDale, Eric Hanson, Tara Hernandez, Dave Lawrence, Zach Lipton, Gervase Markham, Andrew Pearson, Joe Robins, Spencer Smith, Jacob Steenhagen, Ron Teitelbaum, Terry Weissman, Martin Wulffeld.
+ </P
><P
>&#13; Last but not least, all the members of the
<A
HREF="news://news.mozilla.org/netscape/public/mozilla/webtools"
TARGET="_top"
->news://news.mozilla.org/netscape/public/mozilla/webtools</A
+>&#13; netscape.public.mozilla.webtools</A
>
newsgroup. Without your discussions, insight, suggestions, and patches,
this could never have happened.
</P
-><P
->&#13; Thanks also go to the following people for significant contributions
- to this documentation (in alphabetical order):
- Andrew Pearson, Ben FrantzDale, Eric Hanson, Gervase Markham, Joe Robins, Kevin Brannen, Martin Wulffeld, Ron Teitelbaum, Spencer Smith, Zach Liption
- .
- </P
></DIV
><DIV
CLASS="section"
@@ -827,7 +669,7 @@ NAME="conventions"
><DIV
CLASS="informaltable"
><A
-NAME="AEN113"
+NAME="AEN73"
></A
><P
></P
@@ -999,7 +841,7 @@ VALIGN="TOP"
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
->File Names</TD
+>File and directory names</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
@@ -1013,20 +855,6 @@ CLASS="filename"
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
->Directory Names</TD
-><TD
-ALIGN="LEFT"
-VALIGN="MIDDLE"
->&#13; <TT
-CLASS="filename"
->directory</TT
->
- </TD
-></TR
-><TR
-><TD
-ALIGN="LEFT"
-VALIGN="MIDDLE"
>Commands to be typed</TD
><TD
ALIGN="LEFT"
@@ -1041,7 +869,7 @@ CLASS="command"
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
->Applications Names</TD
+>Applications names</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
@@ -1100,7 +928,7 @@ VALIGN="MIDDLE"
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
->Environment Variables</TD
+>Environment variables</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
@@ -1114,19 +942,6 @@ CLASS="envar"
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
->Emphasized word</TD
-><TD
-ALIGN="LEFT"
-VALIGN="MIDDLE"
->&#13; <EM
->word</EM
->
- </TD
-></TR
-><TR
-><TD
-ALIGN="LEFT"
-VALIGN="MIDDLE"
>Term found in the glossary</TD
><TD
ALIGN="LEFT"
@@ -1144,7 +959,7 @@ CLASS="glossterm"
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
->Code Example</TD
+>Code example</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
@@ -1179,6 +994,16 @@ CLASS="sgmltag"
><P
></P
></DIV
+><P
+>
+ This documentation is maintained in DocBook 4.1.2 XML format.
+ Changes are best submitted as plain text or XML diffs, attached
+ to a bug filed in the <A
+HREF="http://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla&component=Documentation"
+TARGET="_top"
+>Bugzilla Documentation</A
+> component.
+ </P
></DIV
></DIV
><DIV
@@ -1193,24 +1018,55 @@ CLASS="section"
><H1
CLASS="section"
><A
-NAME="whatis"
+NAME="what-is-bugzilla"
></A
>2.1. What is Bugzilla?</H1
><P
>&#13; Bugzilla is a bug- or issue-tracking system. Bug-tracking
systems allow individual or groups of developers effectively to keep track
- of outstanding problems with their product.
- Bugzilla was originally
- written by Terry Weissman in a programming language called TCL, to
- replace a rudimentary bug-tracking database used internally by Netscape
- Communications. Terry later ported Bugzilla to Perl from TCL, and in Perl
- it remains to this day. Most commercial defect-tracking software vendors
- at the time charged enormous licensing fees, and Bugzilla quickly became
- a favorite of the open-source crowd (with its genesis in the open-source
- browser project, Mozilla). It is now the de-facto standard
- defect-tracking system against which all others are measured.
+ of outstanding problems with their products.
</P
><P
+><EM
+>Do we need more here?</EM
+></P
+></DIV
+><DIV
+CLASS="section"
+><HR><H1
+CLASS="section"
+><A
+NAME="why-tracking"
+></A
+>2.2. Why use a bug-tracking system?</H1
+><P
+>For many years, defect-tracking software was principally
+ the domain of large software development houses. Most smaller shops
+ simply relied on
+ shared lists and email to monitor the status of defects. This procedure
+ was error-prone and tended to cause those bugs judged least significant by
+ developers to be dropped or ignored.</P
+><P
+>Integrated
+ defect-tracking systems reduce downtime, increase productivity, and raise
+ customer satisfaction with their systems. Along with full disclosure, an
+ open bug-tracker allows you to keep in touch with your clients
+ and resellers, to communicate about problems effectively throughout the
+ data management chain. Many corporations have also discovered that
+ defect-tracking helps reduce costs by providing IT support
+ accountability, telephone support knowledge bases, and a common,
+ well-understood method for accounting for unusual system or software
+ issues.</P
+></DIV
+><DIV
+CLASS="section"
+><HR><H1
+CLASS="section"
+><A
+NAME="why-bugzilla"
+></A
+>2.3. Why use Bugzilla?</H1
+><P
>Bugzilla boasts many advanced features. These include:
<P
></P
@@ -1267,40 +1123,6 @@ NAME="whatis"
></UL
>
</P
-></DIV
-><DIV
-CLASS="section"
-><HR><H1
-CLASS="section"
-><A
-NAME="why"
-></A
->2.2. Why Should We Use Bugzilla?</H1
-><P
->For many years, defect-tracking software has remained principally
- the domain of large software development houses. Even then, most shops
- never bothered with bug-tracking software, and instead simply relied on
- shared lists and email to monitor the status of defects. This procedure
- is error-prone and tends to cause those bugs judged least significant by
- developers to be dropped or ignored.</P
-><P
->These days, many companies are finding that integrated
- defect-tracking systems reduce downtime, increase productivity, and raise
- customer satisfaction with their systems. Along with full disclosure, an
- open bug-tracker allows manufacturers to keep in touch with their clients
- and resellers, to communicate about problems effectively throughout the
- data management chain. Many corporations have also discovered that
- defect-tracking helps reduce costs by providing IT support
- accountability, telephone support knowledge bases, and a common,
- well-understood system for accounting for unusual system or software
- issues.</P
-><P
->But why should
- <EM
->you</EM
->
-
- use Bugzilla?</P
><P
>Bugzilla is very adaptable to various situations. Known uses
currently include IT support queues, Systems Administration deployment
@@ -1325,22 +1147,6 @@ TARGET="_top"
>, Bugzilla
provides a powerful, easy-to-use solution to configuration management and
replication problems.</P
-><P
->Bugzilla can dramatically increase the productivity and
- accountability of individual employees by providing a documented workflow
- and positive feedback for good performance. How many times do you wake up
- in the morning, remembering that you were supposed to do
- <EM
->something</EM
->
- today, but you just can't quite remember? Put it in Bugzilla, and you
- have a record of it from which you can extrapolate milestones, predict
- product versions for integration, and follow the discussion trail
- that led to critical decisions.</P
-><P
->Ultimately, Bugzilla puts the power in your hands to improve your
- value to your employer or business while providing a usable framework for
- your natural attention to detail and knowledge store to flourish.</P
></DIV
></DIV
><DIV
@@ -1350,46 +1156,37 @@ CLASS="chapter"
NAME="using"
></A
>Chapter 3. Using Bugzilla</H1
-><DIV
-CLASS="section"
-><H1
-CLASS="section"
-><A
-NAME="how"
-></A
->3.1. How do I use Bugzilla?</H1
><P
>This section contains information for end-users of Bugzilla.
- There is a Bugzilla test installation, called
- <A
-HREF="http://landfill.bugzilla.org/"
+ There is a Bugzilla test installation, called
+ <A
+HREF="http://landfill.bugzilla.org/bugzilla-tip/"
TARGET="_top"
>Landfill</A
>,
- which you are welcome to play with (if it's up.)
- However, it does not necessarily
- have all Bugzilla features enabled, and often runs cutting-edge versions
- of Bugzilla for testing, so some things may work slightly differently
- than mentioned here.</P
+ which you are welcome to play with (if it's up.)
+ However, it does not necessarily
+ have all Bugzilla features enabled, and runs an up-to-the-minute version,
+ so some things may not quite work as this document describes.</P
><DIV
CLASS="section"
-><HR><H2
+><HR><H1
CLASS="section"
><A
NAME="myaccount"
></A
->3.1.1. Create a Bugzilla Account</H2
+>3.1. Create a Bugzilla Account</H1
><P
>If you want to use Bugzilla, first you need to create an account.
- Consult with the administrator responsible for your installation of
- Bugzilla for the URL you should use to access it. If you're
- test-driving Bugzilla, use this URL:
- <A
+ Consult with the administrator responsible for your installation of
+ Bugzilla for the URL you should use to access it. If you're
+ test-driving Bugzilla, use this URL:
+ <A
HREF="http://landfill.bugzilla.org/bugzilla-tip/"
TARGET="_top"
>http://landfill.bugzilla.org/bugzilla-tip/</A
>.
- </P
+ </P
><P
></P
><OL
@@ -1397,443 +1194,441 @@ TYPE="1"
><LI
><P
>Click the
- <SPAN
+ <SPAN
CLASS="QUOTE"
>"Open a new Bugzilla account"</SPAN
>
- link, enter your email address and, optionally, your name in the
- spaces provided, then click
- <SPAN
+ link, enter your email address and, optionally, your name in the
+ spaces provided, then click
+ <SPAN
CLASS="QUOTE"
>"Create Account"</SPAN
>
- .</P
+ .</P
></LI
><LI
><P
>Within moments, you should receive an email to the address
- you provided above, which contains your login name (generally the
- same as the email address), and a password you can use to access
- your account. This password is randomly generated, and can be
- changed to something more memorable.</P
+ you provided, which contains your login name (generally the
+ same as the email address), and a password.
+ This password is randomly generated, but can be
+ changed to something more memorable.</P
></LI
><LI
><P
>Click the
- <SPAN
+ <SPAN
CLASS="QUOTE"
>"Log In"</SPAN
>
- link in the yellow area at the bottom of the page in your browser,
- enter your email address and password into the spaces provided, and
- click
- <SPAN
+ link in the footer at the bottom of the page in your browser,
+ enter your email address and password into the spaces provided, and
+ click
+ <SPAN
CLASS="QUOTE"
>"Login"</SPAN
>.
- </P
+ </P
></LI
></OL
><P
->You are now logged in. Bugzilla uses cookies for authentication
- so, unless your IP address changes, you should not have to log in
- again.</P
+>You are now logged in. Bugzilla uses cookies to remember you are
+ logged in so, unless you have cookies disabled or your IP address changes,
+ you should not have to log in again.</P
></DIV
><DIV
CLASS="section"
-><HR><H2
+><HR><H1
CLASS="section"
><A
NAME="bug_page"
></A
->3.1.2. Anatomy of a Bug</H2
+>3.2. Anatomy of a Bug</H1
><P
>The core of Bugzilla is the screen which displays a particular
- bug. It's a good place to explain some Bugzilla concepts.
- <A
+ bug. It's a good place to explain some Bugzilla concepts.
+ <A
HREF="http://landfill.bugzilla.org/bugzilla-tip/show_bug.cgi?id=1"
TARGET="_top"
->&#13; Bug 1 on Landfill</A
+>&#13; Bug 1 on Landfill</A
>
- is a good example. Note that the labels for most fields are hyperlinks;
- clicking them will take you to context-sensitive help on that
- particular field. Fields marked * may not be present on every
- installation of Bugzilla.</P
+ is a good example. Note that the labels for most fields are hyperlinks;
+ clicking them will take you to context-sensitive help on that
+ particular field. Fields marked * may not be present on every
+ installation of Bugzilla.</P
><P
></P
><OL
TYPE="1"
><LI
><P
->&#13; <EM
+>&#13; <EM
>Product and Component</EM
>:
- Bugs are divided up by Product and Component, with a Product
- having one or more Components in it. For example,
- bugzilla.mozilla.org's "Bugzilla" Product is composed of several
- Components:
- <P
+ Bugs are divided up by Product and Component, with a Product
+ having one or more Components in it. For example,
+ bugzilla.mozilla.org's "Bugzilla" Product is composed of several
+ Components:
+ <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Administration:</EM
>
- Administration of a Bugzilla installation.</TD
+ Administration of a Bugzilla installation.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Bugzilla-General:</EM
>
- Anything that doesn't fit in the other components, or spans
- multiple components.</TD
+ Anything that doesn't fit in the other components, or spans
+ multiple components.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Creating/Changing Bugs:</EM
>
- Creating, changing, and viewing bugs.</TD
+ Creating, changing, and viewing bugs.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Documentation:</EM
>
- The Bugzilla documentation, including The Bugzilla Guide.</TD
+ The Bugzilla documentation, including The Bugzilla Guide.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Email:</EM
>
- Anything to do with email sent by Bugzilla.</TD
+ Anything to do with email sent by Bugzilla.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Installation:</EM
>
- The installation process of Bugzilla.</TD
+ The installation process of Bugzilla.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Query/Buglist:</EM
>
- Anything to do with searching for bugs and viewing the
- buglists.</TD
+ Anything to do with searching for bugs and viewing the
+ buglists.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Reporting/Charting:</EM
>
- Getting reports from Bugzilla.</TD
+ Getting reports from Bugzilla.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>User Accounts:</EM
>
- Anything about managing a user account from the user's perspective.
- Saved queries, creating accounts, changing passwords, logging in,
- etc.</TD
+ Anything about managing a user account from the user's perspective.
+ Saved queries, creating accounts, changing passwords, logging in,
+ etc.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>User Interface:</EM
>
- General issues having to do with the user interface cosmetics (not
- functionality) including cosmetic issues, HTML templates,
- etc.</TD
+ General issues having to do with the user interface cosmetics (not
+ functionality) including cosmetic issues, HTML templates,
+ etc.</TD
></TR
></TBODY
></TABLE
><P
></P
>
- </P
+ </P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>Status and Resolution:</EM
>
- These define exactly what state the bug is in - from not even
- being confirmed as a bug, through to being fixed and the fix
- confirmed by Quality Assurance. The different possible values for
- Status and Resolution on your installation should be documented in the
- context-sensitive help for those items.</P
+ These define exactly what state the bug is in - from not even
+ being confirmed as a bug, through to being fixed and the fix
+ confirmed by Quality Assurance. The different possible values for
+ Status and Resolution on your installation should be documented in the
+ context-sensitive help for those items.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>Assigned To:</EM
>
- The person responsible for fixing the bug.</P
+ The person responsible for fixing the bug.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>*URL:</EM
>
- A URL associated with the bug, if any.</P
+ A URL associated with the bug, if any.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>Summary:</EM
>
- A one-sentence summary of the problem.</P
+ A one-sentence summary of the problem.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>*Status Whiteboard:</EM
>
- (a.k.a. Whiteboard) A free-form text area for adding short notes
- and tags to a bug.</P
+ (a.k.a. Whiteboard) A free-form text area for adding short notes
+ and tags to a bug.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>*Keywords:</EM
>
- The administrator can define keywords which you can use to tag and
- categorise bugs - e.g. The Mozilla Project has keywords like crash
- and regression.</P
+ The administrator can define keywords which you can use to tag and
+ categorise bugs - e.g. The Mozilla Project has keywords like crash
+ and regression.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>Platform and OS:</EM
>
- These indicate the computing environment where the bug was
- found.</P
+ These indicate the computing environment where the bug was
+ found.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>Version:</EM
>
- The "Version" field is usually used for versions of a product which
- have been released, and is set to indicate which versions of a
- Component have the particular problem the bug report is
- about.</P
+ The "Version" field is usually used for versions of a product which
+ have been released, and is set to indicate which versions of a
+ Component have the particular problem the bug report is
+ about.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>Priority:</EM
>
- The bug assignee uses this field to prioritise his or her bugs.
- It's a good idea not to change this on other people's bugs.</P
+ The bug assignee uses this field to prioritise his or her bugs.
+ It's a good idea not to change this on other people's bugs.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>Severity:</EM
>
- This indicates how severe the problem is - from blocker
- ("application unusable") to trivial ("minor cosmetic issue"). You
- can also use this field to indicate whether a bug is an enhancement
- request.</P
+ This indicates how severe the problem is - from blocker
+ ("application unusable") to trivial ("minor cosmetic issue"). You
+ can also use this field to indicate whether a bug is an enhancement
+ request.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>*Target:</EM
>
- (a.k.a. Target Milestone) A future version by which the bug is to
- be fixed. e.g. The Bugzilla Project's milestones for future
- Bugzilla versions are 2.18, 2.20, 3.0, etc. Milestones are not
- restricted to numbers, thought - you can use any text strings, such
- as dates.</P
+ (a.k.a. Target Milestone) A future version by which the bug is to
+ be fixed. e.g. The Bugzilla Project's milestones for future
+ Bugzilla versions are 2.18, 2.20, 3.0, etc. Milestones are not
+ restricted to numbers, thought - you can use any text strings, such
+ as dates.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>Reporter:</EM
>
- The person who filed the bug.</P
+ The person who filed the bug.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>CC list:</EM
>
- A list of people who get mail when the bug changes.</P
+ A list of people who get mail when the bug changes.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>Attachments:</EM
>
- You can attach files (e.g. testcases or patches) to bugs. If there
- are any attachments, they are listed in this section.</P
+ You can attach files (e.g. testcases or patches) to bugs. If there
+ are any attachments, they are listed in this section.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>*Dependencies:</EM
>
- If this bug cannot be fixed unless other bugs are fixed (depends
- on), or this bug stops other bugs being fixed (blocks), their
- numbers are recorded here.</P
+ If this bug cannot be fixed unless other bugs are fixed (depends
+ on), or this bug stops other bugs being fixed (blocks), their
+ numbers are recorded here.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>*Votes:</EM
>
- Whether this bug has any votes.</P
+ Whether this bug has any votes.</P
></LI
><LI
><P
->&#13; <EM
+>&#13; <EM
>Additional Comments:</EM
>
- You can add your two cents to the bug discussion here, if you have
- something worthwhile to say.</P
+ You can add your two cents to the bug discussion here, if you have
+ something worthwhile to say.</P
></LI
></OL
></DIV
><DIV
CLASS="section"
-><HR><H2
+><HR><H1
CLASS="section"
><A
NAME="query"
></A
->3.1.3. Searching for Bugs</H2
+>3.3. Searching for Bugs</H1
><P
>The Bugzilla Search page is is the interface where you can find
- any bug report, comment, or patch currently in the Bugzilla system. You
- can play with it here:
- <A
+ any bug report, comment, or patch currently in the Bugzilla system. You
+ can play with it here:
+ <A
HREF="http://landfill.bugzilla.org/bugzilla-tip/query.cgi"
TARGET="_top"
>http://landfill.bugzilla.org/bugzilla-tip/query.cgi</A
>.</P
><P
>The Search page has controls for selecting different possible
- values for all of the fields in a bug, as described above. For some
- fields, multiple values can be selected. In those cases, Bugzilla
- returns bugs where the content of the field matches one of the selected
- values. If none is selected, then the field can take any value.</P
+ values for all of the fields in a bug, as described above. For some
+ fields, multiple values can be selected. In those cases, Bugzilla
+ returns bugs where the content of the field matches any one of the selected
+ values. If none is selected, then the field can take any value.</P
><P
->Once you've defined a search, you can either run it, or save it
- as a Remembered Query, which can optionally appear in the footer of
- your pages.</P
+>Once you've run a search, you can save it as a Saved Search, which
+ appears in the page footer.</P
><P
->Highly advanced querying is done using Boolean Charts.</P
+>Highly advanced querying is done using Boolean Charts. See the
+ Boolean Charts help link on the Search page for more information.</P
></DIV
><DIV
CLASS="section"
-><HR><H2
+><HR><H1
CLASS="section"
><A
NAME="list"
></A
->3.1.4. Bug Lists</H2
+>3.4. Bug Lists</H1
><P
>If you run a search, a list of matching bugs will be returned.
- The default search is to return all open bugs on the system - don't try
- running this search on a Bugzilla installation with a lot of
- bugs!</P
+ </P
><P
>The format of the list is configurable. For example, it can be
- sorted by clicking the column headings. Other useful features can be
- accessed using the links at the bottom of the list:
- <P
+ sorted by clicking the column headings. Other useful features can be
+ accessed using the links at the bottom of the list:
+ <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Long Format:</EM
>
- this gives you a large page with a non-editable summary of the fields
- of each bug.</TD
+ this gives you a large page with a non-editable summary of the fields
+ of each bug.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Change Columns:</EM
>
- change the bug attributes which appear in the list.</TD
+ change the bug attributes which appear in the list.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Change several bugs at once:</EM
>
- If your account is sufficiently empowered, you can make the same
- change to all the bugs in the list - for example, changing their
- owner.</TD
+ If your account is sufficiently empowered, you can make the same
+ change to all the bugs in the list - for example, changing their
+ owner.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Send mail to bug owners:</EM
>
- Sends mail to the owners of all bugs on the list.</TD
+ Sends mail to the owners of all bugs on the list.</TD
></TR
><TR
><TD
->&#13; <EM
+>&#13; <EM
>Edit this query:</EM
>
- If you didn't get exactly the results you were looking for, you can
- return to the Query page through this link and make small revisions
- to the query you just made so you get more accurate results.</TD
+ If you didn't get exactly the results you were looking for, you can
+ return to the Query page through this link and make small revisions
+ to the query you just made so you get more accurate results.</TD
></TR
></TBODY
></TABLE
><P
></P
>
- </P
+ </P
></DIV
><DIV
CLASS="section"
-><HR><H2
+><HR><H1
CLASS="section"
><A
NAME="bugreports"
></A
->3.1.5. Filing Bugs</H2
+>3.5. Filing Bugs</H1
><P
>Years of bug writing experience has been distilled for your
- reading pleasure into the
- <A
+ reading pleasure into the
+ <A
HREF="http://landfill.bugzilla.org/bugzilla-tip/bugwritinghelp.html"
TARGET="_top"
->&#13; Bug Writing Guidelines</A
+>&#13; Bug Writing Guidelines</A
>.
- While some of the advice is Mozilla-specific, the basic principles of
- reporting Reproducible, Specific bugs, isolating the Product you are
- using, the Version of the Product, the Component which failed, the
- Hardware Platform, and Operating System you were using at the time of
- the failure go a long way toward ensuring accurate, responsible fixes
- for the bug that bit you.</P
+ While some of the advice is Mozilla-specific, the basic principles of
+ reporting Reproducible, Specific bugs, isolating the Product you are
+ using, the Version of the Product, the Component which failed, the
+ Hardware Platform, and Operating System you were using at the time of
+ the failure go a long way toward ensuring accurate, responsible fixes
+ for the bug that bit you.</P
><P
>The procedure for filing a test bug is as follows:</P
><P
@@ -1843,18 +1638,18 @@ TYPE="1"
><LI
><P
>Go to
- <A
+ <A
HREF="http://landfill.bugzilla.org/bugzilla-tip/"
TARGET="_top"
->&#13; Landfill</A
+>&#13; Landfill</A
>
- in your browser and click
- <A
+ in your browser and click
+ <A
HREF="http://landfill.bugzilla.org/bugzilla-tip/enter_bug.cgi"
TARGET="_top"
->&#13; Enter a new bug report</A
+>&#13; Enter a new bug report</A
>.
- </P
+ </P
></LI
><LI
><P
@@ -1863,8 +1658,8 @@ TARGET="_top"
><LI
><P
>Fill in the fields. Bugzilla should have made reasonable
- guesses, based upon your browser, for the "Platform" and "OS"
- drop-down boxes. If they are wrong, change them.</P
+ guesses, based upon your browser, for the "Platform" and "OS"
+ drop-down boxes. If they are wrong, change them.</P
></LI
><LI
><P
@@ -1874,18 +1669,18 @@ TARGET="_top"
></DIV
><DIV
CLASS="section"
-><HR><H2
+><HR><H1
CLASS="section"
><A
NAME="patchviewer"
></A
->3.1.6. Patch Viewer</H2
+>3.6. Patch Viewer</H1
><P
>Viewing and reviewing patches in Bugzilla is often difficult due to
- lack of context, improper format and the inherent readability issues that
- raw patches present. Patch Viewer is an enhancement to Bugzilla designed
- to fix that by offering increased context, linking to sections, and
- integrating with Bonsai, LXR and CVS.</P
+ lack of context, improper format and the inherent readability issues that
+ raw patches present. Patch Viewer is an enhancement to Bugzilla designed
+ to fix that by offering increased context, linking to sections, and
+ integrating with Bonsai, LXR and CVS.</P
><P
>Patch viewer allows you to:</P
><P
@@ -1896,7 +1691,7 @@ BORDER="0"
><TR
><TD
>View patches in color, with side-by-side view rather than trying
- to interpret the contents of the patch.</TD
+ to interpret the contents of the patch.</TD
></TR
><TR
><TD
@@ -1909,22 +1704,22 @@ BORDER="0"
><TR
><TD
>Collapse and expand sections of a patch for easy
- reading.</TD
+ reading.</TD
></TR
><TR
><TD
>Link to a particular section of a patch for discussion or
- review</TD
+ review</TD
></TR
><TR
><TD
>Go to Bonsai or LXR to see more context, blame, and
- cross-references for the part of the patch you are looking at</TD
+ cross-references for the part of the patch you are looking at</TD
></TR
><TR
><TD
>Create a rawtext unified format diff out of any patch, no
- matter what format it came from</TD
+ matter what format it came from</TD
></TR
></TBODY
></TABLE
@@ -1932,111 +1727,110 @@ BORDER="0"
></P
><DIV
CLASS="section"
-><HR><H3
+><HR><H2
CLASS="section"
><A
NAME="patchviewer_view"
></A
->3.1.6.1. Viewing Patches in Patch Viewer</H3
+>3.6.1. Viewing Patches in Patch Viewer</H2
><P
>The main way to view a patch in patch viewer is to click on the
- "Diff" link next to a patch in the Attachments list on a bug. You may
- also do this within the edit window by clicking the "View Attachment As
- Diff" button in the Edit Attachment screen.</P
+ "Diff" link next to a patch in the Attachments list on a bug. You may
+ also do this within the edit window by clicking the "View Attachment As
+ Diff" button in the Edit Attachment screen.</P
></DIV
><DIV
CLASS="section"
-><HR><H3
+><HR><H2
CLASS="section"
><A
NAME="patchviewer_diff"
></A
->3.1.6.2. Seeing the Difference Between Two Patches</H3
+>3.6.2. Seeing the Difference Between Two Patches</H2
><P
>To see the difference between two patches, you must first view the
- newer patch in Patch Viewer. Then select the older patch from the
- dropdown at the top of the page ("Differences between [dropdown] and
- this patch") and click the "Diff" button. This will show you what
- is new or changed in the newer patch.</P
+ newer patch in Patch Viewer. Then select the older patch from the
+ dropdown at the top of the page ("Differences between [dropdown] and
+ this patch") and click the "Diff" button. This will show you what
+ is new or changed in the newer patch.</P
></DIV
><DIV
CLASS="section"
-><HR><H3
+><HR><H2
CLASS="section"
><A
NAME="patchviewer_context"
></A
->3.1.6.3. Getting More Context in a Patch</H3
+>3.6.3. Getting More Context in a Patch</H2
><P
>To get more context in a patch, you put a number in the textbox at
- the top of Patch Viewer ("Patch / File / [textbox]") and hit enter.
- This will give you that many lines of context before and after each
- change. Alternatively, you can click on the "File" link there and it
- will show each change in the full context of the file. This feature only
- works against files that were diffed using "cvs diff".</P
+ the top of Patch Viewer ("Patch / File / [textbox]") and hit enter.
+ This will give you that many lines of context before and after each
+ change. Alternatively, you can click on the "File" link there and it
+ will show each change in the full context of the file. This feature only
+ works against files that were diffed using "cvs diff".</P
></DIV
><DIV
CLASS="section"
-><HR><H3
+><HR><H2
CLASS="section"
><A
NAME="patchviewer_collapse"
></A
->3.1.6.4. Collapsing and Expanding Sections of a Patch</H3
+>3.6.4. Collapsing and Expanding Sections of a Patch</H2
><P
>To view only a certain set of files in a patch (for example, if a
- patch is absolutely huge and you want to only review part of it at a
- time), you can click the "(+)" and "(-)" links next to each file (to
- expand it or collapse it). If you want to collapse all files or expand
- all files, you can click the "Collapse All" and "Expand All" links at the
- top of the page.</P
+ patch is absolutely huge and you want to only review part of it at a
+ time), you can click the "(+)" and "(-)" links next to each file (to
+ expand it or collapse it). If you want to collapse all files or expand
+ all files, you can click the "Collapse All" and "Expand All" links at the
+ top of the page.</P
></DIV
><DIV
CLASS="section"
-><HR><H3
+><HR><H2
CLASS="section"
><A
NAME="patchviewer_link"
></A
->3.1.6.5. Linking to a Section of a Patch</H3
+>3.6.5. Linking to a Section of a Patch</H2
><P
>To link to a section of a patch (for example, if you want to be
- able to give someone a URL to show them which part you are talking
- about) you simply click the "Link Here" link on the section header. The
- resulting URL can be copied and used in discussion. (Copy Link
- Location in Mozilla works as well.)</P
+ able to give someone a URL to show them which part you are talking
+ about) you simply click the "Link Here" link on the section header. The
+ resulting URL can be copied and used in discussion. (Copy Link
+ Location in Mozilla works as well.)</P
></DIV
><DIV
CLASS="section"
-><HR><H3
+><HR><H2
CLASS="section"
><A
NAME="patchviewer_bonsai_lxr"
></A
->3.1.6.6. Going to Bonsai and LXR</H3
+>3.6.6. Going to Bonsai and LXR</H2
><P
>To go to Bonsai to get blame for the lines you are interested in,
- you can click the "Lines XX-YY" link on the section header you are
- interested in. This works even if the patch is against an old
- version of the file, since Bonsai stores all versions of the file.</P
+ you can click the "Lines XX-YY" link on the section header you are
+ interested in. This works even if the patch is against an old
+ version of the file, since Bonsai stores all versions of the file.</P
><P
>To go to LXR, you click on the filename on the file header
- (unfortunately, since LXR only does the most recent version, line
- numbers are likely to rot).</P
+ (unfortunately, since LXR only does the most recent version, line
+ numbers are likely to rot).</P
></DIV
><DIV
CLASS="section"
-><HR><H3
+><HR><H2
CLASS="section"
><A
NAME="patchviewer_unified_diff"
></A
->3.1.6.7. Creating a Unified Diff</H3
+>3.6.7. Creating a Unified Diff</H2
><P
>If the patch is not in a format that you like, you can turn it
- into a unified diff format by clicking the "Raw Unified" link at the top
- of the page.</P
-></DIV
+ into a unified diff format by clicking the "Raw Unified" link at the top
+ of the page.</P
></DIV
></DIV
><DIV
@@ -2046,7 +1840,7 @@ CLASS="section"
><A
NAME="hintsandtips"
></A
->3.2. Hints and Tips</H1
+>3.7. Hints and Tips</H1
><P
>This section distills some Bugzilla tips and best practices
that have been developed.</P
@@ -2055,15 +1849,15 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN407"
+NAME="AEN358"
></A
->3.2.1. Autolinkification</H2
+>3.7.1. Autolinkification</H2
><P
->Bugzilla comments are plain text - so posting HTML will result
- in literal HTML tags rather than being interpreted by a browser.
+>Bugzilla comments are plain text - so typing &#60;U&#62; will
+ produce less-than, U, greater-than rather than underlined text.
However, Bugzilla will automatically make hyperlinks out of certain
sorts of text in comments. For example, the text
- http://www.bugzilla.org will be turned into
+ "http://www.bugzilla.org" will be turned into a link:
<A
HREF="http://www.bugzilla.org"
TARGET="_top"
@@ -2081,6 +1875,10 @@ BORDER="0"
></TR
><TR
><TD
+>comment 7</TD
+></TR
+><TR
+><TD
>bug 23456, comment 53</TD
></TR
><TR
@@ -2122,7 +1920,7 @@ CLASS="section"
><A
NAME="quicksearch"
></A
->3.2.2. Quicksearch</H2
+>3.7.2. Quicksearch</H2
><P
>Quicksearch is a single-text-box query tool which uses
metacharacters to indicate what is to be searched. For example, typing
@@ -2155,7 +1953,7 @@ CLASS="section"
><A
NAME="commenting"
></A
->3.2.3. Comments</H2
+>3.7.3. Comments</H2
><P
>If you are changing the fields on a bug, only comment if
either you have something pertinent to say, or Bugzilla requires it.
@@ -2168,7 +1966,7 @@ NAME="commenting"
</P
><P
>&#13; Don't use sigs in comments. Signing your name ("Bill") is acceptable,
- particularly if you do it out of habit, but full mail/news-style
+ if you do it out of habit, but full mail/news-style
four line ASCII art creations are not.
</P
></DIV
@@ -2179,7 +1977,7 @@ CLASS="section"
><A
NAME="attachments"
></A
->3.2.4. Attachments</H2
+>3.7.4. Attachments</H2
><P
>&#13; Use attachments, rather than comments, for large chunks of ASCII data,
such as trace, debugging output files, or log files. That way, it doesn't
@@ -2203,9 +2001,9 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN436"
+NAME="AEN388"
></A
->3.2.5. Filing Bugs</H2
+>3.7.5. Filing Bugs</H2
><P
>Try to make sure that everything said in the summary is also
said in the first comment. Summaries are often updated and this will
@@ -2231,11 +2029,11 @@ CLASS="section"
><A
NAME="userpreferences"
></A
->3.3. User Preferences</H1
+>3.8. User Preferences</H1
><P
>Once you have logged in, you can customise various aspects of
Bugzilla via the "Edit prefs" link in the page footer.
- The preferences are split into four tabs:</P
+ The preferences are split into three tabs:</P
><DIV
CLASS="section"
><HR><H2
@@ -2243,7 +2041,7 @@ CLASS="section"
><A
NAME="accountsettings"
></A
->3.3.1. Account Settings</H2
+>3.8.1. Account Settings</H2
><P
>On this tab, you can change your basic account information,
including your password, email address and real name. For security
@@ -2268,13 +2066,19 @@ CLASS="section"
><A
NAME="emailsettings"
></A
->3.3.2. Email Settings</H2
+>3.8.2. Email Settings</H2
><P
>On this tab you can reduce or increase the amount of email sent
you from Bugzilla, opting in our out depending on your relationship to
- the bug and the change that was made to it. (Note that you can also do
- client-side filtering using the X-Bugzilla-Reason header which Bugzilla
- adds to all bugmail.)</P
+ the bug and the change that was made to it.
+ </P
+><P
+>&#13; You can also do further filtering on the client side by
+ using the X-Bugzilla-Reason mail header which Bugzilla
+ adds to all bugmail. This tells you what relationship you have to the
+ bug in question,
+ and can be any of Owner, Reporter, QAcontact, CClist, Voter and
+ WatchingComponent.</P
><P
>By entering user email names, delineated by commas, into the
"Users to watch" text entry box you can receive a copy of all the
@@ -2315,29 +2119,28 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="footersettings"
+NAME="permissionsettings"
></A
->3.3.3. Page Footer</H2
+>3.8.3. Permissions</H2
><P
->On the Search page, you can store queries in Bugzilla, so if you
- regularly run a particular query it is just a drop-down menu away.
- Once you have a stored query, you can come
- here to request that it also be displayed in your page footer.</P
+>This is a purely informative page which outlines your current
+ permissions on this installation of Bugzilla - what product groups you
+ are in, and whether you can edit bugs or perform various administration
+ functions.</P
+></DIV
></DIV
><DIV
CLASS="section"
-><HR><H2
+><HR><H1
CLASS="section"
><A
-NAME="permissionsettings"
+NAME="reporting"
></A
->3.3.4. Permissions</H2
+>3.9. Reports</H1
><P
->This is a purely informative page which outlines your current
- permissions on this installation of Bugzilla - what product groups you
- are in, and whether you can edit bugs or perform various administration
- functions.</P
-></DIV
+><EM
+>To be written</EM
+></P
></DIV
></DIV
><DIV
@@ -2366,7 +2169,7 @@ CLASS="productname"
that make it harder. We have tried to collect that information in
<A
HREF="#os-specific"
->Section 4.3</A
+>Section 4.4</A
>, so be sure to check out that section before
you start your installation.
</P
@@ -2396,7 +2199,7 @@ VALIGN="TOP"
to install Bugzilla on Windows, be sure to see
<A
HREF="#os-win32"
->Section 4.3.1</A
+>Section 4.4.1</A
>.
</P
></TD
@@ -2443,6 +2246,10 @@ VALIGN="TOP"
with administrative access to install it for you.
</P
><P
+>&#13; You are strongly recommended to make a backup of your system
+ before installing Bugzilla and at regular intervals thereafter.
+ </P
+><P
>The listing below is a basic step-by-step list. More information
can be found in the sections below. Minimum versions will be
included in parenthesis where appropriate.
@@ -2454,15 +2261,6 @@ TYPE="1"
><LI
><P
><A
-HREF="#install-mysql"
->Install MySQL</A
->
- (3.23.41)
- </P
-></LI
-><LI
-><P
-><A
HREF="#install-perl"
>Install Perl</A
>
@@ -2472,9 +2270,10 @@ HREF="#install-perl"
><LI
><P
><A
-HREF="#install-perlmodules"
->Install Perl Modules</A
+HREF="#install-mysql"
+>Install MySQL</A
>
+ (3.23.41)
</P
></LI
><LI
@@ -2496,6 +2295,14 @@ HREF="#install-bzfiles"
><LI
><P
><A
+HREF="#install-perlmodules"
+>Install Perl Modules</A
+>
+ </P
+></LI
+><LI
+><P
+><A
HREF="#install-setupdatabase"
>Setup the MySQL Database</A
>
@@ -2508,9 +2315,31 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
+NAME="install-perl"
+></A
+>4.1.1. Perl</H2
+><P
+>Any machine that doesn't have Perl on it is a sad machine indeed.
+ Perl can be got in source form from <A
+HREF="http://www.perl.com"
+TARGET="_top"
+>http://www.perl.com</A
+>.
+ There are also binary versions available for many platforms, most of which
+ are linked to from perl.com.
+ Although Bugzilla runs with perl 5.6,
+ it's a good idea to be up to the very latest version
+ if you can when running Bugzilla. As of this writing, that is Perl
+ version 5.8.</P
+></DIV
+><DIV
+CLASS="section"
+><HR><H2
+CLASS="section"
+><A
NAME="install-mysql"
></A
->4.1.1. MySQL</H2
+>4.1.2. MySQL</H2
><P
>Visit the MySQL homepage at
<A
@@ -2615,31 +2444,327 @@ CLASS="option"
> option as
mentioned in <A
HREF="#security-mysql"
->Section 5.6.2</A
+>Section 4.5.2</A
> for the added security.
</P
+><DIV
+CLASS="section"
+><HR><H3
+CLASS="section"
+><A
+NAME="install-setupdatabase"
+></A
+>4.1.2.1. Configuring MySQL</H3
+><P
+>This first thing you'll want to do is make sure you've given the
+ <SPAN
+CLASS="QUOTE"
+>"root"</SPAN
+> user a password as suggested in
+ <A
+HREF="#security-mysql"
+>Section 4.5.2</A
+>. For clarity, these instructions will
+ assume that your MySQL user for Bugzilla will be <SPAN
+CLASS="QUOTE"
+>"bugs_user"</SPAN
+>,
+ the database will be called <SPAN
+CLASS="QUOTE"
+>"bugs_db"</SPAN
+> and the password for
+ the <SPAN
+CLASS="QUOTE"
+>"bugs_user"</SPAN
+> user is <SPAN
+CLASS="QUOTE"
+>"bugs_password"</SPAN
+>. You
+ should, of course, substitute the values you intend to use for your site.
+ </P
+><DIV
+CLASS="note"
+><P
+></P
+><TABLE
+CLASS="note"
+WIDTH="100%"
+BORDER="0"
+><TR
+><TD
+WIDTH="25"
+ALIGN="CENTER"
+VALIGN="TOP"
+><IMG
+SRC="../images/note.gif"
+HSPACE="5"
+ALT="Note"></TD
+><TD
+ALIGN="LEFT"
+VALIGN="TOP"
+><P
+>Most people use <SPAN
+CLASS="QUOTE"
+>"bugs"</SPAN
+> for both the user and
+ database name.
+ </P
+></TD
+></TR
+></TABLE
+></DIV
+><P
+>Next, we use an SQL <B
+CLASS="command"
+>GRANT</B
+> command to create a
+ <SPAN
+CLASS="QUOTE"
+>"bugs_user"</SPAN
+>
+ user, and grant sufficient permissions for checksetup.pl, which we'll
+ use later, to work its magic. This also restricts the
+ <SPAN
+CLASS="QUOTE"
+>"bugs_user"</SPAN
+>
+ user to operations within a database called
+ <SPAN
+CLASS="QUOTE"
+>"bugs_db"</SPAN
+>, and only allows the account to connect from
+ <SPAN
+CLASS="QUOTE"
+>"localhost"</SPAN
+>.
+ Modify it to reflect your setup if you will be connecting from
+ another machine or as a different user.</P
+><TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><FONT
+COLOR="#000000"
+><PRE
+CLASS="screen"
+>&#13; <TT
+CLASS="prompt"
+>mysql&#62;</TT
+> GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,
+ DROP,REFERENCES ON bugs_db.* TO bugs_user@localhost
+ IDENTIFIED BY 'bugs_password';
+ <TT
+CLASS="prompt"
+>mysql&#62;</TT
+> FLUSH PRIVILEGES;
+ </PRE
+></FONT
+></TD
+></TR
+></TABLE
+><DIV
+CLASS="note"
+><P
+></P
+><TABLE
+CLASS="note"
+WIDTH="100%"
+BORDER="0"
+><TR
+><TD
+WIDTH="25"
+ALIGN="CENTER"
+VALIGN="TOP"
+><IMG
+SRC="../images/note.gif"
+HSPACE="5"
+ALT="Note"></TD
+><TD
+ALIGN="LEFT"
+VALIGN="TOP"
+><P
+>If you are using MySQL 4, the bugs user also needs to be granted
+ the <TT
+CLASS="computeroutput"
+>LOCK TABLES</TT
+> and
+ <TT
+CLASS="computeroutput"
+>CREATE TEMPORARY TABLES</TT
+> permissions.
+ </P
+></TD
+></TR
+></TABLE
+></DIV
+></DIV
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="install-perl"
+NAME="install-webserver"
></A
->4.1.2. Perl</H2
+>4.1.3. HTTP Server</H2
><P
->Any machine that doesn't have Perl on it is a sad machine indeed.
- Perl can be got in source form from <A
-HREF="http://www.perl.com"
+>You have freedom of choice here, pretty much any web server that
+ is capable of running <A
+HREF="#gloss-cgi"
+><I
+CLASS="glossterm"
+>CGI</I
+></A
+>
+ scripts will work. <A
+HREF="#http"
+>Section 4.2</A
+> has more information about
+ configuring web servers to work with Bugzilla.
+ </P
+><DIV
+CLASS="note"
+><P
+></P
+><TABLE
+CLASS="note"
+WIDTH="100%"
+BORDER="0"
+><TR
+><TD
+WIDTH="25"
+ALIGN="CENTER"
+VALIGN="TOP"
+><IMG
+SRC="../images/note.gif"
+HSPACE="5"
+ALT="Note"></TD
+><TD
+ALIGN="LEFT"
+VALIGN="TOP"
+><P
+>We strongly recommend Apache as the web server to use. The
+ Bugzilla Guide installation instructions, in general, assume you are
+ using Apache. If you have got Bugzilla working using another webserver,
+ please share your experiences with us by filing a bug in <A
+HREF="http://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla&component=Documentation"
TARGET="_top"
->http://www.perl.com</A
+>Bugzilla Documentation</A
>.
- There are also binary versions available for many platforms, most of which
- are linked to from perl.com.
- Although Bugzilla runs with perl 5.6,
- it's a good idea to be up to the very latest version
- if you can when running Bugzilla. As of this writing, that is Perl
- version 5.8.</P
+ </P
+></TD
+></TR
+></TABLE
+></DIV
+></DIV
+><DIV
+CLASS="section"
+><HR><H2
+CLASS="section"
+><A
+NAME="install-bzfiles"
+></A
+>4.1.4. Bugzilla</H2
+><P
+>You should untar the Bugzilla files into a directory that you're
+ willing to make writable by the default web server user (probably
+ <SPAN
+CLASS="QUOTE"
+>"nobody"</SPAN
+>).
+ You may decide to put the files in the main web space for your
+ web server or perhaps in
+ <TT
+CLASS="filename"
+>/usr/local</TT
+>
+ with a symbolic link in the web space that points to the Bugzilla
+ directory.</P
+><DIV
+CLASS="tip"
+><P
+></P
+><TABLE
+CLASS="tip"
+WIDTH="100%"
+BORDER="0"
+><TR
+><TD
+WIDTH="25"
+ALIGN="CENTER"
+VALIGN="TOP"
+><IMG
+SRC="../images/tip.gif"
+HSPACE="5"
+ALT="Tip"></TD
+><TD
+ALIGN="LEFT"
+VALIGN="TOP"
+><P
+>If you symlink the bugzilla directory into your Apache's HTML
+ hierarchy, you may receive
+ <SPAN
+CLASS="errorname"
+>Forbidden</SPAN
+>
+ errors unless you add the
+ <SPAN
+CLASS="QUOTE"
+>"FollowSymLinks"</SPAN
+>
+ directive to the &#60;Directory&#62; entry for the HTML root
+ in httpd.conf.</P
+></TD
+></TR
+></TABLE
+></DIV
+><P
+>Once all the files are in a web accessible directory, make that
+ directory writable by your webserver's user. This is a temporary step
+ until you run the post-install
+ <TT
+CLASS="filename"
+>checksetup.pl</TT
+>
+ script, which locks down your installation.</P
+><DIV
+CLASS="caution"
+><P
+></P
+><TABLE
+CLASS="caution"
+WIDTH="100%"
+BORDER="0"
+><TR
+><TD
+WIDTH="25"
+ALIGN="CENTER"
+VALIGN="TOP"
+><IMG
+SRC="../images/caution.gif"
+HSPACE="5"
+ALT="Caution"></TD
+><TD
+ALIGN="LEFT"
+VALIGN="TOP"
+><P
+>The default Bugzilla distribution is not designed to be placed
+ in a <TT
+CLASS="filename"
+>cgi-bin</TT
+> directory (this
+ includes any directory which is configured using the
+ <TT
+CLASS="option"
+>ScriptAlias</TT
+> directive of Apache).
+ </P
+></TD
+></TR
+></TABLE
+></DIV
></DIV
><DIV
CLASS="section"
@@ -2648,7 +2773,7 @@ CLASS="section"
><A
NAME="install-perlmodules"
></A
->4.1.3. Perl Modules</H2
+>4.1.5. Perl Modules</H2
><P
>Perl modules can be found using
<A
@@ -2676,7 +2801,7 @@ HREF="#install-perlmodules-cpan"
> for CPAN and
<A
HREF="#win32-perlmodules"
->Section 4.3.1.2</A
+>Section 4.4.1.2</A
> for PPM.
</P
><DIV
@@ -2802,7 +2927,7 @@ BORDER="0"
ALT="(2)"></A
></DT
><DD
->The process of untaring the module as defined in
+>The process of untarring the module as defined in
<A
HREF="#cpan-moduletar"
><A
@@ -3053,7 +3178,7 @@ CLASS="section"
><A
NAME="install-modules-bundle-bugzilla"
></A
->4.1.3.1. Bundle::Bugzilla</H3
+>4.1.5.1. Bundle::Bugzilla</H3
><P
>If you are running at least perl 5.6.1, you can save yourself a lot
of time by using Bundle::Bugzilla. This bundle contains every module
@@ -3132,7 +3257,7 @@ CLASS="section"
><A
NAME="install-modules-appconfig"
></A
->4.1.3.2. AppConfig (1.52)</H3
+>4.1.5.2. AppConfig (1.52)</H3
><P
>Dependency for Template Toolkit. We probably don't need to
specifically check for it anymore.
@@ -3145,7 +3270,7 @@ CLASS="section"
><A
NAME="install-modules-cgi"
></A
->4.1.3.3. CGI (2.88)</H3
+>4.1.5.3. CGI (2.88)</H3
><P
>The CGI module parses form elements and cookies and does many
other usefule things. It come as a part of recent perl distributions, but
@@ -3178,7 +3303,7 @@ CLASS="section"
><A
NAME="install-modules-data-dumper"
></A
->4.1.3.4. Data::Dumper (any)</H3
+>4.1.5.4. Data::Dumper (any)</H3
><P
>The Data::Dumper module provides data structure persistence for
Perl (similar to Java's serialization). It comes with later
@@ -3212,7 +3337,7 @@ CLASS="section"
><A
NAME="install-modules-date-format"
></A
->4.1.3.5. TimeDate modules (2.21)</H3
+>4.1.5.5. TimeDate modules (2.21)</H3
><P
>Many of the more common date/time/calendar related Perl modules
have been grouped into a bundle similar to the MySQL modules bundle.
@@ -3247,7 +3372,7 @@ CLASS="section"
><A
NAME="install-modules-dbi"
></A
->4.1.3.6. DBI (1.32)</H3
+>4.1.5.6. DBI (1.32)</H3
><P
>The DBI module is a generic Perl module used the
MySQL-related modules. As long as your Perl installation was done
@@ -3281,7 +3406,7 @@ CLASS="section"
><A
NAME="install-modules-dbd-mysql"
></A
->4.1.3.7. MySQL-related modules</H3
+>4.1.5.7. MySQL-related modules</H3
><P
>The Perl/MySQL interface requires a few mutually-dependent Perl
modules. These modules are grouped together into the the
@@ -3326,7 +3451,7 @@ CLASS="section"
><A
NAME="install-file-spec"
></A
->4.1.3.8. File::Spec (0.82)</H3
+>4.1.5.8. File::Spec (0.82)</H3
><P
>File::Spec is a perl module that allows file operations, such as
generating full path names, to work cross platform.
@@ -3358,7 +3483,7 @@ CLASS="section"
><A
NAME="install-modules-file-temp"
></A
->4.1.3.9. File::Temp (any)</H3
+>4.1.5.9. File::Temp (any)</H3
><P
>File::Temp is used to generate a temporary filename that is
guaranteed to be unique. It comes as a standard part of perl
@@ -3390,7 +3515,7 @@ CLASS="section"
><A
NAME="install-modules-template"
></A
->4.1.3.10. Template Toolkit (2.08)</H3
+>4.1.5.10. Template Toolkit (2.08)</H3
><P
>When you install Template Toolkit, you'll get asked various
questions about features to enable. The defaults are fine, except
@@ -3424,7 +3549,7 @@ CLASS="section"
><A
NAME="install-modules-text-wrap"
></A
->4.1.3.11. Text::Wrap (2001.0131)</H3
+>4.1.5.11. Text::Wrap (2001.0131)</H3
><P
>Text::Wrap is designed to proved intelligent text wrapping.
</P
@@ -3450,7 +3575,7 @@ CLASS="section"
><A
NAME="install-modules-gd"
></A
->4.1.3.12. GD (1.20) [optional]</H3
+>4.1.5.12. GD (1.20) [optional]</H3
><P
>The GD library was written by Thomas Boutell a long while ago to
programmatically generate images in C. Since then it's become the
@@ -3560,7 +3685,7 @@ CLASS="section"
><A
NAME="install-modules-chart-base"
></A
->4.1.3.13. Chart::Base (0.99c) [optional]</H3
+>4.1.5.13. Chart::Base (0.99c) [optional]</H3
><P
>The Chart module provides Bugzilla with on-the-fly charting
abilities. It can be installed in the usual fashion after it has been
@@ -3589,7 +3714,7 @@ CLASS="section"
><A
NAME="install-modules-xml-parser"
></A
->4.1.3.14. XML::Parser (any) [Optional]</H3
+>4.1.5.14. XML::Parser (any) [Optional]</H3
><P
>XML::Parser is used by the <TT
CLASS="filename"
@@ -3624,7 +3749,7 @@ CLASS="section"
><A
NAME="install-modules-gd-graph"
></A
->4.1.3.15. GD::Graph (any) [Optional]</H3
+>4.1.5.15. GD::Graph (any) [Optional]</H3
><P
>In addition to GD listed above, the reporting interface of Bugzilla
needs to have the GD::Graph module installed.
@@ -3656,7 +3781,7 @@ CLASS="section"
><A
NAME="install-modules-gd-text-align"
></A
->4.1.3.16. GD::Text::Align (any) [Optional]</H3
+>4.1.5.16. GD::Text::Align (any) [Optional]</H3
><P
>GD::Text::Align, as the name implies, is used to draw aligned
strings of text. It is needed by the reporting interface.
@@ -3688,7 +3813,7 @@ CLASS="section"
><A
NAME="install-modules-mime-parser"
></A
->4.1.3.17. MIME::Parser (any) [Optional]</H3
+>4.1.5.17. MIME::Parser (any) [Optional]</H3
><P
>MIME::Parser is only needed if you want to use the e-mail interface
located in the <TT
@@ -3723,7 +3848,7 @@ CLASS="section"
><A
NAME="install-modules-patchreader"
></A
->4.1.3.18. PatchReader (0.9.1) [Optional]</H3
+>4.1.5.18. PatchReader (0.9.1) [Optional]</H3
><P
>PatchReader is only needed if you want to use Patch Viewer, a
Bugzilla feature to format patches in a pretty HTML fashion. There are a
@@ -3759,135 +3884,122 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="install-webserver"
+NAME="AEN748"
></A
->4.1.4. HTTP Server</H2
+>4.1.6. <TT
+CLASS="filename"
+>checksetup.pl</TT
+></H2
><P
->You have freedom of choice here, pretty much any web server that
- is capable of running <A
-HREF="#gloss-cgi"
-><I
-CLASS="glossterm"
->CGI</I
-></A
+>Next, run the magic checksetup.pl script.
+ This is designed to make sure your perl modules are the correct
+ version and your MySQL database and other
+ configuration options are consistent with the Bugzilla CGI files.
+ It will make sure Bugzilla files and directories have reasonable
+ permissions, set up the
+ <TT
+CLASS="filename"
+>data</TT
>
- scripts will work. <A
-HREF="#http"
->Section 4.4</A
-> has more information about
- configuring web servers to work with Bugzilla.
+ directory, and create all the MySQL tables.
</P
-><DIV
-CLASS="note"
-><P
-></P
><TABLE
-CLASS="note"
-WIDTH="100%"
BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
><TR
><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->We strongly recommend Apache as the web server to use. The
- Bugzilla Guide installation instructions, in general, assume you are
- using Apache. If you have got Bugzilla working using another webserver,
- please share your experiences with us by filing a bug in <A
-HREF="http://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla&component=Documentation"
-TARGET="_top"
->Bugzilla Documentation</A
->.
- </P
+><FONT
+COLOR="#000000"
+><PRE
+CLASS="screen"
+>&#13;<TT
+CLASS="prompt"
+>bash#</TT
+> ./checksetup.pl
+ </PRE
+></FONT
></TD
></TR
></TABLE
-></DIV
-></DIV
-><DIV
-CLASS="section"
-><HR><H2
-CLASS="section"
-><A
-NAME="install-bzfiles"
-></A
->4.1.5. Bugzilla</H2
><P
->You should untar the Bugzilla files into a directory that you're
- willing to make writable by the default web server user (probably
- <SPAN
-CLASS="QUOTE"
->"nobody"</SPAN
->).
- You may decide to put the files in the main web space for your
- web server or perhaps in
+>&#13; The first time you run it, it will create a file called
<TT
CLASS="filename"
->/usr/local</TT
->
- with a symbolic link in the web space that points to the Bugzilla
- directory.</P
-><DIV
-CLASS="tip"
+>localconfig</TT
+>.</P
><P
+>This file contains a variety of settings you may need to tweak
+ including how Bugzilla should connect to the MySQL database.</P
+><P
+>The connection settings include:
+ <P
></P
-><TABLE
-CLASS="tip"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/tip.gif"
-HSPACE="5"
-ALT="Tip"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
+><OL
+TYPE="1"
+><LI
><P
->If you symlink the bugzilla directory into your Apache's HTML
- hierarchy, you may receive
- <SPAN
-CLASS="errorname"
->Forbidden</SPAN
+>server's host: just use
+ <SPAN
+CLASS="QUOTE"
+>"localhost"</SPAN
>
- errors unless you add the
- <SPAN
+ if the MySQL server is local</P
+></LI
+><LI
+><P
+>database name:
+ <SPAN
CLASS="QUOTE"
->"FollowSymLinks"</SPAN
+>"bugs_db"</SPAN
>
- directive to the &#60;Directory&#62; entry for the HTML root
- in httpd.conf.</P
-></TD
-></TR
-></TABLE
-></DIV
+ if you're following these directions</P
+></LI
+><LI
><P
->Once all the files are in a web accessible directory, make that
- directory writable by your webserver's user. This is a temporary step
- until you run the post-install
+>MySQL username:
+ <SPAN
+CLASS="QUOTE"
+>"bugs_user"</SPAN
+>
+ if you're following these directions</P
+></LI
+><LI
+><P
+>Password for the
+ <SPAN
+CLASS="QUOTE"
+>"bugs_user"</SPAN
+>
+ MySQL account; (<SPAN
+CLASS="QUOTE"
+>"bugs_password"</SPAN
+> above)</P
+></LI
+></OL
+>
+ </P
+><P
+>Once you are happy with the settings,
+ <TT
+CLASS="filename"
+>su</TT
+> to the user
+ your web server runs as, and re-run
<TT
CLASS="filename"
>checksetup.pl</TT
->
- script, which locks down your installation.</P
+>. (Note: on some security-conscious
+ systems, you may need to change the login shell for the webserver
+ account before you can do this.)
+ On this second run, it will create the database and an administrator
+ account for which you will be prompted to provide information.</P
><DIV
-CLASS="caution"
+CLASS="note"
><P
></P
><TABLE
-CLASS="caution"
+CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
@@ -3896,31 +4008,16 @@ WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
-SRC="../images/caution.gif"
+SRC="../images/note.gif"
HSPACE="5"
-ALT="Caution"></TD
+ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->The default Bugzilla distribution is not designed to be placed
- in a <TT
-CLASS="filename"
->cgi-bin</TT
-> directory (this
- includes any directory which is configured using the
- <TT
-CLASS="option"
->ScriptAlias</TT
-> directive of Apache). This will probably
- change as part of
- <A
-HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=44659"
-TARGET="_top"
->bug
- 44659</A
->.
- </P
+>The checksetup.pl script is designed so that you can run it at
+ any time without causing harm. You should run it after any upgrade to
+ Bugzilla.</P
></TD
></TR
></TABLE
@@ -3931,97 +4028,113 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="install-setupdatabase"
+NAME="AEN778"
></A
->4.1.6. Setting Up the MySQL Database</H2
-><P
->After you've gotten all the software installed and working you're
- ready to start preparing the database for its life as the back end to
- a high quality bug tracker.</P
+>4.1.7. Configuring Bugzilla</H2
><P
->This first thing you'll want to do is make sure you've given the
- <SPAN
-CLASS="QUOTE"
->"root"</SPAN
-> user a password as suggested in
- <A
-HREF="#security-mysql"
->Section 5.6.2</A
->. For clarity, these instructions will
- assume that your MySQL user for Bugzilla will be <SPAN
-CLASS="QUOTE"
->"bugs_user"</SPAN
->,
- the database will be called <SPAN
-CLASS="QUOTE"
->"bugs_db"</SPAN
-> and the password for
- the <SPAN
-CLASS="QUOTE"
->"bugs_user"</SPAN
-> user is <SPAN
-CLASS="QUOTE"
->"bugs_password"</SPAN
->. You
- should, of course, substitute the values you intend to use for your site.
+>&#13; You should run through the parameters on the Edit Parameters page
+ (link in the footer) and set them all to appropriate values.
+ They key parameters are documented in <A
+HREF="#parameters"
+>Section 5.1</A
+>.
</P
+></DIV
+></DIV
><DIV
-CLASS="note"
+CLASS="section"
+><HR><H1
+CLASS="section"
+><A
+NAME="http"
+></A
+>4.2. HTTP Server Configuration</H1
><P
-></P
+>The Bugzilla Team recommends Apache when using Bugzilla, however, any web server
+ that can be configured to run <A
+HREF="#gloss-cgi"
+><I
+CLASS="glossterm"
+>CGI</I
+></A
+> scripts
+ should be able to handle Bugzilla. No matter what web server you choose, but
+ especially if you choose something other than Apache, you should be sure to read
+ <A
+HREF="#security-access"
+>Section 4.5.4</A
+>.
+ </P
+><P
+>The plan for this section is to eventually document the specifics of how to lock
+ down permissions on individual web servers.
+ </P
+><DIV
+CLASS="section"
+><HR><H2
+CLASS="section"
+><A
+NAME="http-apache"
+></A
+>4.2.1. Apache <SPAN
+CLASS="productname"
+>httpd</SPAN
+></H2
+><P
+>You will have to make sure that Apache is properly
+ configured to run the Bugzilla CGI scripts. You also need to make sure
+ that the <TT
+CLASS="filename"
+>.htaccess</TT
+> files created by
+ <B
+CLASS="command"
+>./checksetup.pl</B
+> are allowed to override Apache's normal access
+ permissions or else important password information may be exposed to the
+ Internet.
+ </P
+><P
+>You need to configure Apache to run .cgi files outside the
+ <TT
+CLASS="filename"
+>cgi-bin</TT
+> directory.
+ Open your
+ <TT
+CLASS="filename"
+>httpd.conf</TT
+> file and make sure the
+ following line exists and is uncommented:</P
><TABLE
-CLASS="note"
-WIDTH="100%"
BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
><TR
><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->Most people use <SPAN
-CLASS="QUOTE"
->"bugs"</SPAN
-> for both the user and
- database name.
- </P
+><FONT
+COLOR="#000000"
+><PRE
+CLASS="programlisting"
+>&#13;AddHandler cgi-script .cgi
+ </PRE
+></FONT
></TD
></TR
></TABLE
-></DIV
><P
->Next, we use an SQL <B
-CLASS="command"
->GRANT</B
-> command to create a
- <SPAN
-CLASS="QUOTE"
->"bugs_user"</SPAN
->
- user, and grant sufficient permissions for checksetup.pl, which we'll
- use later, to work its magic. This also restricts the
- <SPAN
-CLASS="QUOTE"
->"bugs_user"</SPAN
+>To allow <TT
+CLASS="filename"
+>.htaccess</TT
+> files to override
+ permissions and .cgi files to run in the Bugzilla directory, make sure
+ the following two lines are in a <TT
+CLASS="computeroutput"
+>Directory</TT
>
- user to operations within a database called
- <SPAN
-CLASS="QUOTE"
->"bugs_db"</SPAN
->, and only allows the account to connect from
- <SPAN
-CLASS="QUOTE"
->"localhost"</SPAN
->.
- Modify it to reflect your setup if you will be connecting from
- another machine or as a different user.</P
+ directive that applies to the Bugzilla directory on your system
+ (either the Bugzilla directory or one of its parents).
+ </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
@@ -4031,22 +4144,29 @@ WIDTH="100%"
><FONT
COLOR="#000000"
><PRE
-CLASS="screen"
->&#13;<TT
-CLASS="prompt"
->mysql&#62;</TT
-> GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,
- DROP,REFERENCES ON bugs_db.* TO bugs_user@localhost
- IDENTIFIED BY 'bugs_password';
-<TT
-CLASS="prompt"
->mysql&#62;</TT
-> FLUSH PRIVILEGES;
- </PRE
+CLASS="programlisting"
+>&#13;Options +ExecCGI
+AllowOverride Limit
+ </PRE
></FONT
></TD
></TR
></TABLE
+><P
+>You should modify the &#60;DirectoryIndex&#62; parameter for
+ the Apache virtual host running your Bugzilla installation to
+ allow <TT
+CLASS="filename"
+>index.cgi</TT
+> as the index page for a
+ directory, as well as the usual <TT
+CLASS="filename"
+>index.html</TT
+>,
+ <TT
+CLASS="filename"
+>index.htm</TT
+>, and so forth. </P
><DIV
CLASS="note"
><P
@@ -4068,16 +4188,15 @@ ALT="Note"></TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->If you are using MySQL 4, the bugs user also needs to be granted
- the <TT
-CLASS="computeroutput"
->LOCK TABLES</TT
-> and
- <TT
-CLASS="computeroutput"
->CREATE TEMPORARY TABLES</TT
-> permissions.
- </P
+>For more information on Apache and its directives, see the
+ glossary entry on <A
+HREF="#gloss-apache"
+><I
+CLASS="glossterm"
+>Apache</I
+></A
+>.
+ </P
></TD
></TR
></TABLE
@@ -4088,30 +4207,104 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN795"
+NAME="http-iis"
></A
->4.1.7. <TT
-CLASS="filename"
->checksetup.pl</TT
+>4.2.2. Microsoft <SPAN
+CLASS="productname"
+>Internet Information Services</SPAN
></H2
><P
->Next, run the magic checksetup.pl script. (Many thanks to
+>If you need, or for some reason even want, to use Microsoft's
+ <SPAN
+CLASS="productname"
+>Internet Information Services</SPAN
+> or
+ <SPAN
+CLASS="productname"
+>Personal Web Server</SPAN
+> you should be able
+ to. You will need to configure them to know how to run CGI scripts,
+ however. This is described in Microsoft Knowledge Base article
<A
-HREF="mailto:holgerschurig@nikocity.de"
+HREF="http://support.microsoft.com/support/kb/articles/Q245/2/25.asp"
TARGET="_top"
->Holger Schurig</A
->
- for writing this script!)
- This script is designed to make sure your perl modules are the correct
- version and your MySQL database and other
- configuration options are consistent with the Bugzilla CGI files.
- It will make sure Bugzilla files and directories have reasonable
- permissions, set up the
+>Q245225</A
+>
+ for <SPAN
+CLASS="productname"
+>Internet Information Services</SPAN
+> and
+ <A
+HREF="http://support.microsoft.com/support/kb/articles/Q231/9/98.asp"
+TARGET="_top"
+>Q231998</A
+>
+ for <SPAN
+CLASS="productname"
+>Personal Web Server</SPAN
+>.
+ </P
+><P
+>Also, and this can't be stressed enough, make sure that files such as
<TT
CLASS="filename"
+>localconfig</TT
+> and your <TT
+CLASS="filename"
>data</TT
>
- directory, and create all the MySQL tables.
+ directory are secured as described in <A
+HREF="#security-access"
+>Section 4.5.4</A
+>.
+ </P
+></DIV
+><DIV
+CLASS="section"
+><HR><H2
+CLASS="section"
+><A
+NAME="http-aol"
+></A
+>4.2.3. AOL Server</H2
+><P
+>Ben FrantzDale reported success using AOL Server with Bugzilla. He
+ reported his experience and what appears below is based on that.
+ </P
+><P
+>AOL Server will have to be configured to run
+ <A
+HREF="#gloss-cgi"
+><I
+CLASS="glossterm"
+>CGI</I
+></A
+> scripts, please consult
+ the documentation that came with your server for more information on
+ how to do this.
+ </P
+><P
+>Because AOL Server doesn't support <TT
+CLASS="filename"
+>.htaccess</TT
+>
+ files, you'll have to create a <A
+HREF="#gloss-tcl"
+><I
+CLASS="glossterm"
+>TCL</I
+></A
+>
+ script. You should create an <TT
+CLASS="filename"
+>aolserver/modules/tcl/filter.tcl</TT
+>
+ file (the filename shouldn't matter) with the following contents (change
+ <TT
+CLASS="computeroutput"
+>/bugzilla/</TT
+> to the web-based path to
+ your Bugzilla installation):
</P
><TABLE
BORDER="0"
@@ -4122,88 +4315,66 @@ WIDTH="100%"
><FONT
COLOR="#000000"
><PRE
-CLASS="screen"
->&#13;<TT
-CLASS="prompt"
->bash#</TT
-> ./checksetup.pl
+CLASS="programlisting"
+>&#13;ns_register_filter preauth GET /bugzilla/localconfig filter_deny
+ns_register_filter preauth GET /bugzilla/localconfig~ filter_deny
+ns_register_filter preauth GET /bugzilla/\#localconfig\# filter_deny
+ns_register_filter preauth GET /bugzilla/*.pl filter_deny
+ns_register_filter preauth GET /bugzilla/syncshadowdb filter_deny
+ns_register_filter preauth GET /bugzilla/runtests.sh filter_deny
+ns_register_filter preauth GET /bugzilla/data/* filter_deny
+ns_register_filter preauth GET /bugzilla/template/* filter_deny
+
+proc filter_deny { why } {
+ ns_log Notice "filter_deny"
+ return "filter_return"
+}
</PRE
></FONT
></TD
></TR
></TABLE
+><DIV
+CLASS="warning"
><P
->&#13; The first time you run it, it will create a file called
- <TT
-CLASS="filename"
->localconfig</TT
->.</P
-><P
->This file contains a variety of settings you may need to tweak
- including how Bugzilla should connect to the MySQL database.</P
-><P
->The connection settings include:
- <P
></P
-><OL
-TYPE="1"
-><LI
-><P
->server's host: just use
- <SPAN
-CLASS="QUOTE"
->"localhost"</SPAN
->
- if the MySQL server is local</P
-></LI
-><LI
-><P
->database name:
- <SPAN
-CLASS="QUOTE"
->"bugs_db"</SPAN
->
- if you're following these directions</P
-></LI
-><LI
-><P
->MySQL username:
- <SPAN
-CLASS="QUOTE"
->"bugs_user"</SPAN
->
- if you're following these directions</P
-></LI
-><LI
-><P
->Password for the
- <SPAN
-CLASS="QUOTE"
->"bugs_user"</SPAN
->
- MySQL account; (<SPAN
-CLASS="QUOTE"
->"bugs_password"</SPAN
-> above)</P
-></LI
-></OL
->
- </P
+><TABLE
+CLASS="warning"
+WIDTH="100%"
+BORDER="0"
+><TR
+><TD
+WIDTH="25"
+ALIGN="CENTER"
+VALIGN="TOP"
+><IMG
+SRC="../images/warning.gif"
+HSPACE="5"
+ALT="Warning"></TD
+><TD
+ALIGN="LEFT"
+VALIGN="TOP"
><P
->Once you are happy with the settings,
- <TT
-CLASS="filename"
->su</TT
-> to the user
- your web server runs as, and re-run
- <TT
+>This probably doesn't account for all possible editor backup
+ files so you may wish to add some additional variations of
+ <TT
CLASS="filename"
->checksetup.pl</TT
->. (Note: on some security-conscious
- systems, you may need to change the login shell for the webserver
- account before you can do this.)
- On this second run, it will create the database and an administrator
- account for which you will be prompted to provide information.</P
+>localconfig</TT
+>. For more information, see
+ <A
+HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=186383"
+TARGET="_top"
+>&#13; bug 186383</A
+> or <A
+HREF="http://online.securityfocus.com/bid/6501"
+TARGET="_top"
+>Bugtraq ID 6501</A
+>.
+ </P
+></TD
+></TR
+></TABLE
+></DIV
><DIV
CLASS="note"
><P
@@ -4225,31 +4396,48 @@ ALT="Note"></TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->The checksetup.pl script is designed so that you can run it at
- any time without causing harm. You should run it after any upgrade to
- Bugzilla.</P
+>If you are using webdot from research.att.com (the default
+ configuration for the <TT
+CLASS="option"
+>webdotbase</TT
+> paramater), you
+ will need to allow access to <TT
+CLASS="filename"
+>data/webdot/*.dot</TT
+>
+ for the reasearch.att.com machine.
+ </P
+><P
+>If you are using a local installation of <A
+HREF="http://www.graphviz.org"
+TARGET="_top"
+>GraphViz</A
+>, you will need to allow
+ everybody to access <TT
+CLASS="filename"
+>*.png</TT
+>,
+ <TT
+CLASS="filename"
+>*.gif</TT
+>, <TT
+CLASS="filename"
+>*.jpg</TT
+>, and
+ <TT
+CLASS="filename"
+>*.map</TT
+> in the
+ <TT
+CLASS="filename"
+>data/webdot</TT
+> directory.
+ </P
></TD
></TR
></TABLE
></DIV
></DIV
-><DIV
-CLASS="section"
-><HR><H2
-CLASS="section"
-><A
-NAME="AEN826"
-></A
->4.1.8. Configuring Bugzilla</H2
-><P
->&#13; You should run through the parameters on the Edit Parameters page
- (link in the footer) and set them all to appropriate values.
- They key parameters are documented in <A
-HREF="#parameters"
->Section 5.1</A
->.
- </P
-></DIV
></DIV
><DIV
CLASS="section"
@@ -4258,15 +4446,15 @@ CLASS="section"
><A
NAME="extraconfig"
></A
->4.2. Optional Additional Configuration</H1
+>4.3. Optional Additional Configuration</H1
><DIV
CLASS="section"
><H2
CLASS="section"
><A
-NAME="AEN832"
+NAME="AEN852"
></A
->4.2.1. Dependency Charts</H2
+>4.3.1. Dependency Charts</H2
><P
>As well as the text-based dependency graphs, Bugzilla also
supports dependency graphing, using a package called 'dot'.
@@ -4328,9 +4516,9 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN847"
+NAME="AEN867"
></A
->4.2.2. Bug Graphs</H2
+>4.3.2. Bug Graphs</H2
><P
>As long as you installed the GD and Graph::Base Perl modules you
might as well turn on the nifty Bugzilla bug reporting graphs.</P
@@ -4387,9 +4575,9 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN860"
+NAME="AEN880"
></A
->4.2.3. The Whining Cron</H2
+>4.3.3. The Whining Cron</H2
><P
>By now you have a fully functional Bugzilla, but what good are
bugs if they're not annoying? To help make those bugs more annoying you
@@ -4478,47 +4666,11 @@ CLASS="section"
><A
NAME="bzldap"
></A
->4.2.4. LDAP Authentication</H2
-><DIV
-CLASS="note"
+>4.3.4. LDAP Authentication</H2
><P
-></P
-><TABLE
-CLASS="note"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->LDAP authentication has been rewritten for the 2.18 release of
- Bugzilla. It no longer requires the Mozilla::LDAP module and now uses
- Net::LDAP instead. This rewrite was part of a larger landing that
- allowed for additional authentication schemes to be easily added
- (<A
-HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=180642"
-TARGET="_top"
->bug
- 180642</A
->).
- </P
-><P
->This patch originally landed in 21-Mar-2003 and was included
- in the 2.17.4 development release.
- </P
-></TD
-></TR
-></TABLE
-></DIV
+>LDAP authentication is a module for Bugzilla's plugin
+ authentication architecture.
+ </P
><P
>&#13; The existing authentication
scheme for Bugzilla uses email addresses as the primary user ID, and a
@@ -4728,26 +4880,26 @@ CLASS="section"
><A
NAME="content-type"
></A
->4.2.5. Preventing untrusted Bugzilla content from executing malicious
+>4.3.5. Preventing untrusted Bugzilla content from executing malicious
Javascript code</H2
><P
->It is possible for a Bugzilla to execute malicious Javascript
- code. Due to internationalization concerns, we are unable to
- incorporate the code changes necessary to fulfill the CERT advisory
- requirements mentioned in
+>It is possible for a Bugzilla attachment to contain malicious
+ Javascript
+ code, which would be executed in the domain of your Bugzilla, thereby
+ making it possible for the attacker to e.g. steal your login cookies.
+ Due to internationalization concerns, we are unable to
+ incorporate by default the code changes necessary to fulfill the CERT
+ advisory requirements mentioned in
<A
HREF="http://www.cert.org/tech_tips/malicious_code_mitigation.html/#3"
TARGET="_top"
>http://www.cert.org/tech_tips/malicious_code_mitigation.html/#3</A
>.
- Making the change below will fix the problem if your installation is for
- an English speaking audience.
+ If your installation is for an English speaking audience only, making the
+ change below will prevent this problem.
</P
><P
->Telling Bugzilla to output a charset as part of the HTTP header is
- much easier in version 2.18 and higher (including any cvs
- pull after 4-May-2003 and development release after 2.17.5) than it was
- in previous versions. Simply locate the following line in
+>Simply locate the following line in
<TT
CLASS="filename"
>Bugzilla/CGI.pm</TT
@@ -4762,8 +4914,7 @@ WIDTH="100%"
COLOR="#000000"
><PRE
CLASS="programlisting"
->&#13; # Make sure that we don't send any charset headers
- $self-&#62;charset('');
+>&#13; $self-&#62;charset('');
</PRE
></FONT
></TD
@@ -4781,8 +4932,7 @@ WIDTH="100%"
COLOR="#000000"
><PRE
CLASS="programlisting"
->&#13; # Send all data using the ISO-8859-1 charset
- $self-&#62;charset('ISO-8859-1');
+>&#13; $self-&#62;charset('ISO-8859-1');
</PRE
></FONT
></TD
@@ -4790,69 +4940,6 @@ CLASS="programlisting"
></TABLE
>
</P
-><DIV
-CLASS="note"
-><P
-></P
-><TABLE
-CLASS="note"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->Using &#60;meta&#62; tags to set the charset is not
- recommended, as there's a bug in Netscape 4.x which causes pages
- marked up in this way to load twice. See
- <A
-HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=126266"
-TARGET="_top"
->bug 126266</A
->
- for more information including progress toward making
- bugzilla charset aware by default.
- </P
-></TD
-></TR
-></TABLE
-></DIV
-></DIV
-><DIV
-CLASS="section"
-><HR><H2
-CLASS="section"
-><A
-NAME="directoryindex"
-></A
->4.2.6. <TT
-CLASS="filename"
->directoryindex</TT
-> for the Bugzilla default page.</H2
-><P
->You should modify the &#60;DirectoryIndex&#62; parameter for
- the Apache virtual host running your Bugzilla installation to
- allow <TT
-CLASS="filename"
->index.cgi</TT
-> as the index page for a
- directory, as well as the usual <TT
-CLASS="filename"
->index.html</TT
->,
- <TT
-CLASS="filename"
->index.htm</TT
->, and so forth. </P
></DIV
><DIV
CLASS="section"
@@ -4861,7 +4948,7 @@ CLASS="section"
><A
NAME="mod_perl"
></A
->4.2.7. Bugzilla and <TT
+>4.3.6. Bugzilla and <TT
CLASS="filename"
>mod_perl</TT
></H2
@@ -4878,7 +4965,7 @@ CLASS="section"
><A
NAME="mod-throttle"
></A
->4.2.8. <TT
+>4.3.7. <TT
CLASS="filename"
>mod_throttle</TT
>
@@ -4929,7 +5016,7 @@ CLASS="section"
><A
NAME="os-specific"
></A
->4.3. OS Specific Installation Notes</H1
+>4.4. OS Specific Installation Notes</H1
><P
>Many aspects of the Bugzilla installation can be affected by the
the operating system you choose to install it on. Sometimes it can be made
@@ -4952,9 +5039,9 @@ CLASS="section"
><A
NAME="os-win32"
></A
->4.3.1. Microsoft Windows</H2
+>4.4.1. Microsoft Windows</H2
><P
->Making Bugzilla work on windows is still a very painful processes.
+>Making Bugzilla work on windows is still a painful processes.
The Bugzilla Team is working to make it easier, but that goal is not
considered a top priority. If you wish to run Bugzilla, we still
recommend doing so on a Unix based system such as GNU/Linux. As of this
@@ -4978,7 +5065,7 @@ CLASS="section"
><A
NAME="win32-perl"
></A
->4.3.1.1. Win32 Perl</H3
+>4.4.1.1. Win32 Perl</H3
><P
>Perl for Windows can be obtained from <A
HREF="http://www.activestate.com/"
@@ -4999,12 +5086,12 @@ CLASS="section"
><A
NAME="win32-perlmodules"
></A
->4.3.1.2. Perl Modules on Win32</H3
+>4.4.1.2. Perl Modules on Win32</H3
><P
>Bugzilla on Windows requires the same perl modules found in
<A
HREF="#install-perlmodules"
->Section 4.1.3</A
+>Section 4.1.5</A
>. The main difference is that
windows uses <A
HREF="#gloss-ppm"
@@ -5111,18 +5198,11 @@ CLASS="section"
><A
NAME="win32-code-changes"
></A
->4.3.1.3. Code changes required to run on win32</H3
+>4.4.1.3. Code changes required to run on win32</H3
><P
->Unfortunately, Bugzilla still doesn't run "out of the box" on
- Windows. There is work in progress to make this easier, but until that
- happens code will have to be modified. This section is an attempt to
- list the required changes. It is an attempt to be all inclusive, but
- there may be other changes required. If you find something is missing,
- please file a bug in <A
-HREF="http://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla&component=Documentation"
-TARGET="_top"
->Bugzilla Documentation</A
->.
+>As Bugzilla still doesn't run "out of the box" on
+ Windows, code has to be modified. This section is an attempt to
+ list the required changes.
</P
><DIV
CLASS="section"
@@ -5131,7 +5211,7 @@ CLASS="section"
><A
NAME="win32-code-checksetup"
></A
->4.3.1.3.1. Changes to <TT
+>4.4.1.3.1. Changes to <TT
CLASS="filename"
>checksetup.pl</TT
></H4
@@ -5218,7 +5298,7 @@ CLASS="section"
><A
NAME="win32-code-bugmail"
></A
->4.3.1.3.2. Changes to <TT
+>4.4.1.3.2. Changes to <TT
CLASS="filename"
>BugMail.pm</TT
></H4
@@ -5230,11 +5310,8 @@ TARGET="_top"
>bug
84876</A
> lands), the
- simplest way is to have Net::SMTP installed and change this (in
- <TT
-CLASS="filename"
->Bugzilla/BugMail.pm</TT
->):</P
+ simplest way is to have the Net::SMTP Perl module installed and
+ change this:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
@@ -5299,19 +5376,19 @@ CLASS="section"
><A
NAME="win32-http"
></A
->4.3.1.4. Serving the web pages</H3
+>4.4.1.4. Serving the web pages</H3
><P
>As is the case on Unix based systems, any web server should be
able to handle Bugzilla; however, the Bugzilla Team still recommends
Apache whenever asked. No matter what web server you choose, be sure
to pay attention to the security notes in <A
HREF="#security-access"
->Section 5.6.4</A
+>Section 4.5.4</A
>.
More information on configuring specific web servers can be found in
<A
HREF="#http"
->Section 4.4</A
+>Section 4.2</A
>.
</P
><DIV
@@ -5360,7 +5437,7 @@ CLASS="section"
><A
NAME="os-macosx"
></A
->4.3.2. <SPAN
+>4.4.2. <SPAN
CLASS="productname"
>Mac OS X</SPAN
></H2
@@ -5554,7 +5631,7 @@ CLASS="section"
><A
NAME="os-mandrake"
></A
->4.3.3. Linux-Mandrake 8.0</H2
+>4.4.3. Linux-Mandrake 8.0</H2
><P
>Linux-Mandrake 8.0 includes every required and optional library
for Bugzilla. The easiest way to install them is by using the
@@ -5652,87 +5729,105 @@ CLASS="section"
><HR><H1
CLASS="section"
><A
-NAME="http"
+NAME="security"
></A
->4.4. HTTP Server Configuration</H1
+>4.5. Bugzilla Security</H1
+><DIV
+CLASS="warning"
><P
->The Bugzilla Team recommends Apache when using Bugzilla, however, any web server
- that can be configured to run <A
-HREF="#gloss-cgi"
-><I
-CLASS="glossterm"
->CGI</I
+></P
+><TABLE
+CLASS="warning"
+WIDTH="100%"
+BORDER="0"
+><TR
+><TD
+WIDTH="25"
+ALIGN="CENTER"
+VALIGN="TOP"
+><IMG
+SRC="../images/warning.gif"
+HSPACE="5"
+ALT="Warning"></TD
+><TD
+ALIGN="LEFT"
+VALIGN="TOP"
+><P
+>Poorly-configured MySQL and Bugzilla installations have
+ given attackers full access to systems in the past. Please take these
+ guidelines seriously, even for Bugzilla machines hidden away behind
+ your firewall. 80% of all computer trespassers are insiders, not
+ anonymous crackers.</P
+><P
+>This is not meant to be a comprehensive list of every possible
+ security issue pertaining to the software mentioned in this section.
+ There is
+ no subsitute for reading the information written by the authors of any
+ software running on your system.
+ </P
+></TD
+></TR
+></TABLE
+></DIV
+><DIV
+CLASS="section"
+><HR><H2
+CLASS="section"
+><A
+NAME="security-networking"
></A
-> scripts
- should be able to handle Bugzilla. No matter what web server you choose, but
- especially if you choose something other than Apache, you should be sure to read
- <A
-HREF="#security-access"
->Section 5.6.4</A
->.
- </P
+>4.5.1. TCP/IP Ports</H2
><P
->The plan for this section is to eventually document the specifics of how to lock
- down permissions on individual web servers.
- </P
+>TCP/IP defines 65,000 some ports for trafic. Of those, Bugzilla
+ only needs 1, or 2 if you need to use features that require e-mail such
+ as bug moving or the e-mail interface from contrib. You should audit
+ your server and make sure that you aren't listening on any ports you
+ don't need to be. You may also wish to use some kind of firewall
+ software to be sure that trafic can only be recieved on ports you
+ specify.
+ </P
+></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="http-apache"
+NAME="security-mysql"
></A
->4.4.1. Apache <SPAN
-CLASS="productname"
->httpd</SPAN
-></H2
+>4.5.2. MySQL</H2
><P
->As mentioned above, the Bugzilla Team recommends Apache for use
- with Bugzilla. You will have to make sure that Apache is properly
- configured to run the Bugzilla CGI scripts. You also need to make sure
- that the <TT
-CLASS="filename"
->.htaccess</TT
-> files created by
- <B
-CLASS="command"
->./checksetup.pl</B
-> (shown in <A
-HREF="#http-apache-htaccess"
->Example 4-2</A
->
- for the curious) are allowed to override Apache's normal access
- permissions or else important password information may be exposed to the
- Internet.
+>MySQL ships by default with many settings that should be changed.
+ By defaults it allows anybody to connect from localhost without a
+ password and have full administrative capabilities. It also defaults to
+ not have a root password (this is <EM
+>not</EM
+> the same as
+ the system root). Also, many installations default to running
+ <SPAN
+CLASS="application"
+>mysqld</SPAN
+> as the system root.
</P
><P
->Many Apache installations are not configured to run scripts
- anywhere but in the <TT
-CLASS="filename"
->cgi-bin</TT
->
- directory; however, we recommend that Bugzilla not be installed in the
- <TT
-CLASS="filename"
->cgi-bin</TT
->, otherwise the static
- files such as images and <A
-HREF="#gloss-javascript"
-><I
-CLASS="glossterm"
->JavaScript</I
-></A
->
- will not work correctly. To allow scripts to run in the normal
- web space, the following changes should be made to your
- <TT
-CLASS="filename"
->httpd.conf</TT
-> file.
- </P
+></P
+><OL
+TYPE="1"
+><LI
><P
->To allow files with a .cgi extension to be run, make sure the
- following line exists and is uncommented:</P
+>Consult the documentation that came with your system for
+ information on making <SPAN
+CLASS="application"
+>mysqld</SPAN
+> run as an
+ unprivleged user.
+ </P
+></LI
+><LI
+><P
+>You should also be sure to disable the anonymous user account
+ and set a password for the root user. This is accomplished using the
+ following commands:
+ </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
@@ -5743,25 +5838,56 @@ WIDTH="100%"
COLOR="#000000"
><PRE
CLASS="programlisting"
->&#13;AddHandler cgi-script .cgi
- </PRE
+>&#13;<TT
+CLASS="prompt"
+>bash$</TT
+> mysql mysql
+<TT
+CLASS="prompt"
+>mysql&#62;</TT
+> DELETE FROM user WHERE user = '';
+<TT
+CLASS="prompt"
+>mysql&#62;</TT
+> UPDATE user SET password = password('<TT
+CLASS="replaceable"
+><I
+>new_password</I
+></TT
+>') WHERE user = 'root';
+<TT
+CLASS="prompt"
+>mysql&#62;</TT
+> FLUSH PRIVILEGES;
+ </PRE
></FONT
></TD
></TR
></TABLE
><P
->To allow <TT
+>From this point forward you will need to use
+ <B
+CLASS="command"
+>mysql -u root -p</B
+> and enter
+ <TT
+CLASS="replaceable"
+><I
+>new_password</I
+></TT
+> when prompted when using the
+ mysql client.
+ </P
+></LI
+><LI
+><P
+>If you run MySQL on the same machine as your httpd server, you
+ should consider disabling networking from within MySQL by adding
+ the following to your <TT
CLASS="filename"
->.htaccess</TT
-> files to override
- permissions and .cgi files to run in the Bugzilla directory, make sure
- the following two lines are in a <TT
-CLASS="computeroutput"
->Directory</TT
->
- directive that applies to the Bugzilla directory on your system
- (either the Bugzilla directory or one of its parents).
- </P
+>/etc/my.conf</TT
+>:
+ </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
@@ -5772,13 +5898,57 @@ WIDTH="100%"
COLOR="#000000"
><PRE
CLASS="programlisting"
->&#13;Options +ExecCGI
-AllowOverride Limit
- </PRE
+>&#13;[myslqd]
+# Prevent network access to MySQL.
+skip-networking
+ </PRE
></FONT
></TD
></TR
></TABLE
+></LI
+><LI
+><P
+>You may also consider running MySQL, or even all of Bugzilla
+ in a chroot jail; however, instructions for doing that are beyond
+ the scope of this document.
+ </P
+></LI
+></OL
+></DIV
+><DIV
+CLASS="section"
+><HR><H2
+CLASS="section"
+><A
+NAME="security-daemon"
+></A
+>4.5.3. Daemon Accounts</H2
+><P
+>Many daemons, such as Apache's httpd and MySQL's mysqld default to
+ running as either <SPAN
+CLASS="QUOTE"
+>"root"</SPAN
+> or <SPAN
+CLASS="QUOTE"
+>"nobody"</SPAN
+>. Running
+ as <SPAN
+CLASS="QUOTE"
+>"root"</SPAN
+> introduces obvious security problems, but the
+ problems introduced by running everything as <SPAN
+CLASS="QUOTE"
+>"nobody"</SPAN
+> may
+ not be so obvious. Basically, if you're running every daemon as
+ <SPAN
+CLASS="QUOTE"
+>"nobody"</SPAN
+> and one of them gets compromised, they all get
+ compromised. For this reason it is recommended that you create a user
+ account for each daemon.
+ </P
><DIV
CLASS="note"
><P
@@ -5800,317 +5970,251 @@ ALT="Note"></TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->For more information on Apache and its directives, see the
- glossary entry on <A
-HREF="#gloss-apache"
-><I
-CLASS="glossterm"
->Apache</I
-></A
->.
- </P
+>You will need to set the <TT
+CLASS="varname"
+>webservergroup</TT
+> to
+ the group you created for your webserver to run as in
+ <TT
+CLASS="filename"
+>localconfig</TT
+>. This will allow
+ <B
+CLASS="command"
+>./checksetup.pl</B
+> to better adjust the file
+ permissions on your Bugzilla install so as to not require making
+ anything world-writable.
+ </P
></TD
></TR
></TABLE
></DIV
+></DIV
><DIV
-CLASS="example"
+CLASS="section"
+><HR><H2
+CLASS="section"
><A
-NAME="http-apache-htaccess"
+NAME="security-access"
></A
+>4.5.4. Web Server Access Controls</H2
+><P
+>There are many files that are placed in the Bugzilla directory
+ area that should not be accessable from the web. Because of the way
+ Bugzilla is currently laid out, the list of what should and should
+ not be accessible is rather complicated.
+ </P
+><P
+>Users of Apache don't need to worry about this, however, because
+ Bugzilla ships with .htaccess files which restrict access to all the
+ sensitive files in this section. Users of other webservers, read on.
+ </P
><P
-><B
->Example 4-2. <TT
-CLASS="filename"
->.htaccess</TT
-> files for Apache</B
></P
+><UL
+COMPACT="COMPACT"
+><LI
><P
-><TT
+>In the main Bugzilla directory, you should:</P
+><P
+></P
+><UL
+COMPACT="COMPACT"
+><LI
+><P
+>Block:
+ <TT
CLASS="filename"
->$BUGZILLA_HOME/.htaccess</TT
+>*.pl</TT
+>, <TT
+CLASS="filename"
+>*localconfig*</TT
+>, <TT
+CLASS="filename"
+>runtests.sh</TT
>
- <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;# don't allow people to retrieve non-cgi executable files or our private data
-&#60;FilesMatch ^(.*\.pl|.*localconfig.*|runtests.sh)$&#62;
- deny from all
-&#60;/FilesMatch&#62;
-&#60;FilesMatch ^(localconfig.js|localconfig.rdf)$&#62;
- allow from all
-&#60;/FilesMatch&#62;
- </PRE
-></FONT
-></TD
-></TR
-></TABLE
->
- </P
+ </P
+></LI
+><LI
><P
-><TT
+>But allow:
+ <TT
CLASS="filename"
->$BUGZILLA_HOME/data/.htaccess</TT
->
- <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;# nothing in this directory is retrievable unless overriden by an .htaccess
-# in a subdirectory; the only exception is duplicates.rdf, which is used by
-# duplicates.xul and must be loadable over the web
-deny from all
-&#60;Files duplicates.rdf&#62;
- allow from all
-&#60;/Files&#62;
- </PRE
-></FONT
-></TD
-></TR
-></TABLE
+>localconfig.js</TT
+>, <TT
+CLASS="filename"
+>localconfig.rdf</TT
>
- </P
+ </P
+></LI
+></UL
+></LI
+><LI
><P
-><TT
+>In <TT
CLASS="filename"
->$BUGZILLA_HOME/data/webdot</TT
->
- <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;# Restrict access to .dot files to the public webdot server at research.att.com
-# if research.att.com ever changed their IP, or if you use a different
-# webdot server, you'll need to edit this
-&#60;FilesMatch ^[0-9]+\.dot$&#62;
- Allow from 192.20.225.10
- Deny from all
-&#60;/FilesMatch&#62;
-
-# Allow access by a local copy of 'dot' to .png, .gif, .jpg, and
-# .map files
-&#60;FilesMatch ^[0-9]+\.(png|gif|jpg|map)$&#62;
- Allow from all
-&#60;/FilesMatch&#62;
-
-# And no directory listings, either.
-Deny from all
- </PRE
-></FONT
-></TD
-></TR
-></TABLE
->
- </P
+>data</TT
+>:</P
><P
-><TT
+></P
+><UL
+COMPACT="COMPACT"
+><LI
+><P
+>Block everything</P
+></LI
+><LI
+><P
+>But allow:
+ <TT
CLASS="filename"
->$BUGZILLA_HOME/Bugzilla/.htaccess</TT
->
- <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;# nothing in this directory is retrievable unless overriden by an .htaccess
-# in a subdirectory
-deny from all
- </PRE
-></FONT
-></TD
-></TR
-></TABLE
+>duplicates.rdf</TT
>
- </P
+ </P
+></LI
+></UL
+></LI
+><LI
><P
-><TT
+>In <TT
CLASS="filename"
->$BUGZILLA_HOME/template/.htaccess</TT
->
- <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;# nothing in this directory is retrievable unless overriden by an .htaccess
-# in a subdirectory
-deny from all
- </PRE
-></FONT
-></TD
-></TR
-></TABLE
->
- </P
-></DIV
-></DIV
-><DIV
-CLASS="section"
-><HR><H2
-CLASS="section"
-><A
-NAME="http-iis"
-></A
->4.4.2. Microsoft <SPAN
-CLASS="productname"
->Internet Information Services</SPAN
-></H2
+>data/webdot</TT
+>:</P
><P
->If you need, or for some reason even want, to use Microsoft's
- <SPAN
-CLASS="productname"
->Internet Information Services</SPAN
-> or
- <SPAN
-CLASS="productname"
->Personal Web Server</SPAN
-> you should be able
- to. You will need to configure them to know how to run CGI scripts,
- however. This is described in Microsoft Knowledge Base article
- <A
-HREF="http://support.microsoft.com/support/kb/articles/Q245/2/25.asp"
-TARGET="_top"
->Q245225</A
+></P
+><UL
+COMPACT="COMPACT"
+><LI
+><P
+>If you use a remote webdot server:</P
+><P
+></P
+><UL
+COMPACT="COMPACT"
+><LI
+><P
+>Block everything</P
+></LI
+><LI
+><P
+>But allow
+ <TT
+CLASS="filename"
+>*.dot</TT
>
- for <SPAN
-CLASS="productname"
->Internet Information Services</SPAN
-> and
- <A
-HREF="http://support.microsoft.com/support/kb/articles/Q231/9/98.asp"
-TARGET="_top"
->Q231998</A
->
- for <SPAN
-CLASS="productname"
->Personal Web Server</SPAN
->.
- </P
+ only for the remote webdot server</P
+></LI
+></UL
+></LI
+><LI
><P
->Also, and this can't be stressed enough, make sure that files such as
- <TT
+>Otherwise, if you use a local GraphViz:</P
+><P
+></P
+><UL
+COMPACT="COMPACT"
+><LI
+><P
+>Block everything</P
+></LI
+><LI
+><P
+>But allow:
+ <TT
CLASS="filename"
->localconfig</TT
-> and your <TT
+>*.png</TT
+>, <TT
CLASS="filename"
->data</TT
+>*.gif</TT
+>, <TT
+CLASS="filename"
+>*.jpg</TT
+>, <TT
+CLASS="filename"
+>*.map</TT
>
- directory are secured as described in <A
-HREF="#security-access"
->Section 5.6.4</A
->.
- </P
-></DIV
-><DIV
-CLASS="section"
-><HR><H2
-CLASS="section"
-><A
-NAME="http-aol"
-></A
->4.4.3. AOL Server</H2
+ </P
+></LI
+></UL
+></LI
+><LI
><P
->Ben FrantzDale reported success using AOL Server with Bugzilla. He
- reported his experience and what appears below is based on that.
- </P
+>And if you don't use any dot:</P
><P
->AOL Server will have to be configured to run
- <A
-HREF="#gloss-cgi"
-><I
-CLASS="glossterm"
->CGI</I
-></A
-> scripts, please consult
- the documentation that came with your server for more information on
- how to do this.
- </P
+></P
+><UL
+COMPACT="COMPACT"
+><LI
><P
->Because AOL Server doesn't support <TT
+>Block everything</P
+></LI
+></UL
+></LI
+></UL
+></LI
+><LI
+><P
+>In <TT
CLASS="filename"
->.htaccess</TT
->
- files, you'll have to create a <A
-HREF="#gloss-tcl"
-><I
-CLASS="glossterm"
->TCL</I
-></A
->
- script. You should create an <TT
+>Bugzilla</TT
+>:</P
+><P
+></P
+><UL
+COMPACT="COMPACT"
+><LI
+><P
+>Block everything</P
+></LI
+></UL
+></LI
+><LI
+><P
+>In <TT
CLASS="filename"
->aolserver/modules/tcl/filter.tcl</TT
->
- file (the filename shouldn't matter) with the following contents (change
+>template</TT
+>:</P
+><P
+></P
+><UL
+COMPACT="COMPACT"
+><LI
+><P
+>Block everything</P
+></LI
+></UL
+></LI
+></UL
+><P
+>You should test to make sure that the files mentioned above are
+ not accessible from the Internet, especially your
<TT
-CLASS="computeroutput"
->/bugzilla/</TT
-> to the web-based path to
- your Bugzilla installation):
+CLASS="filename"
+>localconfig</TT
+> file which contains your database
+ password. To test, simply point your web browser at the file; for
+ example, to test mozilla.org's installation, we'd try to access
+ <A
+HREF="http://bugzilla.mozilla.org/localconfig"
+TARGET="_top"
+>http://bugzilla.mozilla.org/localconfig</A
+>. You should
+ get a <SPAN
+CLASS="errorcode"
+>403</SPAN
+> <SPAN
+CLASS="errorname"
+>Forbidden</SPAN
+>
+ error.
</P
-><TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;ns_register_filter preauth GET /bugzilla/localconfig filter_deny
-ns_register_filter preauth GET /bugzilla/localconfig~ filter_deny
-ns_register_filter preauth GET /bugzilla/\#localconfig\# filter_deny
-ns_register_filter preauth GET /bugzilla/*.pl filter_deny
-ns_register_filter preauth GET /bugzilla/syncshadowdb filter_deny
-ns_register_filter preauth GET /bugzilla/runtests.sh filter_deny
-ns_register_filter preauth GET /bugzilla/data/* filter_deny
-ns_register_filter preauth GET /bugzilla/template/* filter_deny
-
-proc filter_deny { why } {
- ns_log Notice "filter_deny"
- return "filter_return"
-}
- </PRE
-></FONT
-></TD
-></TR
-></TABLE
><DIV
-CLASS="warning"
+CLASS="caution"
><P
></P
><TABLE
-CLASS="warning"
+CLASS="caution"
WIDTH="100%"
BORDER="0"
><TR
@@ -6119,39 +6223,27 @@ WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
-SRC="../images/warning.gif"
+SRC="../images/caution.gif"
HSPACE="5"
-ALT="Warning"></TD
+ALT="Caution"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->This probably doesn't account for all possible editor backup
- files so you may wish to add some additional variations of
- <TT
-CLASS="filename"
->localconfig</TT
->. For more information, see
- <A
-HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=186383"
-TARGET="_top"
->&#13; bug 186383</A
-> or <A
-HREF="http://online.securityfocus.com/bid/6501"
-TARGET="_top"
->Bugtraq ID 6501</A
->.
+>Not following the instructions in this section, including
+ testing, may result in sensitive information being globally
+ accessible.
</P
></TD
></TR
></TABLE
></DIV
><DIV
-CLASS="note"
+CLASS="tip"
><P
></P
><TABLE
-CLASS="note"
+CLASS="tip"
WIDTH="100%"
BORDER="0"
><TR
@@ -6160,49 +6252,20 @@ WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
-SRC="../images/note.gif"
+SRC="../images/tip.gif"
HSPACE="5"
-ALT="Note"></TD
+ALT="Tip"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->If you are using webdot from research.att.com (the default
- configuration for the <TT
-CLASS="option"
->webdotbase</TT
-> paramater), you
- will need to allow access to <TT
-CLASS="filename"
->data/webdot/*.dot</TT
->
- for the reasearch.att.com machine.
- </P
-><P
->If you are using a local installation of <A
-HREF="http://www.graphviz.org"
-TARGET="_top"
->GraphViz</A
->, you will need to allow
- everybody to access <TT
-CLASS="filename"
->*.png</TT
->,
- <TT
-CLASS="filename"
->*.gif</TT
->, <TT
-CLASS="filename"
->*.jpg</TT
->, and
- <TT
-CLASS="filename"
->*.map</TT
-> in the
- <TT
-CLASS="filename"
->data/webdot</TT
-> directory.
+>You should check <A
+HREF="#http"
+>Section 4.2</A
+> to see if instructions
+ have been included for your web server. You should also compare those
+ instructions with this list to make sure everything is properly
+ accounted for.
</P
></TD
></TR
@@ -6217,7 +6280,7 @@ CLASS="section"
><A
NAME="troubleshooting"
></A
->4.5. Troubleshooting</H1
+>4.6. Troubleshooting</H1
><P
>This section gives solutions to common Bugzilla installation
problems.
@@ -6227,9 +6290,9 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN1157"
+NAME="AEN1215"
></A
->4.5.1. Bundle::Bugzilla makes me upgrade to Perl 5.6.1</H2
+>4.6.1. Bundle::Bugzilla makes me upgrade to Perl 5.6.1</H2
><P
>&#13; Try executing <B
CLASS="command"
@@ -6252,9 +6315,9 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN1162"
+NAME="AEN1220"
></A
->4.5.2. DBD::Sponge::db prepare failed</H2
+>4.6.2. DBD::Sponge::db prepare failed</H2
><P
>&#13; The following error message may appear due to a bug in DBD::mysql
(over which the Bugzilla team have no control):
@@ -6340,7 +6403,7 @@ CLASS="section"
><A
NAME="paranoid-security"
></A
->4.5.3. cannot chdir(/var/spool/mqueue)</H2
+>4.6.3. cannot chdir(/var/spool/mqueue)</H2
><P
>If you are installing Bugzilla on SuSE Linux, or some other
distributions with
@@ -6398,7 +6461,7 @@ CLASS="section"
><A
NAME="trouble-filetemp"
></A
->4.5.4. Your vendor has not defined Fcntl macro O_NOINHERIT</H2
+>4.6.4. Your vendor has not defined Fcntl macro O_NOINHERIT</H2
><P
>This is caused by a bug in the version of
<SPAN
@@ -6607,7 +6670,7 @@ CLASS="command"
standard type, and Bugzilla does not yet take advantage of features
such as transactions which would justify this speed decrease. The
Bugzilla team are, however, happy to hear about any experiences with
- row level locking and Bugzilla</P
+ row level locking and Bugzilla.</P
><P
>The <SPAN
CLASS="QUOTE"
@@ -6620,7 +6683,7 @@ CLASS="QUOTE"
an enormous performance improvement when implemented on extremely
high-traffic Bugzilla databases.</P
><P
->&#13; As a guide, mozilla.org began needing
+>&#13; As a guide, on reasonably old hardware, mozilla.org began needing
<SPAN
CLASS="QUOTE"
>"shadowdb"</SPAN
@@ -7017,7 +7080,7 @@ ALT="Warning"></TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->Don't disable the administrator account!</P
+>Don't disable all the administrator accounts!</P
></TD
></TR
></TABLE
@@ -7159,37 +7222,29 @@ CLASS="section"
><HR><H1
CLASS="section"
><A
-NAME="programadmin"
-></A
->5.3. Product, Component, Milestone, and Version Administration</H1
-><DIV
-CLASS="section"
-><H2
-CLASS="section"
-><A
NAME="products"
></A
->5.3.1. Products</H2
+>5.3. Products</H1
><P
->&#13; <A
+>&#13; <A
HREF="#gloss-product"
><I
CLASS="glossterm"
->&#13; Products</I
+>&#13; Products</I
></A
>
- are the broadest category in Bugzilla, and tend to represent real-world
- shipping products. E.g. if your company makes computer games,
- you should have one product per game, perhaps a "Common" product for
- units of technology used in multiple games, and maybe a few special
- products (Website, Administration...)</P
+ are the broadest category in Bugzilla, and tend to represent real-world
+ shipping products. E.g. if your company makes computer games,
+ you should have one product per game, perhaps a "Common" product for
+ units of technology used in multiple games, and maybe a few special
+ products (Website, Administration...)</P
><P
>Many of Bugzilla's settings are configurable on a per-product
- basis. The number of "votes" available to users is set per-product,
- as is the number of votes
- required to move a bug automatically from the UNCONFIRMED status to the
- NEW status.</P
+ basis. The number of "votes" available to users is set per-product,
+ as is the number of votes
+ required to move a bug automatically from the UNCONFIRMED status to the
+ NEW status.</P
><P
>To create a new product:</P
><P
@@ -7207,46 +7262,46 @@ TYPE="1"
><LI
><P
>Enter the name of the product and a description. The
- Description field may contain HTML.</P
+ Description field may contain HTML.</P
></LI
></OL
><P
>Don't worry about the "Closed for bug entry", "Maximum Votes
- per person", "Maximum votes a person can put on a single bug",
- "Number of votes a bug in this Product needs to automatically get out
- of the UNCOMFIRMED state", and "Version" options yet. We'll cover
- those in a few moments.
- </P
+ per person", "Maximum votes a person can put on a single bug",
+ "Number of votes a bug in this Product needs to automatically get out
+ of the UNCOMFIRMED state", and "Version" options yet. We'll cover
+ those in a few moments.
+ </P
></DIV
><DIV
CLASS="section"
-><HR><H2
+><HR><H1
CLASS="section"
><A
NAME="components"
></A
->5.3.2. Components</H2
+>5.4. Components</H1
><P
>Components are subsections of a Product. E.g. the computer game
- you are designing may have a "UI"
- component, an "API" component, a "Sound System" component, and a
- "Plugins" component, each overseen by a different programmer. It
- often makes sense to divide Components in Bugzilla according to the
- natural divisions of responsibility within your Product or
- company.</P
-><P
->&#13; Each component has a owner and (if you turned it on in the parameters),
- a QA Contact. The owner should be the primary person who fixes bugs in
- that component. The QA Contact should be the person who will ensure
- these bugs are completely fixed. The Owner, QA Contact, and Reporter
- will get email when new bugs are created in this Component and when
- these bugs change. Default Owner and Default QA Contact fields only
- dictate the
- <EM
+ you are designing may have a "UI"
+ component, an "API" component, a "Sound System" component, and a
+ "Plugins" component, each overseen by a different programmer. It
+ often makes sense to divide Components in Bugzilla according to the
+ natural divisions of responsibility within your Product or
+ company.</P
+><P
+>&#13; Each component has a owner and (if you turned it on in the parameters),
+ a QA Contact. The owner should be the primary person who fixes bugs in
+ that component. The QA Contact should be the person who will ensure
+ these bugs are completely fixed. The Owner, QA Contact, and Reporter
+ will get email when new bugs are created in this Component and when
+ these bugs change. Default Owner and Default QA Contact fields only
+ dictate the
+ <EM
>default assignments</EM
>;
- these can be changed on bug submission, or at any later point in
- a bug's life.</P
+ these can be changed on bug submission, or at any later point in
+ a bug's life.</P
><P
>To create a new Component:</P
><P
@@ -7256,7 +7311,7 @@ TYPE="1"
><LI
><P
>Select the "Edit components" link from the "Edit product"
- page</P
+ page</P
></LI
><LI
><P
@@ -7265,28 +7320,28 @@ TYPE="1"
><LI
><P
>Fill out the "Component" field, a short "Description",
- the "Initial Owner" and "Initial QA Contact" (if enabled.)
- The Component and Description fields may contain HTML;
- the "Initial Owner" field must be a login name
- already existing in the database.
- </P
+ the "Initial Owner" and "Initial QA Contact" (if enabled.)
+ The Component and Description fields may contain HTML;
+ the "Initial Owner" field must be a login name
+ already existing in the database.
+ </P
></LI
></OL
></DIV
><DIV
CLASS="section"
-><HR><H2
+><HR><H1
CLASS="section"
><A
NAME="versions"
></A
->5.3.3. Versions</H2
+>5.5. Versions</H1
><P
>Versions are the revisions of the product, such as "Flinders
- 3.1", "Flinders 95", and "Flinders 2000". Version is not a multi-select
- field; the usual practice is to select the most recent version with
- the bug.
- </P
+ 3.1", "Flinders 95", and "Flinders 2000". Version is not a multi-select
+ field; the usual practice is to select the earliest version known to have
+ the bug.
+ </P
><P
>To create and edit Versions:</P
><P
@@ -7300,27 +7355,27 @@ TYPE="1"
><LI
><P
>You will notice that the product already has the default
- version "undefined". Click the "Add" link in the bottom right.</P
+ version "undefined". Click the "Add" link in the bottom right.</P
></LI
><LI
><P
>Enter the name of the Version. This field takes text only.
- Then click the "Add" button.</P
+ Then click the "Add" button.</P
></LI
></OL
></DIV
><DIV
CLASS="section"
-><HR><H2
+><HR><H1
CLASS="section"
><A
NAME="milestones"
></A
->5.3.4. Milestones</H2
+>5.6. Milestones</H1
><P
>Milestones are "targets" that you plan to get a bug fixed by. For
- example, you have a bug that you plan to fix for your 3.0 release, it
- would be assigned the milestone of 3.0.</P
+ example, you have a bug that you plan to fix for your 3.0 release, it
+ would be assigned the milestone of 3.0.</P
><DIV
CLASS="note"
><P
@@ -7343,15 +7398,15 @@ ALIGN="LEFT"
VALIGN="TOP"
><P
>Milestone options will only appear for a Product if you turned
- on the "usetargetmilestone" Param in the "Edit Parameters" screen.
- </P
+ on the "usetargetmilestone" Param in the "Edit Parameters" screen.
+ </P
></TD
></TR
></TABLE
></DIV
><P
>To create new Milestones, set Default Milestones, and set
- Milestone URL:</P
+ Milestone URL:</P
><P
></P
><OL
@@ -7363,55 +7418,25 @@ TYPE="1"
><LI
><P
>Select "Add" in the bottom right corner.
- text</P
+ text</P
></LI
><LI
><P
>Enter the name of the Milestone in the "Milestone" field. You
- can optionally set the "sortkey", which is a positive or negative
- number (-255 to 255) that defines where in the list this particular
- milestone appears. This is because milestones often do not
- occur in alphanumeric order For example, "Future" might be
- after "Release 1.2". Select "Add".</P
+ can optionally set the "sortkey", which is a positive or negative
+ number (-255 to 255) that defines where in the list this particular
+ milestone appears. This is because milestones often do not
+ occur in alphanumeric order For example, "Future" might be
+ after "Release 1.2". Select "Add".</P
></LI
><LI
><P
>From the Edit product screen, you can enter the URL of a
- page which gives information about your milestones and what
- they mean. </P
-><DIV
-CLASS="tip"
-><P
-></P
-><TABLE
-CLASS="tip"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/tip.gif"
-HSPACE="5"
-ALT="Tip"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->If you want your milestone document to be restricted so
- that it can only be viewed by people in a particular Bugzilla
- group, the best way is to attach the document to a bug in that
- group, and make the URL the URL of that attachment.</P
-></TD
-></TR
-></TABLE
-></DIV
+ page which gives information about your milestones and what
+ they mean. </P
></LI
></OL
></DIV
-></DIV
><DIV
CLASS="section"
><HR><H1
@@ -7419,7 +7444,7 @@ CLASS="section"
><A
NAME="voting"
></A
->5.4. Voting</H1
+>5.7. Voting</H1
><P
>Voting allows users to be given a pot of votes which they can allocate
to bugs, to indicate that they'd like them fixed.
@@ -7481,7 +7506,7 @@ CLASS="section"
><A
NAME="groups"
></A
->5.5. Groups and Group Security</H1
+>5.8. Groups and Group Security</H1
><P
>Groups allow the administrator
to isolate bugs or products that should only be seen by certain people.
@@ -7620,9 +7645,10 @@ ALT="Warning"></TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->The User Regexp is a perl regexp and, if not anchored, will match
- any part of an address. So, if you do not want to grant access
- into 'mycompany.com' to 'badperson@mycompany.com.hacker.net', use
+>If specifying a domain in the regexp, make sure you end
+ the regexp with a $. Otherwise, when granting access to
+ "@mycompany\.com", you will allow access to
+ 'badperson@mycompany.com.cracker.net'. You need to use
'@mycompany\.com$' as the regexp.</P
></TD
></TR
@@ -7661,9 +7687,9 @@ CLASS="section"
><HR><H1
CLASS="section"
><A
-NAME="security"
+NAME="upgrading"
></A
->5.6. Bugzilla Security</H1
+>5.9. Upgrading to New Releases</H1
><DIV
CLASS="warning"
><P
@@ -7685,54 +7711,117 @@ ALT="Warning"></TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->Poorly-configured MySQL and Bugzilla installations have
- given attackers full access to systems in the past. Please take these
- guidelines seriously, even for Bugzilla machines hidden away behind
- your firewall. 80% of all computer trespassers are insiders, not
- anonymous crackers.</P
+>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.
+ </P
></TD
></TR
></TABLE
></DIV
-><DIV
-CLASS="note"
+><P
+>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.
+ </P
><P
></P
-><TABLE
-CLASS="note"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
+><UL
+><LI
><P
->These instructions must, of necessity, be somewhat vague since
- Bugzilla runs on so many different platforms. If you have refinements
- of these directions, please submit a bug to <A
-HREF="http://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla&component=Documentation"
-TARGET="_top"
->Bugzilla Documentation</A
->.
- </P
-></TD
-></TR
-></TABLE
-></DIV
+>If the new version is a revision or a new point release</P
+></LI
+><LI
+><P
+>How many, if any, local changes have been made</P
+></LI
+></UL
+><P
+>There are also three different methods to upgrade your installation.
+ </P
+><P
+></P
+><OL
+TYPE="1"
+><LI
+><P
+>Using CVS (<A
+HREF="#upgrade-cvs"
+>Example 5-1</A
+>)</P
+></LI
+><LI
+><P
+>Downloading a new tarball (<A
+HREF="#upgrade-tarball"
+>Example 5-2</A
+>)</P
+></LI
+><LI
+><P
+>Applying the relevant patches (<A
+HREF="#upgrade-patches"
+>Example 5-3</A
+>)</P
+></LI
+></OL
+><P
+>Which options are available to you may depend on how large a jump
+ you are making and/or your network configuration.
+ </P
+><P
+>Revisions are normally released to fix security vulnerabilities
+ and are distinguished by an increase in the third number. For example,
+ when 2.16.2 was released, it was a revision to 2.16.1.
+ </P
+><P
+>Point releases are normally released when the Bugzilla team feels
+ that there has been a significant amount of progress made between the
+ last point release and the current time. These are often proceeded by a
+ stabilization period and release candidates, however the use of
+ development versions or release candidates is beyond the scope of this
+ document. Point releases can be distinguished by an increase in the
+ second number, or minor version. For example, 2.16.2 is a newer point
+ release than 2.14.5.
+ </P
+><P
+>The examples in this section are written as if you were updating
+ to version 2.16.2. The procedures are the same regardless if you are
+ updating to a new point release or a new revision. However, the chance
+ of running into trouble increases when upgrading to a new point release,
+ escpecially if you've made local changes.
+ </P
+><P
+>These examples also assume that your Bugzilla installation is at
+ <TT
+CLASS="filename"
+>/var/www/html/bugzilla</TT
+>. If that is not the case,
+ simply substitute the proper paths where appropriate.
+ </P
><DIV
-CLASS="warning"
+CLASS="example"
+><A
+NAME="upgrade-cvs"
+></A
+><P
+><B
+>Example 5-1. Upgrading using CVS</B
+></P
+><P
+>Every release of Bugzilla, whether it is a revision or a point
+ release, is tagged in CVS. Also, every tarball we have distributed
+ since version 2.12 has been primed for using CVS. This does, however,
+ require that you are able to access cvs-mirror.mozilla.org on port
+ 2401.
+
+ <DIV
+CLASS="tip"
><P
></P
><TABLE
-CLASS="warning"
+CLASS="tip"
WIDTH="100%"
BORDER="0"
><TR
@@ -7741,81 +7830,22 @@ WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
-SRC="../images/warning.gif"
+SRC="../images/tip.gif"
HSPACE="5"
-ALT="Warning"></TD
+ALT="Tip"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->This is not meant to be a comprehensive list of every possible
- security issue regarding the tools mentioned in this section. There is
- no subsitute for reading the information written by the authors of any
- software running on your system.
- </P
+>If you can do this, updating using CVS is probably the most
+ painless method, especially if you have a lot of local changes.
+ </P
></TD
></TR
></TABLE
></DIV
-><DIV
-CLASS="section"
-><HR><H2
-CLASS="section"
-><A
-NAME="security-networking"
-></A
->5.6.1. TCP/IP Ports</H2
-><P
->TCP/IP defines 65,000 some ports for trafic. Of those, Bugzilla
- only needs 1... 2 if you need to use features that require e-mail such
- as bug moving or the e-mail interface from contrib. You should audit
- your server and make sure that you aren't listening on any ports you
- don't need to be. You may also wish to use some kind of firewall
- software to be sure that trafic can only be recieved on ports you
- specify.
- </P
-></DIV
-><DIV
-CLASS="section"
-><HR><H2
-CLASS="section"
-><A
-NAME="security-mysql"
-></A
->5.6.2. MySQL</H2
-><P
->MySQL ships by default with many settings that should be changed.
- By defaults it allows anybody to connect from localhost without a
- password and have full administrative capabilities. It also defaults to
- not have a root password (this is <EM
->not</EM
-> the same as
- the system root). Also, many installations default to running
- <SPAN
-CLASS="application"
->mysqld</SPAN
-> as the system root.
+>
</P
-><P
-></P
-><OL
-TYPE="1"
-><LI
-><P
->Consult the documentation that came with your system for
- information on making <SPAN
-CLASS="application"
->mysqld</SPAN
-> run as an
- unprivleged user.
- </P
-></LI
-><LI
-><P
->You should also be sure to disable the anonymous user account
- and set a password for the root user. This is accomplished using the
- following commands:
- </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
@@ -7826,118 +7856,74 @@ WIDTH="100%"
COLOR="#000000"
><PRE
CLASS="programlisting"
->&#13;<TT
-CLASS="prompt"
->bash$</TT
-> mysql mysql
-<TT
-CLASS="prompt"
->mysql&#62;</TT
-> DELETE FROM user WHERE user = '';
-<TT
-CLASS="prompt"
->mysql&#62;</TT
-> UPDATE user SET password = password('<TT
-CLASS="replaceable"
-><I
->new_password</I
-></TT
->') WHERE user = 'root';
-<TT
-CLASS="prompt"
->mysql&#62;</TT
-> FLUSH PRIVILEGES;
- </PRE
+>&#13;bash$ <B
+CLASS="command"
+>cd /var/www/html/bugzilla</B
+>
+bash$ <B
+CLASS="command"
+>cvs login</B
+>
+Logging in to :pserver:anonymous@cvs-mirror.mozilla.org:2401/cvsroot
+CVS password: <B
+CLASS="command"
+>anonymous</B
+>
+bash$ <B
+CLASS="command"
+>cvs -q update -r BUGZILLA-2_16_2 -dP</B
+>
+P checksetup.pl
+P collectstats.pl
+P globals.pl
+P docs/rel_notes.txt
+P template/en/default/list/quips.html.tmpl
+ </PRE
></FONT
></TD
></TR
></TABLE
><P
->From this point forward you will need to use
- <B
-CLASS="command"
->mysql -u root -p</B
-> and enter
- <TT
-CLASS="replaceable"
-><I
->new_password</I
-></TT
-> when prompted when using the
- mysql client.
- </P
-></LI
-><LI
+>&#13; <DIV
+CLASS="caution"
><P
->If you run MySQL on the same machine as your httpd server, you
- should consider disabling networking from within MySQL by adding
- the following to your <TT
-CLASS="filename"
->/etc/my.conf</TT
->:
- </P
+></P
><TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
+CLASS="caution"
WIDTH="100%"
+BORDER="0"
><TR
><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;[myslqd]
-# Prevent network access to MySQL.
-skip-networking
- </PRE
-></FONT
+WIDTH="25"
+ALIGN="CENTER"
+VALIGN="TOP"
+><IMG
+SRC="../images/caution.gif"
+HSPACE="5"
+ALT="Caution"></TD
+><TD
+ALIGN="LEFT"
+VALIGN="TOP"
+><P
+>If a line in the output from <B
+CLASS="command"
+>cvs update</B
+>
+ begins with a <TT
+CLASS="computeroutput"
+>C</TT
+> 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.
+ </P
></TD
></TR
></TABLE
-></LI
-><LI
-><P
->You may also consider running MySQL, or even all of Bugzilla
- in a chroot jail; however, instructions for doing that are beyond
- the scope of this document.
- </P
-></LI
-></OL
></DIV
-><DIV
-CLASS="section"
-><HR><H2
-CLASS="section"
-><A
-NAME="security-daemon"
-></A
->5.6.3. Daemon Accounts</H2
-><P
->Many daemons, such as Apache's httpd and MySQL's mysqld default to
- running as either <SPAN
-CLASS="QUOTE"
->"root"</SPAN
-> or <SPAN
-CLASS="QUOTE"
->"nobody"</SPAN
->. Running
- as <SPAN
-CLASS="QUOTE"
->"root"</SPAN
-> introduces obvious security problems, but the
- problems introduced by running everything as <SPAN
-CLASS="QUOTE"
->"nobody"</SPAN
-> may
- not be so obvious. Basically, if you're running every daemon as
- <SPAN
-CLASS="QUOTE"
->"nobody"</SPAN
-> and one of them gets comprimised, they all get
- comprimised. For this reason it is recommended that you create a user
- account for each daemon.
- </P
-><DIV
+>
+
+ <DIV
CLASS="note"
><P
></P
@@ -7958,231 +7944,111 @@ ALT="Note"></TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->You will need to set the <TT
-CLASS="varname"
->webservergroup</TT
-> to
- the group you created for your webserver to run as in
- <TT
-CLASS="filename"
->localconfig</TT
->. This will allow
- <B
+>You also need to run <B
CLASS="command"
>./checksetup.pl</B
-> to better adjust the file
- permissions on your Bugzilla install so as to not require making
- anything world-writable.
- </P
+>
+ before your Bugzilla upgrade will be complete.
+ </P
></TD
></TR
></TABLE
></DIV
+>
+ </P
></DIV
><DIV
-CLASS="section"
-><HR><H2
-CLASS="section"
+CLASS="example"
><A
-NAME="security-access"
+NAME="upgrade-tarball"
></A
->5.6.4. Web Server Access Controls</H2
-><P
->There are many files that are placed in the Bugzilla directory
- area that should not be accessable from the web. Because of the way
- Bugzilla is currently layed out, the list of what should and should
- not be accessible is rather complicated. A new installation method
- is currently in the works which should solve this by allowing files
- that shouldn't be accessible from the web to be placed in directory
- outside the webroot. See
- <A
-HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=44659"
-TARGET="_top"
->&#13; bug 44659</A
-> for more information.
- </P
-><P
-></P
-><UL
-COMPACT="COMPACT"
-><LI
-><P
->In the main Bugzilla directory, you should:</P
><P
+><B
+>Example 5-2. Upgrading using the tarball</B
></P
-><UL
-COMPACT="COMPACT"
-><LI
><P
->Block:
- <TT
-CLASS="filename"
->*.pl</TT
->, <TT
-CLASS="filename"
->*localconfig*</TT
->, <TT
-CLASS="filename"
->runtests.sh</TT
+>If you are unable or unwilling to use CVS, another option that's
+ always available is to download the latest tarball. This is the most
+ difficult option to use, especially if you have local changes.
+ </P
+><TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><FONT
+COLOR="#000000"
+><PRE
+CLASS="programlisting"
+>&#13;bash$ <B
+CLASS="command"
+>cd /var/www/html</B
>
- </P
-></LI
-><LI
-><P
->But allow:
- <TT
-CLASS="filename"
->localconfig.js</TT
->, <TT
-CLASS="filename"
->localconfig.rdf</TT
+bash$ <B
+CLASS="command"
+>wget ftp://ftp.mozilla.org/pub/webtools/bugzilla-2.16.2.tar.gz</B
>
- </P
-></LI
-></UL
-></LI
-><LI
-><P
->In <TT
-CLASS="filename"
->data</TT
->:</P
-><P
-></P
-><UL
-COMPACT="COMPACT"
-><LI
-><P
->Block everything</P
-></LI
-><LI
-><P
->But allow:
- <TT
-CLASS="filename"
->duplicates.rdf</TT
+<EM
+>Output omitted</EM
>
- </P
-></LI
-></UL
-></LI
-><LI
-><P
->In <TT
-CLASS="filename"
->data/webdot</TT
->:</P
-><P
-></P
-><UL
-COMPACT="COMPACT"
-><LI
-><P
->If you use a remote webdot server:</P
-><P
-></P
-><UL
-COMPACT="COMPACT"
-><LI
-><P
->Block everything</P
-></LI
-><LI
-><P
->But allow
- <TT
-CLASS="filename"
->*.dot</TT
+bash$ <B
+CLASS="command"
+>tar xzvf bugzilla-2.16.2.tar.gz</B
>
- only for the remote webdot server</P
-></LI
-></UL
-></LI
-><LI
-><P
->Otherwise, if you use a local GraphViz:</P
-><P
-></P
-><UL
-COMPACT="COMPACT"
-><LI
-><P
->Block everything</P
-></LI
-><LI
-><P
->But allow:
- <TT
-CLASS="filename"
->*.png</TT
->, <TT
-CLASS="filename"
->*.gif</TT
->, <TT
-CLASS="filename"
->*.jpg</TT
->, <TT
-CLASS="filename"
->*.map</TT
+bugzilla-2.16.2/
+bugzilla-2.16.2/.cvsignore
+bugzilla-2.16.2/1x1.gif
+<EM
+>Output truncated</EM
>
- </P
-></LI
-></UL
-></LI
-><LI
-><P
->And if you don't use any dot:</P
-><P
-></P
-><UL
-COMPACT="COMPACT"
-><LI
-><P
->Block everything</P
-></LI
-></UL
-></LI
-></UL
-></LI
-><LI
-><P
->In <TT
-CLASS="filename"
->Bugzilla</TT
->:</P
-><P
-></P
-><UL
-COMPACT="COMPACT"
-><LI
-><P
->Block everything</P
-></LI
-></UL
-></LI
-><LI
-><P
->In <TT
-CLASS="filename"
->template</TT
->:</P
-><P
-></P
-><UL
-COMPACT="COMPACT"
-><LI
+bash$ <B
+CLASS="command"
+>cd bugzilla-2.16.2</B
+>
+bash$ <B
+CLASS="command"
+>cp ../bugzilla/localconfig* .</B
+>
+bash$ <B
+CLASS="command"
+>cp -r ../bugzilla/data .</B
+>
+bash$ <B
+CLASS="command"
+>cd ..</B
+>
+bash$ <B
+CLASS="command"
+>mv bugzilla bugzilla.old</B
+>
+bash$ <B
+CLASS="command"
+>mv bugzilla-2.16.2 bugzilla</B
+>
+bash$ <B
+CLASS="command"
+>cd bugzilla</B
+>
+bash$ <B
+CLASS="command"
+>./checksetup.pl</B
+>
+<EM
+>Output omitted</EM
+>
+ </PRE
+></FONT
+></TD
+></TR
+></TABLE
><P
->Block everything</P
-></LI
-></UL
-></LI
-></UL
-><DIV
-CLASS="tip"
+>&#13; <DIV
+CLASS="warning"
><P
></P
><TABLE
-CLASS="tip"
+CLASS="warning"
WIDTH="100%"
BORDER="0"
><TR
@@ -8191,64 +8057,37 @@ WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
-SRC="../images/tip.gif"
+SRC="../images/warning.gif"
HSPACE="5"
-ALT="Tip"></TD
+ALT="Warning"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->Bugzilla ships with the ability to generate
- <TT
-CLASS="filename"
->.htaccess</TT
-> files instructing
- <A
-HREF="#gloss-apache"
-><I
-CLASS="glossterm"
->Apache</I
-></A
-> which files
- should and should not be accessible. For more information, see
- <A
-HREF="#http-apache"
->Section 4.4.1</A
->.
- </P
+>The <B
+CLASS="command"
+>cp</B
+> commands both end with periods which
+ is a very important detail, it tells the shell that the destination
+ directory is the current working directory. Also, the period at the
+ beginning of the <B
+CLASS="command"
+>./checksetup.pl</B
+> is important and
+ can not be omitted.
+ </P
></TD
></TR
></TABLE
></DIV
-><P
->You should test to make sure that the files mentioned above are
- not accessible from the Internet, especially your
- <TT
-CLASS="filename"
->localconfig</TT
-> file which contains your database
- password. To test, simply point your web browser at the file; for
- example, to test mozilla.org's installation, we'd try to access
- <A
-HREF="http://bugzilla.mozilla.org/localconfig"
-TARGET="_top"
->http://bugzilla.mozilla.org/localconfig</A
->. You should
- get a <SPAN
-CLASS="errorcode"
->403</SPAN
-> <SPAN
-CLASS="errorname"
->Forbidden</SPAN
>
- error.
- </P
-><DIV
-CLASS="caution"
+
+ <DIV
+CLASS="note"
><P
></P
><TABLE
-CLASS="caution"
+CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
@@ -8257,27 +8096,88 @@ WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
-SRC="../images/caution.gif"
+SRC="../images/note.gif"
HSPACE="5"
-ALT="Caution"></TD
+ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->Not following the instructions in this section, including
- testing, may result in sensitive information being globally
- accessible.
- </P
+>You will now have to reapply any changes you have made to your
+ local installation manually.
+ </P
></TD
></TR
></TABLE
></DIV
+>
+ </P
+></DIV
><DIV
-CLASS="tip"
+CLASS="example"
+><A
+NAME="upgrade-patches"
+></A
><P
+><B
+>Example 5-3. Upgrading using patches</B
></P
+><P
+>The Bugzilla team will normally make a patch file available for
+ revisions to go from the most recent revision to the new one. You could
+ also read the release notes and grab the patches attached to the
+ mentioned bug, but it is safer to use the released patch file as
+ sometimes patches get changed before they get checked in.
+ It is also theoretically possible to
+ scour the fixed bug list and pick and choose which patches to apply
+ from a point release, but this is not recommended either as what you'll
+ end up with is a hodge podge Bugzilla that isn't really any version.
+ This would also make it more difficult to upgrade in the future.
+ </P
><TABLE
-CLASS="tip"
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><FONT
+COLOR="#000000"
+><PRE
+CLASS="programlisting"
+>&#13;bash$ <B
+CLASS="command"
+>cd /var/www/html/bugzilla</B
+>
+bash$ <B
+CLASS="command"
+>wget ftp://ftp.mozilla.org/pub/webtools/bugzilla-2.16.1-to-2.16.2.diff.gz</B
+>
+<EM
+>Output omitted</EM
+>
+bash$ <B
+CLASS="command"
+>gunzip bugzilla-2.16.1-to-2.16.2.diff.gz</B
+>
+bash$ <B
+CLASS="command"
+>patch -p1 &#60; bugzilla-2.16.1-to-2.16.2.diff</B
+>
+patching file checksetup.pl
+patching file collectstats.pl
+patching file globals.pl
+ </PRE
+></FONT
+></TD
+></TR
+></TABLE
+><P
+>&#13; <DIV
+CLASS="caution"
+><P
+></P
+><TABLE
+CLASS="caution"
WIDTH="100%"
BORDER="0"
><TR
@@ -8286,55 +8186,60 @@ WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
-SRC="../images/tip.gif"
+SRC="../images/caution.gif"
HSPACE="5"
-ALT="Tip"></TD
+ALT="Caution"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
->You should check <A
-HREF="#http"
->Section 4.4</A
-> to see if instructions
- have been included for your web server. You should also compare those
- instructions with this list to make sure everything is properly
- accounted for.
- </P
+>If you do this, beware that this doesn't change the entires in
+ your <TT
+CLASS="filename"
+>CVS</TT
+> directory so it may make
+ updates using CVS (<A
+HREF="#upgrade-cvs"
+>Example 5-1</A
+>) more difficult in the
+ future.
+ </P
></TD
></TR
></TABLE
></DIV
+>
+ </P
+></DIV
></DIV
></DIV
><DIV
-CLASS="section"
+CLASS="chapter"
><HR><H1
+><A
+NAME="customization"
+></A
+>Chapter 6. Customising Bugzilla</H1
+><DIV
+CLASS="section"
+><H1
CLASS="section"
><A
NAME="cust-templates"
></A
->5.7. Template Customization</H1
+>6.1. Template Customization</H1
><P
->&#13; One of the large changes for 2.16 was the templatization of the
- entire user-facing UI, using the
- <A
-HREF="http://www.template-toolkit.org"
-TARGET="_top"
->Template Toolkit</A
->.
- Administrators can now configure the look and feel of Bugzilla without
+>&#13; Administrators can configure the look and feel of Bugzilla without
having to edit Perl files or face the nightmare of massive merge
conflicts when they upgrade to a newer version in the future.
</P
><P
>&#13; Templatization also makes localized versions of Bugzilla possible,
- for the first time. As of version 2.17.4 which will soon
- become 2.18, it's possible to have Bugzilla's language determined by
- the user's browser. More information is available in
+ for the first time. It's possible to have Bugzilla's UI language
+ determined by the user's browser. More information is available in
<A
HREF="#template-http-accept"
->Section 5.7.5</A
+>Section 6.1.5</A
>.
</P
><DIV
@@ -8342,13 +8247,11 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN1606"
+NAME="AEN1597"
></A
->5.7.1. What to Edit</H2
+>6.1.1. What to Edit</H2
><P
->&#13; There are two different ways of editing of Bugzilla's templates,
- and which you use depends mainly on how you upgrade Bugzilla. The
- template directory structure is that there's a top level directory,
+>&#13; The template directory structure is that there's a top level directory,
<TT
CLASS="filename"
>template</TT
@@ -8377,7 +8280,10 @@ CLASS="filename"
must be created if you want to use it.
</P
><P
->&#13; The first method of making customizations is to directly edit the
+>&#13; There are two different ways of editing Bugzilla's templates,
+ and which you use depends mainly on the method you plan to use to
+ upgrade Bugzilla.
+ The first method of making customizations is to directly edit the
templates in <TT
CLASS="filename"
>template/en/default</TT
@@ -8395,7 +8301,8 @@ CLASS="command"
occur.
</P
><P
->&#13; The other method is to copy the templates into a mirrored directory
+>&#13; The other method is to copy the templates to be modified into a
+ mirrored directory
structure under <TT
CLASS="filename"
>template/en/custom</TT
@@ -8492,47 +8399,9 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN1629"
+NAME="AEN1620"
></A
->5.7.2. How To Edit Templates</H2
-><P
->&#13; The syntax of the Template Toolkit language is beyond the scope of
- this guide. It's reasonably easy to pick up by looking at the current
- templates; or, you can read the manual, available on the
- <A
-HREF="http://www.template-toolkit.org"
-TARGET="_top"
->Template Toolkit home
- page</A
->. However, you should particularly remember (for security
- reasons) to always HTML filter things which come from the database or
- user input, to prevent cross-site scripting attacks.
- </P
-><P
->&#13; However, one thing you should take particular care about is the need
- to properly HTML filter data that has been passed into the template.
- This means that if the data can possibly contain special HTML characters
- such as &#60;, and the data was not intended to be HTML, they need to be
- converted to entity form, ie &#38;lt;. You use the 'html' filter in the
- Template Toolkit to do this. If you fail to do this, you may open up
- your installation to cross-site scripting attacks.
- </P
-><P
->&#13; Also note that Bugzilla adds a few filters of its own, that are not
- in standard Template Toolkit. In particular, the 'url_quote' filter
- can convert characters that are illegal or have special meaning in URLs,
- such as &#38;, to the encoded form, ie %26. This actually encodes most
- characters (but not the common ones such as letters and numbers and so
- on), including the HTML-special characters, so there's never a need to
- HTML filter afterwards.
- </P
-><P
->&#13; Editing templates is a good way of doing a "poor man's custom fields".
- For example, if you don't use the Status Whiteboard, but want to have
- a free-form text entry box for "Build Identifier", then you can just
- edit the templates to change the field labels. It's still be called
- status_whiteboard internally, but your users don't need to know that.
- </P
+>6.1.2. How To Edit Templates</H2
><DIV
CLASS="note"
><P
@@ -8568,15 +8437,51 @@ TARGET="_top"
></TR
></TABLE
></DIV
+><P
+>&#13; The syntax of the Template Toolkit language is beyond the scope of
+ this guide. It's reasonably easy to pick up by looking at the current
+ templates; or, you can read the manual, available on the
+ <A
+HREF="http://www.template-toolkit.org"
+TARGET="_top"
+>Template Toolkit home
+ page</A
+>.
+ </P
+><P
+>&#13; One thing you should take particular care about is the need
+ to properly HTML filter data that has been passed into the template.
+ This means that if the data can possibly contain special HTML characters
+ such as &#60;, and the data was not intended to be HTML, they need to be
+ converted to entity form, ie &#38;lt;. You use the 'html' filter in the
+ Template Toolkit to do this. If you forget, you may open up
+ your installation to cross-site scripting attacks.
+ </P
+><P
+>&#13; Also note that Bugzilla adds a few filters of its own, that are not
+ in standard Template Toolkit. In particular, the 'url_quote' filter
+ can convert characters that are illegal or have special meaning in URLs,
+ such as &#38;, to the encoded form, ie %26. This actually encodes most
+ characters (but not the common ones such as letters and numbers and so
+ on), including the HTML-special characters, so there's never a need to
+ HTML filter afterwards.
+ </P
+><P
+>&#13; Editing templates is a good way of doing a "poor man's custom fields".
+ For example, if you don't use the Status Whiteboard, but want to have
+ a free-form text entry box for "Build Identifier", then you can just
+ edit the templates to change the field labels. It's still be called
+ status_whiteboard internally, but your users don't need to know that.
+ </P
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN1639"
+NAME="AEN1630"
></A
->5.7.3. Template Formats</H2
+>6.1.3. Template Formats</H2
><P
>&#13; Some CGIs have the ability to use more than one template. For
example, buglist.cgi can output bug lists as RDF or two
@@ -8590,9 +8495,9 @@ CLASS="filename"
</P
><P
>&#13; To see if a CGI supports multiple output formats, grep the
- CGI for "ValidateOutputFormat". If it's not present, adding
+ CGI for "GetFormat". If it's not present, adding
multiple format support isn't too hard - see how it's done in
- other CGIs.
+ other CGIs, e.g. config.cgi.
</P
><P
>&#13; To make a new format template for a CGI which supports this,
@@ -8636,9 +8541,9 @@ CLASS="section"
><HR><H2
CLASS="section"
><A
-NAME="AEN1652"
+NAME="AEN1643"
></A
->5.7.4. Particular Templates</H2
+>6.1.4. Particular Templates</H2
><P
>&#13; There are a few templates you may be particularly interested in
customizing for your installation.
@@ -8694,21 +8599,6 @@ CLASS="command"
><P
>&#13; <B
CLASS="command"
->bug/process/midair.html.tmpl</B
->:
- This is the page used if two people submit simultaneous changes to the
- same bug. The second person to submit their changes will get this page
- to tell them what the first person did, and ask if they wish to
- overwrite those changes or go back and revisit the bug. The default
- title and header on this page read "Mid-air collision detected!" If
- you work in the aviation industry, or other environment where this
- might be found offensive (yes, we have true stories of this happening)
- you'll want to change this to something more appropriate for your
- environment.
- </P
-><P
->&#13; <B
-CLASS="command"
>bug/create/create.html.tmpl</B
> and
<B
@@ -8827,13 +8717,11 @@ CLASS="section"
><A
NAME="template-http-accept"
></A
->5.7.5. Configuring Bugzilla to Detect the User's Language</H2
+>6.1.5. Configuring Bugzilla to Detect the User's Language</H2
><P
->Begining in version 2.18 (first introduced in version
- 2.17.4), it's now possible to have the users web browser tell Bugzilla
- which language templates to use for each visitor (using the HTTP_ACCEPT
- header). For this to work, Bugzilla needs to have the correct language
- templates installed for the version of Bugzilla you are using. Many
+>Bugzilla honours the user's Accept: HTTP header. You can install
+ templates in other languages, and Bugzilla will pick the most appropriate
+ according to a priority order defined by you. Many
language templates can be obtained from <A
HREF="http://www.bugzilla.org/download.html#localizations"
TARGET="_top"
@@ -8845,7 +8733,7 @@ TARGET="_top"
>After untarring the localizations (or creating your own) in the
<TT
CLASS="filename"
->[Bugzilla_Root]/template</TT
+>$BUGZILLA_HOME/template</TT
> directory,
you must update the <TT
CLASS="option"
@@ -8870,7 +8758,7 @@ CLASS="section"
><A
NAME="cust-change-permissions"
></A
->5.8. Change Permission Customization</H1
+>6.2. Customizing Who Can Change What</H1
><DIV
CLASS="warning"
><P
@@ -8894,9 +8782,10 @@ VALIGN="TOP"
><P
>&#13; This feature should be considered experimental; the Bugzilla code you
will be changing is not stable, and could change or move between
- versions. Be aware that if you make modifications to it, you may have
+ versions. Be aware that if you make modifications as outlined here,
+ you may have
to re-make them or port them if Bugzilla changes internally between
- versions.
+ versions, and you upgrade.
</P
></TD
></TR
@@ -9039,454 +8928,258 @@ CLASS="section"
><HR><H1
CLASS="section"
><A
-NAME="upgrading"
+NAME="dbmodify"
></A
->5.9. Upgrading to New Releases</H1
-><DIV
-CLASS="warning"
+>6.3. Modifying Your Running System</H1
><P
-></P
-><TABLE
-CLASS="warning"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/warning.gif"
-HSPACE="5"
-ALT="Warning"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->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.
- </P
-></TD
-></TR
-></TABLE
-></DIV
-><P
->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.
- </P
-><P
-></P
-><UL
-><LI
-><P
->If the new version is a revision or a new point release</P
-></LI
-><LI
-><P
->How many, if any, local changes have been made</P
-></LI
-></UL
+>Bugzilla optimizes database lookups by storing all relatively
+ static information in the
+ <TT
+CLASS="filename"
+>versioncache</TT
+> file, located in the
+ <TT
+CLASS="filename"
+>data/</TT
+>
+ subdirectory under your installation directory.</P
><P
->There are also three different methods to upgrade your installation.
- </P
+>If you make a change to the structural data in your database (the
+ versions table for example), or to the
+ <SPAN
+CLASS="QUOTE"
+>"constants"</SPAN
+>
+
+ encoded in <TT
+CLASS="filename"
+>defparams.pl</TT
+>, you will need to remove
+ the cached content from the data directory (by doing a
+ <SPAN
+CLASS="QUOTE"
+>"rm data/versioncache"</SPAN
+>
+
+ ), or your changes won't show up.</P
><P
-></P
-><OL
-TYPE="1"
-><LI
+> <TT
+CLASS="filename"
+>versioncache</TT
+>
+ gets automatically regenerated whenever it's more than
+ an hour old, so Bugzilla will eventually notice your changes by itself,
+ but generally you want it to notice right away, so that you can test
+ things.</P
+></DIV
+><DIV
+CLASS="section"
+><HR><H1
+CLASS="section"
+><A
+NAME="dbdoc"
+></A
+>6.4. MySQL Bugzilla Database Introduction</H1
><P
->Using CVS (<A
-HREF="#upgrade-cvs"
->Example 5-1</A
->)</P
-></LI
-><LI
+>This information comes straight from my life. I was forced to learn
+ how Bugzilla organizes database because of nitpicky requests from users
+ for tiny changes in wording, rather than having people re-educate
+ themselves or figure out how to work our procedures around the tool. It
+ sucks, but it can and will happen to you, so learn how the schema works
+ and deal with it when it comes.</P
><P
->Downloading a new tarball (<A
-HREF="#upgrade-tarball"
->Example 5-2</A
->)</P
-></LI
-><LI
+>So, here you are with your brand-new installation of Bugzilla.
+ You've got MySQL set up, Apache working right, Perl DBI and DBD talking
+ to the database flawlessly. Maybe you've even entered a few test bugs to
+ make sure email's working; people seem to be notified of new bugs and
+ changes, and you can enter and edit bugs to your heart's content. Perhaps
+ you've gone through the trouble of setting up a gateway for people to
+ submit bugs to your database via email, have had a few people test it,
+ and received rave reviews from your beta testers.</P
><P
->Applying the relevant patches (<A
-HREF="#upgrade-patches"
->Example 5-3</A
->)</P
-></LI
-></OL
+>What's the next thing you do? Outline a training strategy for your
+ development team, of course, and bring them up to speed on the new tool
+ you've labored over for hours.</P
><P
->Which options are available to you may depend on how large a jump
- you are making and/or your network configuration.
- </P
+>Your first training session starts off very well! You have a
+ captive audience which seems enraptured by the efficiency embodied in
+ this thing called "Bugzilla". You are caught up describing the nifty
+ features, how people can save favorite queries in the database, set them
+ up as headers and footers on their pages, customize their layouts,
+ generate reports, track status with greater efficiency than ever before,
+ leap tall buildings with a single bound and rescue Jane from the clutches
+ of Certain Death!</P
><P
->Revisions are normally released to fix security vulnerabilities
- and are distinguished by an increase in the third number. For example,
- when 2.16.2 was released, it was a revision to 2.16.1.
- </P
+>But Certain Death speaks up -- a tiny voice, from the dark corners
+ of the conference room. "I have a concern," the voice hisses from the
+ darkness, "about the use of the word 'verified'."</P
><P
->Point releases are normally released when the Bugzilla team feels
- that there has been a significant amount of progress made between the
- last point release and the current time. These are often proceeded by a
- stabilization period and release candidates, however the use of
- development versions or release candidates is beyond the scope of this
- document. Point releases can be distinguished by an increase in the
- second number, or minor version. For example, 2.16.2 is a newer point
- release than 2.14.5.
- </P
+>The room, previously filled with happy chatter, lapses into
+ reverential silence as Certain Death (better known as the Vice President
+ of Software Engineering) continues. "You see, for two years we've used
+ the word 'verified' to indicate that a developer or quality assurance
+ engineer has confirmed that, in fact, a bug is valid. I don't want to
+ lose two years of training to a new software product. You need to change
+ the bug status of 'verified' to 'approved' as soon as possible. To avoid
+ confusion, of course."</P
><P
->The examples in this section are written as if you were updating
- to version 2.16.2. The procedures are the same regardless if you are
- updating to a new point release or a new revision. However, the chance
- of running into trouble increases when upgrading to a new point release,
- escpecially if you've made local changes.
- </P
+>Oh no! Terror strikes your heart, as you find yourself mumbling
+ "yes, yes, I don't think that would be a problem," You review the changes
+ with Certain Death, and continue to jabber on, "no, it's not too big a
+ change. I mean, we have the source code, right? You know, 'Use the
+ Source, Luke' and all that... no problem," All the while you quiver
+ inside like a beached jellyfish bubbling, burbling, and boiling on a hot
+ Jamaican sand dune...</P
><P
->These examples also assume that your Bugzilla installation is at
- <TT
-CLASS="filename"
->/var/www/html/bugzilla</TT
->. If that is not the case,
- simply substitute the proper paths where appropriate.
- </P
+>Thus begins your adventure into the heart of Bugzilla. You've been
+ forced to learn about non-portable enum() fields, varchar columns, and
+ tinyint definitions. The Adventure Awaits You!</P
><DIV
-CLASS="example"
+CLASS="section"
+><HR><H2
+CLASS="section"
><A
-NAME="upgrade-cvs"
+NAME="AEN1719"
></A
+>6.4.1. Bugzilla Database Basics</H2
><P
-><B
->Example 5-1. Upgrading using CVS</B
-></P
-><P
->Every release of Bugzilla, whether it is a revision or a point
- release, is tagged in CVS. Also, every tarball we have distributed
- since version 2.12 has been primed for using CVS. This does, however,
- require that you are able to access cvs-mirror.mozilla.org on port
- 2401.
+>If you were like me, at this point you're totally clueless about
+ the internals of MySQL, and if it weren't for this executive order from
+ the Vice President you couldn't care less about the difference between
+ a
+ <SPAN
+CLASS="QUOTE"
+>"bigint"</SPAN
+>
- <DIV
-CLASS="tip"
+ and a
+ <SPAN
+CLASS="QUOTE"
+>"tinyint"</SPAN
+>
+
+ entry in MySQL. I recommend you refer to the
+ <A
+HREF="http://www.mysql.com/documentation/"
+TARGET="_top"
+>MySQL documentation</A
+>
+ . Below are the basics you need to know about the Bugzilla database.
+ Check the chart above for more details.</P
><P
+>&#13; <P
></P
-><TABLE
-CLASS="tip"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/tip.gif"
-HSPACE="5"
-ALT="Tip"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
+><OL
+TYPE="1"
+><LI
><P
->If you can do this, updating using CVS is probably the most
- painless method, especially if you have a lot of local changes.
- </P
-></TD
-></TR
-></TABLE
-></DIV
->
- </P
-><TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;bash$ <B
-CLASS="command"
->cd /var/www/html/bugzilla</B
+>To connect to your database:</P
+><P
+>&#13; <TT
+CLASS="prompt"
+>bash#</TT
>
-bash$ <B
+
+ <B
CLASS="command"
->cvs login</B
+>mysql</B
>
-Logging in to :pserver:anonymous@cvs-mirror.mozilla.org:2401/cvsroot
-CVS password: <B
-CLASS="command"
->anonymous</B
+
+ <TT
+CLASS="parameter"
+><I
+>-u root</I
+></TT
>
-bash$ <B
-CLASS="command"
->cvs -q update -r BUGZILLA-2_16_2 -dP</B
+ </P
+><P
+>If this works without asking you for a password,
+ <EM
+>shame on you</EM
>
-P checksetup.pl
-P collectstats.pl
-P globals.pl
-P docs/rel_notes.txt
-P template/en/default/list/quips.html.tmpl
- </PRE
-></FONT
-></TD
-></TR
-></TABLE
+
+ ! You should have locked your security down like the installation
+ instructions told you to. You can find details on locking down
+ your database in the Bugzilla FAQ in this directory (under
+ "Security"), or more robust security generalities in the
+ <A
+HREF="http://www.mysql.com/php/manual.php3?section=Privilege_system"
+TARGET="_top"
+>MySQL
+ searchable documentation</A
+>.
+ </P
+></LI
+><LI
><P
->&#13; <DIV
-CLASS="caution"
+>You should now be at a prompt that looks like this:</P
><P
-></P
-><TABLE
-CLASS="caution"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/caution.gif"
-HSPACE="5"
-ALT="Caution"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
+>&#13; <TT
+CLASS="prompt"
+>mysql&#62;</TT
+>
+ </P
><P
->If a line in the output from <B
-CLASS="command"
->cvs update</B
+>At the prompt, if
+ <SPAN
+CLASS="QUOTE"
+>"bugs"</SPAN
>
- begins with a <TT
-CLASS="computeroutput"
->C</TT
-> 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.
- </P
-></TD
-></TR
-></TABLE
-></DIV
+
+ is the name you chose in the
+ <TT
+CLASS="filename"
+>localconfig</TT
>
- <DIV
-CLASS="note"
-><P
-></P
-><TABLE
-CLASS="note"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
+ file for your Bugzilla database, type:</P
><P
->You also need to run <B
+>&#13; <TT
+CLASS="prompt"
+>mysql</TT
+>
+
+ <B
CLASS="command"
->./checksetup.pl</B
+>use bugs;</B
>
- before your Bugzilla upgrade will be complete.
- </P
-></TD
-></TR
-></TABLE
-></DIV
+ </P
+></LI
+></OL
>
</P
-></DIV
><DIV
-CLASS="example"
+CLASS="section"
+><HR><H3
+CLASS="section"
><A
-NAME="upgrade-tarball"
+NAME="AEN1746"
></A
+>6.4.1.1. Bugzilla Database Tables</H3
><P
-><B
->Example 5-2. Upgrading using the tarball</B
-></P
+>Imagine your MySQL database as a series of spreadsheets, and
+ you won't be too far off. If you use this command:</P
><P
->If you are unable or unwilling to use CVS, another option that's
- always available is to download the latest tarball. This is the most
- difficult option to use, especially if you have local changes.
- </P
-><TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;bash$ <B
-CLASS="command"
->cd /var/www/html</B
->
-bash$ <B
-CLASS="command"
->wget ftp://ftp.mozilla.org/pub/webtools/bugzilla-2.16.2.tar.gz</B
->
-<EM
->Output omitted</EM
->
-bash$ <B
-CLASS="command"
->tar xzvf bugzilla-2.16.2.tar.gz</B
->
-bugzilla-2.16.2/
-bugzilla-2.16.2/.cvsignore
-bugzilla-2.16.2/1x1.gif
-<EM
->Output truncated</EM
->
-bash$ <B
-CLASS="command"
->cd bugzilla-2.16.2</B
->
-bash$ <B
-CLASS="command"
->cp ../bugzilla/localconfig* .</B
->
-bash$ <B
-CLASS="command"
->cp -r ../bugzilla/data .</B
->
-bash$ <B
-CLASS="command"
->cd ..</B
->
-bash$ <B
-CLASS="command"
->mv bugzilla bugzilla.old</B
->
-bash$ <B
-CLASS="command"
->mv bugzilla-2.16.2 bugzilla</B
->
-bash$ <B
-CLASS="command"
->cd bugzilla</B
->
-bash$ <B
-CLASS="command"
->./checksetup.pl</B
->
-<EM
->Output omitted</EM
+>&#13; <TT
+CLASS="prompt"
+>mysql&#62;</TT
>
- </PRE
-></FONT
-></TD
-></TR
-></TABLE
-><P
->&#13; <DIV
-CLASS="warning"
-><P
-></P
-><TABLE
-CLASS="warning"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/warning.gif"
-HSPACE="5"
-ALT="Warning"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->The <B
-CLASS="command"
->cp</B
-> commands both end with periods which
- is a very important detail, it tells the shell that the destination
- directory is the current working directory. Also, the period at the
- beginning of the <B
+ <B
CLASS="command"
->./checksetup.pl</B
-> is important and
- can not be omitted.
- </P
-></TD
-></TR
-></TABLE
-></DIV
+>show tables from bugs;</B
>
-
- <DIV
-CLASS="note"
-><P
-></P
-><TABLE
-CLASS="note"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
+ </P
><P
->You will now have to reapply any changes you have made to your
- local installation manually.
- </P
-></TD
-></TR
-></TABLE
-></DIV
+>you'll be able to see the names of all the
+ <SPAN
+CLASS="QUOTE"
+>"spreadsheets"</SPAN
>
- </P
-></DIV
-><DIV
-CLASS="example"
-><A
-NAME="upgrade-patches"
-></A
-><P
-><B
->Example 5-3. Upgrading using patches</B
-></P
+ (tables) in your database.</P
><P
->The Bugzilla team will normally make a patch file available for
- revisions to go from the most recent revision to the new one. You could
- also read the release notes and grab the patches attached to the
- mentioned bug, but it is safer to use the released patch file as
- sometimes patches get changed before they get checked in (for minor
- spelling fixes and the like). It is also theorectically possible to
- scour the fixed bug list and pick and choose which patches to apply
- from a point release, but this is not recommended either as what you'll
- end up with is a hodge podge Bugzilla that isn't really any version.
- This would also make it more difficult to upgrade in the future.
- </P
-><TABLE
+>From the command issued above, ou should have some
+ output that looks like this:
+<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
@@ -9496,72 +9189,200 @@ WIDTH="100%"
COLOR="#000000"
><PRE
CLASS="programlisting"
->&#13;bash$ <B
-CLASS="command"
->cd /var/www/html/bugzilla</B
->
-bash$ <B
-CLASS="command"
->wget ftp://ftp.mozilla.org/pub/webtools/bugzilla-2.16.1-to-2.16.2.diff.gz</B
->
-<EM
->Output omitted</EM
->
-bash$ <B
-CLASS="command"
->gunzip bugzilla-2.16.1-to-2.16.2.diff.gz</B
->
-bash$ <B
-CLASS="command"
->patch -p1 &#60; bugzilla-2.16.1-to-2.16.2.diff</B
->
-patching file checksetup.pl
-patching file collectstats.pl
-patching file globals.pl
- </PRE
+>&#13;+-------------------+
+| Tables in bugs |
++-------------------+
+| attachments |
+| bugs |
+| bugs_activity |
+| cc |
+| components |
+| dependencies |
+| fielddefs |
+| groups |
+| keyworddefs |
+| keywords |
+| logincookies |
+| longdescs |
+| milestones |
+| namedqueries |
+| products |
+| profiles |
+| profiles_activity |
+| tokens |
+| versions |
+| votes |
+| watch |
++-------------------+
+</PRE
></FONT
></TD
></TR
></TABLE
+>
+</P
><P
->&#13; <DIV
-CLASS="caution"
-><P
-></P
-><TABLE
-CLASS="caution"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/caution.gif"
-HSPACE="5"
-ALT="Caution"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->If you do this, beware that this doesn't change the entires in
- your <TT
-CLASS="filename"
->CVS</TT
-> directory so it may make
- updates using CVS (<A
-HREF="#upgrade-cvs"
->Example 5-1</A
->) more difficult in the
- future.
- </P
-></TD
-></TR
-></TABLE
+CLASS="literallayout"
+><br>
+&nbsp;&nbsp;Here's&nbsp;an&nbsp;overview&nbsp;of&nbsp;what&nbsp;each&nbsp;table&nbsp;does.&nbsp;Most&nbsp;columns&nbsp;in&nbsp;each&nbsp;table&nbsp;have<br>
+descriptive&nbsp;names&nbsp;that&nbsp;make&nbsp;it&nbsp;fairly&nbsp;trivial&nbsp;to&nbsp;figure&nbsp;out&nbsp;their&nbsp;jobs.<br>
+<br>
+attachments:&nbsp;This&nbsp;table&nbsp;stores&nbsp;all&nbsp;attachments&nbsp;to&nbsp;bugs.&nbsp;It&nbsp;tends&nbsp;to&nbsp;be&nbsp;your<br>
+largest&nbsp;table,&nbsp;yet&nbsp;also&nbsp;generally&nbsp;has&nbsp;the&nbsp;fewest&nbsp;entries&nbsp;because&nbsp;file<br>
+attachments&nbsp;are&nbsp;so&nbsp;(relatively)&nbsp;large.<br>
+<br>
+bugs:&nbsp;&nbsp;This&nbsp;is&nbsp;the&nbsp;core&nbsp;of&nbsp;your&nbsp;system.&nbsp;The&nbsp;bugs&nbsp;table&nbsp;stores&nbsp;most&nbsp;of&nbsp;the<br>
+current&nbsp;information&nbsp;about&nbsp;a&nbsp;bug,&nbsp;with&nbsp;the&nbsp;exception&nbsp;of&nbsp;the&nbsp;info&nbsp;stored&nbsp;in&nbsp;the<br>
+other&nbsp;tables.<br>
+<br>
+bugs_activity:&nbsp;&nbsp;This&nbsp;stores&nbsp;information&nbsp;regarding&nbsp;what&nbsp;changes&nbsp;are&nbsp;made&nbsp;to&nbsp;bugs<br>
+when&nbsp;--&nbsp;a&nbsp;history&nbsp;file.<br>
+<br>
+cc:&nbsp;&nbsp;This&nbsp;tiny&nbsp;table&nbsp;simply&nbsp;stores&nbsp;all&nbsp;the&nbsp;CC&nbsp;information&nbsp;for&nbsp;any&nbsp;bug&nbsp;which&nbsp;has<br>
+any&nbsp;entries&nbsp;in&nbsp;the&nbsp;CC&nbsp;field&nbsp;of&nbsp;the&nbsp;bug.&nbsp;Note&nbsp;that,&nbsp;like&nbsp;most&nbsp;other&nbsp;tables&nbsp;in<br>
+Bugzilla,&nbsp;it&nbsp;does&nbsp;not&nbsp;refer&nbsp;to&nbsp;users&nbsp;by&nbsp;their&nbsp;user&nbsp;names,&nbsp;but&nbsp;by&nbsp;their&nbsp;unique<br>
+userid,&nbsp;stored&nbsp;as&nbsp;a&nbsp;primary&nbsp;key&nbsp;in&nbsp;the&nbsp;profiles&nbsp;table.<br>
+<br>
+components:&nbsp;This&nbsp;stores&nbsp;the&nbsp;programs&nbsp;and&nbsp;components&nbsp;(or&nbsp;products&nbsp;and<br>
+components,&nbsp;in&nbsp;newer&nbsp;Bugzilla&nbsp;parlance)&nbsp;for&nbsp;Bugzilla.&nbsp;Curiously,&nbsp;the&nbsp;"program"<br>
+(product)&nbsp;field&nbsp;is&nbsp;the&nbsp;full&nbsp;name&nbsp;of&nbsp;the&nbsp;product,&nbsp;rather&nbsp;than&nbsp;some&nbsp;other&nbsp;unique<br>
+identifier,&nbsp;like&nbsp;bug_id&nbsp;and&nbsp;user_id&nbsp;are&nbsp;elsewhere&nbsp;in&nbsp;the&nbsp;database.<br>
+<br>
+dependencies:&nbsp;Stores&nbsp;data&nbsp;about&nbsp;those&nbsp;cool&nbsp;dependency&nbsp;trees.<br>
+<br>
+fielddefs:&nbsp;&nbsp;A&nbsp;nifty&nbsp;table&nbsp;that&nbsp;defines&nbsp;other&nbsp;tables.&nbsp;For&nbsp;instance,&nbsp;when&nbsp;you<br>
+submit&nbsp;a&nbsp;form&nbsp;that&nbsp;changes&nbsp;the&nbsp;value&nbsp;of&nbsp;"AssignedTo"&nbsp;this&nbsp;table&nbsp;allows<br>
+translation&nbsp;to&nbsp;the&nbsp;actual&nbsp;field&nbsp;name&nbsp;"assigned_to"&nbsp;for&nbsp;entry&nbsp;into&nbsp;MySQL.<br>
+<br>
+groups:&nbsp;&nbsp;defines&nbsp;bitmasks&nbsp;for&nbsp;groups.&nbsp;A&nbsp;bitmask&nbsp;is&nbsp;a&nbsp;number&nbsp;that&nbsp;can&nbsp;uniquely<br>
+identify&nbsp;group&nbsp;memberships.&nbsp;For&nbsp;instance,&nbsp;say&nbsp;the&nbsp;group&nbsp;that&nbsp;is&nbsp;allowed&nbsp;to<br>
+tweak&nbsp;parameters&nbsp;is&nbsp;assigned&nbsp;a&nbsp;value&nbsp;of&nbsp;"1",&nbsp;the&nbsp;group&nbsp;that&nbsp;is&nbsp;allowed&nbsp;to&nbsp;edit<br>
+users&nbsp;is&nbsp;assigned&nbsp;a&nbsp;"2",&nbsp;and&nbsp;the&nbsp;group&nbsp;that&nbsp;is&nbsp;allowed&nbsp;to&nbsp;create&nbsp;new&nbsp;groups&nbsp;is<br>
+assigned&nbsp;the&nbsp;bitmask&nbsp;of&nbsp;"4".&nbsp;By&nbsp;uniquely&nbsp;combining&nbsp;the&nbsp;group&nbsp;bitmasks&nbsp;(much<br>
+like&nbsp;the&nbsp;chmod&nbsp;command&nbsp;in&nbsp;UNIX,)&nbsp;you&nbsp;can&nbsp;identify&nbsp;a&nbsp;user&nbsp;is&nbsp;allowed&nbsp;to&nbsp;tweak<br>
+parameters&nbsp;and&nbsp;create&nbsp;groups,&nbsp;but&nbsp;not&nbsp;edit&nbsp;users,&nbsp;by&nbsp;giving&nbsp;him&nbsp;a&nbsp;bitmask&nbsp;of<br>
+"5",&nbsp;or&nbsp;a&nbsp;user&nbsp;allowed&nbsp;to&nbsp;edit&nbsp;users&nbsp;and&nbsp;create&nbsp;groups,&nbsp;but&nbsp;not&nbsp;tweak<br>
+parameters,&nbsp;by&nbsp;giving&nbsp;him&nbsp;a&nbsp;bitmask&nbsp;of&nbsp;"6"&nbsp;Simple,&nbsp;huh?<br>
+&nbsp;&nbsp;If&nbsp;this&nbsp;makes&nbsp;no&nbsp;sense&nbsp;to&nbsp;you,&nbsp;try&nbsp;this&nbsp;at&nbsp;the&nbsp;mysql&nbsp;prompt:<br>
+mysql&#62;&nbsp;select&nbsp;*&nbsp;from&nbsp;groups;<br>
+&nbsp;&nbsp;You'll&nbsp;see&nbsp;the&nbsp;list,&nbsp;it&nbsp;makes&nbsp;much&nbsp;more&nbsp;sense&nbsp;that&nbsp;way.<br>
+<br>
+keyworddefs:&nbsp;&nbsp;Definitions&nbsp;of&nbsp;keywords&nbsp;to&nbsp;be&nbsp;used<br>
+<br>
+keywords:&nbsp;Unlike&nbsp;what&nbsp;you'd&nbsp;think,&nbsp;this&nbsp;table&nbsp;holds&nbsp;which&nbsp;keywords&nbsp;are<br>
+associated&nbsp;with&nbsp;which&nbsp;bug&nbsp;id's.<br>
+<br>
+logincookies:&nbsp;This&nbsp;stores&nbsp;every&nbsp;login&nbsp;cookie&nbsp;ever&nbsp;assigned&nbsp;to&nbsp;you&nbsp;for&nbsp;every<br>
+machine&nbsp;you've&nbsp;ever&nbsp;logged&nbsp;into&nbsp;Bugzilla&nbsp;from.&nbsp;Curiously,&nbsp;it&nbsp;never&nbsp;does&nbsp;any<br>
+housecleaning&nbsp;--&nbsp;I&nbsp;see&nbsp;cookies&nbsp;in&nbsp;this&nbsp;file&nbsp;I've&nbsp;not&nbsp;used&nbsp;for&nbsp;months.&nbsp;However,<br>
+since&nbsp;Bugzilla&nbsp;never&nbsp;expires&nbsp;your&nbsp;cookie&nbsp;(for&nbsp;convenience'&nbsp;sake),&nbsp;it&nbsp;makes<br>
+sense.<br>
+<br>
+longdescs:&nbsp;&nbsp;The&nbsp;meat&nbsp;of&nbsp;bugzilla&nbsp;--&nbsp;here&nbsp;is&nbsp;where&nbsp;all&nbsp;user&nbsp;comments&nbsp;are&nbsp;stored!<br>
+You've&nbsp;only&nbsp;got&nbsp;2^24&nbsp;bytes&nbsp;per&nbsp;comment&nbsp;(it's&nbsp;a&nbsp;mediumtext&nbsp;field),&nbsp;so&nbsp;speak<br>
+sparingly&nbsp;--&nbsp;that's&nbsp;only&nbsp;the&nbsp;amount&nbsp;of&nbsp;space&nbsp;the&nbsp;Old&nbsp;Testament&nbsp;from&nbsp;the&nbsp;Bible<br>
+would&nbsp;take&nbsp;(uncompressed,&nbsp;16&nbsp;megabytes).&nbsp;Each&nbsp;comment&nbsp;is&nbsp;keyed&nbsp;to&nbsp;the<br>
+bug_id&nbsp;to&nbsp;which&nbsp;it's&nbsp;attached,&nbsp;so&nbsp;the&nbsp;order&nbsp;is&nbsp;necessarily&nbsp;chronological,&nbsp;for<br>
+comments&nbsp;are&nbsp;played&nbsp;back&nbsp;in&nbsp;the&nbsp;order&nbsp;in&nbsp;which&nbsp;they&nbsp;are&nbsp;received.<br>
+<br>
+milestones:&nbsp;&nbsp;Interesting&nbsp;that&nbsp;milestones&nbsp;are&nbsp;associated&nbsp;with&nbsp;a&nbsp;specific&nbsp;product<br>
+in&nbsp;this&nbsp;table,&nbsp;but&nbsp;Bugzilla&nbsp;does&nbsp;not&nbsp;yet&nbsp;support&nbsp;differing&nbsp;milestones&nbsp;by<br>
+product&nbsp;through&nbsp;the&nbsp;standard&nbsp;configuration&nbsp;interfaces.<br>
+<br>
+namedqueries:&nbsp;&nbsp;This&nbsp;is&nbsp;where&nbsp;everybody&nbsp;stores&nbsp;their&nbsp;"custom&nbsp;queries".&nbsp;Very<br>
+cool&nbsp;feature;&nbsp;it&nbsp;beats&nbsp;the&nbsp;tar&nbsp;out&nbsp;of&nbsp;having&nbsp;to&nbsp;bookmark&nbsp;each&nbsp;cool&nbsp;query&nbsp;you<br>
+construct.<br>
+<br>
+products:&nbsp;&nbsp;What&nbsp;products&nbsp;you&nbsp;have,&nbsp;whether&nbsp;new&nbsp;bug&nbsp;entries&nbsp;are&nbsp;allowed&nbsp;for&nbsp;the<br>
+product,&nbsp;what&nbsp;milestone&nbsp;you're&nbsp;working&nbsp;toward&nbsp;on&nbsp;that&nbsp;product,&nbsp;votes,&nbsp;etc.&nbsp;It<br>
+will&nbsp;be&nbsp;nice&nbsp;when&nbsp;the&nbsp;components&nbsp;table&nbsp;supports&nbsp;these&nbsp;same&nbsp;features,&nbsp;so&nbsp;you<br>
+could&nbsp;close&nbsp;a&nbsp;particular&nbsp;component&nbsp;for&nbsp;bug&nbsp;entry&nbsp;without&nbsp;having&nbsp;to&nbsp;close&nbsp;an<br>
+entire&nbsp;product...<br>
+<br>
+profiles:&nbsp;&nbsp;Ahh,&nbsp;so&nbsp;you&nbsp;were&nbsp;wondering&nbsp;where&nbsp;your&nbsp;precious&nbsp;user&nbsp;information&nbsp;was<br>
+stored?&nbsp;&nbsp;Here&nbsp;it&nbsp;is!&nbsp;&nbsp;With&nbsp;the&nbsp;passwords&nbsp;in&nbsp;plain&nbsp;text&nbsp;for&nbsp;all&nbsp;to&nbsp;see!&nbsp;(but<br>
+sshh...&nbsp;don't&nbsp;tell&nbsp;your&nbsp;users!)<br>
+<br>
+profiles_activity:&nbsp;&nbsp;Need&nbsp;to&nbsp;know&nbsp;who&nbsp;did&nbsp;what&nbsp;when&nbsp;to&nbsp;who's&nbsp;profile?&nbsp;&nbsp;This'll<br>
+tell&nbsp;you,&nbsp;it's&nbsp;a&nbsp;pretty&nbsp;complete&nbsp;history.<br>
+<br>
+versions:&nbsp;&nbsp;Version&nbsp;information&nbsp;for&nbsp;every&nbsp;product<br>
+<br>
+votes:&nbsp;&nbsp;Who&nbsp;voted&nbsp;for&nbsp;what&nbsp;when<br>
+<br>
+watch:&nbsp;&nbsp;Who&nbsp;(according&nbsp;to&nbsp;userid)&nbsp;is&nbsp;watching&nbsp;who's&nbsp;bugs&nbsp;(according&nbsp;to&nbsp;their<br>
+userid).<br>
+<br>
+<br>
+===<br>
+THE&nbsp;DETAILS<br>
+===<br>
+<br>
+&nbsp;&nbsp;Ahh,&nbsp;so&nbsp;you're&nbsp;wondering&nbsp;just&nbsp;what&nbsp;to&nbsp;do&nbsp;with&nbsp;the&nbsp;information&nbsp;above?&nbsp;&nbsp;At&nbsp;the<br>
+mysql&nbsp;prompt,&nbsp;you&nbsp;can&nbsp;view&nbsp;any&nbsp;information&nbsp;about&nbsp;the&nbsp;columns&nbsp;in&nbsp;a&nbsp;table&nbsp;with<br>
+this&nbsp;command&nbsp;(where&nbsp;"table"&nbsp;is&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;table&nbsp;you&nbsp;wish&nbsp;to&nbsp;view):<br>
+<br>
+mysql&#62;&nbsp;show&nbsp;columns&nbsp;from&nbsp;table;<br>
+<br>
+&nbsp;&nbsp;You&nbsp;can&nbsp;also&nbsp;view&nbsp;all&nbsp;the&nbsp;data&nbsp;in&nbsp;a&nbsp;table&nbsp;with&nbsp;this&nbsp;command:<br>
+<br>
+mysql&#62;&nbsp;select&nbsp;*&nbsp;from&nbsp;table;<br>
+<br>
+&nbsp;&nbsp;--&nbsp;note:&nbsp;this&nbsp;is&nbsp;a&nbsp;very&nbsp;bad&nbsp;idea&nbsp;to&nbsp;do&nbsp;on,&nbsp;for&nbsp;instance,&nbsp;the&nbsp;"bugs"&nbsp;table&nbsp;if<br>
+you&nbsp;have&nbsp;50,000&nbsp;bugs.&nbsp;You'll&nbsp;be&nbsp;sitting&nbsp;there&nbsp;a&nbsp;while&nbsp;until&nbsp;you&nbsp;ctrl-c&nbsp;or<br>
+50,000&nbsp;bugs&nbsp;play&nbsp;across&nbsp;your&nbsp;screen.<br>
+<br>
+&nbsp;&nbsp;You&nbsp;can&nbsp;limit&nbsp;the&nbsp;display&nbsp;from&nbsp;above&nbsp;a&nbsp;little&nbsp;with&nbsp;the&nbsp;command,&nbsp;where<br>
+"column"&nbsp;is&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;column&nbsp;for&nbsp;which&nbsp;you&nbsp;wish&nbsp;to&nbsp;restrict&nbsp;information:<br>
+<br>
+mysql&#62;&nbsp;select&nbsp;*&nbsp;from&nbsp;table&nbsp;where&nbsp;(column&nbsp;=&nbsp;"some&nbsp;info");<br>
+<br>
+&nbsp;&nbsp;--&nbsp;or&nbsp;the&nbsp;reverse&nbsp;of&nbsp;this<br>
+<br>
+mysql&#62;&nbsp;select&nbsp;*&nbsp;from&nbsp;table&nbsp;where&nbsp;(column&nbsp;!=&nbsp;"some&nbsp;info");<br>
+<br>
+&nbsp;&nbsp;Let's&nbsp;take&nbsp;our&nbsp;example&nbsp;from&nbsp;the&nbsp;introduction,&nbsp;and&nbsp;assume&nbsp;you&nbsp;need&nbsp;to&nbsp;change<br>
+the&nbsp;word&nbsp;"verified"&nbsp;to&nbsp;"approved"&nbsp;in&nbsp;the&nbsp;resolution&nbsp;field.&nbsp;We&nbsp;know&nbsp;from&nbsp;the<br>
+above&nbsp;information&nbsp;that&nbsp;the&nbsp;resolution&nbsp;is&nbsp;likely&nbsp;to&nbsp;be&nbsp;stored&nbsp;in&nbsp;the&nbsp;"bugs"<br>
+table.&nbsp;Note&nbsp;we'll&nbsp;need&nbsp;to&nbsp;change&nbsp;a&nbsp;little&nbsp;perl&nbsp;code&nbsp;as&nbsp;well&nbsp;as&nbsp;this&nbsp;database<br>
+change,&nbsp;but&nbsp;I&nbsp;won't&nbsp;plunge&nbsp;into&nbsp;that&nbsp;in&nbsp;this&nbsp;document.&nbsp;Let's&nbsp;verify&nbsp;the<br>
+information&nbsp;is&nbsp;stored&nbsp;in&nbsp;the&nbsp;"bugs"&nbsp;table:<br>
+<br>
+mysql&#62;&nbsp;show&nbsp;columns&nbsp;from&nbsp;bugs<br>
+<br>
+&nbsp;&nbsp;(exceedingly&nbsp;long&nbsp;output&nbsp;truncated&nbsp;here)<br>
+|&nbsp;bug_status|&nbsp;enum('UNCONFIRMED','NEW','ASSIGNED','REOPENED','RESOLVED','VERIFIED','CLOSED')||MUL&nbsp;|&nbsp;UNCONFIRMED||<br>
+<br>
+&nbsp;&nbsp;Sorry&nbsp;about&nbsp;that&nbsp;long&nbsp;line.&nbsp;We&nbsp;see&nbsp;from&nbsp;this&nbsp;that&nbsp;the&nbsp;"bug&nbsp;status"&nbsp;column&nbsp;is<br>
+an&nbsp;"enum&nbsp;field",&nbsp;which&nbsp;is&nbsp;a&nbsp;MySQL&nbsp;peculiarity&nbsp;where&nbsp;a&nbsp;string&nbsp;type&nbsp;field&nbsp;can<br>
+only&nbsp;have&nbsp;certain&nbsp;types&nbsp;of&nbsp;entries.&nbsp;While&nbsp;I&nbsp;think&nbsp;this&nbsp;is&nbsp;very&nbsp;cool,&nbsp;it's&nbsp;not<br>
+standard&nbsp;SQL.&nbsp;Anyway,&nbsp;we&nbsp;need&nbsp;to&nbsp;add&nbsp;the&nbsp;possible&nbsp;enum&nbsp;field&nbsp;entry<br>
+'APPROVED'&nbsp;by&nbsp;altering&nbsp;the&nbsp;"bugs"&nbsp;table.<br>
+<br>
+mysql&#62;&nbsp;ALTER&nbsp;table&nbsp;bugs&nbsp;CHANGE&nbsp;bug_status&nbsp;bug_status<br>
+&nbsp;&nbsp;&nbsp;&nbsp;-&#62;&nbsp;enum("UNCONFIRMED",&nbsp;"NEW",&nbsp;"ASSIGNED",&nbsp;"REOPENED",&nbsp;"RESOLVED",<br>
+&nbsp;&nbsp;&nbsp;&nbsp;-&#62;&nbsp;"VERIFIED",&nbsp;"APPROVED",&nbsp;"CLOSED")&nbsp;not&nbsp;null;<br>
+<br>
+&nbsp;&nbsp;&nbsp;&nbsp;(note&nbsp;we&nbsp;can&nbsp;take&nbsp;three&nbsp;lines&nbsp;or&nbsp;more&nbsp;--&nbsp;whatever&nbsp;you&nbsp;put&nbsp;in&nbsp;before&nbsp;the<br>
+semicolon&nbsp;is&nbsp;evaluated&nbsp;as&nbsp;a&nbsp;single&nbsp;expression)<br>
+<br>
+Now&nbsp;if&nbsp;you&nbsp;do&nbsp;this:<br>
+<br>
+mysql&#62;&nbsp;show&nbsp;columns&nbsp;from&nbsp;bugs;<br>
+<br>
+&nbsp;&nbsp;you'll&nbsp;see&nbsp;that&nbsp;the&nbsp;bug_status&nbsp;field&nbsp;has&nbsp;an&nbsp;extra&nbsp;"APPROVED"&nbsp;enum&nbsp;that's<br>
+available!&nbsp;&nbsp;Cool&nbsp;thing,&nbsp;too,&nbsp;is&nbsp;that&nbsp;this&nbsp;is&nbsp;reflected&nbsp;on&nbsp;your&nbsp;query&nbsp;page&nbsp;as<br>
+well&nbsp;--&nbsp;you&nbsp;can&nbsp;query&nbsp;by&nbsp;the&nbsp;new&nbsp;status.&nbsp;But&nbsp;how's&nbsp;it&nbsp;fit&nbsp;into&nbsp;the&nbsp;existing<br>
+scheme&nbsp;of&nbsp;things?<br>
+&nbsp;&nbsp;Looks&nbsp;like&nbsp;you&nbsp;need&nbsp;to&nbsp;go&nbsp;back&nbsp;and&nbsp;look&nbsp;for&nbsp;instances&nbsp;of&nbsp;the&nbsp;word&nbsp;"verified"<br>
+in&nbsp;the&nbsp;perl&nbsp;code&nbsp;for&nbsp;Bugzilla&nbsp;--&nbsp;wherever&nbsp;you&nbsp;find&nbsp;"verified",&nbsp;change&nbsp;it&nbsp;to<br>
+"approved"&nbsp;and&nbsp;you're&nbsp;in&nbsp;business&nbsp;(make&nbsp;sure&nbsp;that's&nbsp;a&nbsp;case-insensitive&nbsp;search).<br>
+Although&nbsp;you&nbsp;can&nbsp;query&nbsp;by&nbsp;the&nbsp;enum&nbsp;field,&nbsp;you&nbsp;can't&nbsp;give&nbsp;something&nbsp;a&nbsp;status<br>
+of&nbsp;"APPROVED"&nbsp;until&nbsp;you&nbsp;make&nbsp;the&nbsp;perl&nbsp;changes.&nbsp;Note&nbsp;that&nbsp;this&nbsp;change&nbsp;I<br>
+mentioned&nbsp;can&nbsp;also&nbsp;be&nbsp;done&nbsp;by&nbsp;editing&nbsp;checksetup.pl,&nbsp;which&nbsp;automates&nbsp;a&nbsp;lot&nbsp;of<br>
+this.&nbsp;But&nbsp;you&nbsp;need&nbsp;to&nbsp;know&nbsp;this&nbsp;stuff&nbsp;anyway,&nbsp;right?<br>
+ </P
></DIV
->
- </P
></DIV
></DIV
><DIV
@@ -9571,7 +9392,7 @@ CLASS="section"
><A
NAME="integration"
></A
->5.10. Integrating Bugzilla with Third-Party Tools</H1
+>6.5. Integrating Bugzilla with Third-Party Tools</H1
><DIV
CLASS="section"
><H2
@@ -9579,7 +9400,7 @@ CLASS="section"
><A
NAME="bonsai"
></A
->5.10.1. Bonsai</H2
+>6.5.1. Bonsai</H2
><P
>Bonsai is a web-based tool for managing
<A
@@ -9605,7 +9426,7 @@ CLASS="section"
><A
NAME="cvs"
></A
->5.10.2. CVS</H2
+>6.5.2. CVS</H2
><P
>CVS integration is best accomplished, at this point, using the
Bugzilla Email Gateway.</P
@@ -9641,7 +9462,7 @@ CLASS="section"
><A
NAME="scm"
></A
->5.10.3. Perforce SCM</H2
+>6.5.3. Perforce SCM</H2
><P
>You can find the project page for Bugzilla and Teamtrack Perforce
integration (p4dti) at:
@@ -9681,9 +9502,22 @@ CLASS="section"
><A
NAME="tinderbox"
></A
->5.10.4. Tinderbox/Tinderbox2</H2
+>6.5.4. Tinderbox/Tinderbox2</H2
><P
->We need Tinderbox integration information.</P
+>Tinderbox is a continuous-build system which can integrate with
+ Bugzilla - see
+ <A
+HREF="http://www.mozilla.org/projects/tinderbox"
+TARGET="_top"
+>http://www.mozilla.org/projects/tinderbox</A
+> for details
+ of Tinderbox, and
+ <A
+HREF="http://tinderbox.mozilla.org/showbuilds.cgi"
+TARGET="_top"
+>http://tinderbox.mozilla.org/showbuilds.cgi</A
+> to see it
+ in action.</P
></DIV
></DIV
></DIV
@@ -9709,56 +9543,51 @@ HREF="#faq-general"
><DL
><DT
>A.1.1. <A
-HREF="#faq-general-information"
->&#13; Where can I find information about Bugzilla?</A
-></DT
-><DT
->A.1.2. <A
HREF="#faq-general-license"
>&#13; What license is Bugzilla distributed under?
</A
></DT
><DT
->A.1.3. <A
+>A.1.2. <A
HREF="#faq-general-support"
>&#13; How do I get commercial support for Bugzilla?
</A
></DT
><DT
->A.1.4. <A
+>A.1.3. <A
HREF="#faq-general-companies"
>&#13; What major companies or projects are currently using Bugzilla
for bug-tracking?
</A
></DT
><DT
->A.1.5. <A
+>A.1.4. <A
HREF="#faq-general-maintainers"
>&#13; Who maintains Bugzilla?
</A
></DT
><DT
->A.1.6. <A
+>A.1.5. <A
HREF="#faq-general-compare"
>&#13; How does Bugzilla stack up against other bug-tracking databases?
</A
></DT
><DT
->A.1.7. <A
+>A.1.6. <A
HREF="#faq-general-bzmissing"
>&#13; Why doesn't Bugzilla offer this or that feature or compatibility
with this other tracking software?
</A
></DT
><DT
->A.1.8. <A
+>A.1.7. <A
HREF="#faq-general-mysql"
>&#13; Why MySQL? I'm interested in seeing Bugzilla run on
Oracle/Sybase/Msql/PostgreSQL/MSSQL.
</A
></DT
><DT
->A.1.9. <A
+>A.1.8. <A
HREF="#faq-general-bonsaitools"
>&#13; What is <TT
CLASS="filename"
@@ -9767,7 +9596,7 @@ CLASS="filename"
</A
></DT
><DT
->A.1.10. <A
+>A.1.9. <A
HREF="#faq-general-perlpath"
>&#13; My perl is not located at <TT
CLASS="filename"
@@ -9777,7 +9606,7 @@ CLASS="filename"
</A
></DT
><DT
->A.1.11. <A
+>A.1.10. <A
HREF="#faq-general-cookie"
>&#13; Is there an easy way to change the Bugzilla cookie name?
</A
@@ -9800,33 +9629,6 @@ HREF="#faq-phb-client"
></DT
><DT
>A.2.2. <A
-HREF="#faq-phb-integration"
->&#13; Can Bugzilla integrate with
- Perforce (SCM software)?
- </A
-></DT
-><DT
->A.2.3. <A
-HREF="#faq-phb-projects"
->&#13; Does Bugzilla allow the user to track multiple projects?
- </A
-></DT
-><DT
->A.2.4. <A
-HREF="#faq-phb-sorting"
->&#13; If I am on many projects, and search for all bugs assigned to me, will
- Bugzilla list them for me and allow me to sort by project, severity etc?
- </A
-></DT
-><DT
->A.2.5. <A
-HREF="#faq-phb-attachments"
->&#13; Does Bugzilla allow attachments (text, screenshots, URLs etc)? If yes,
- are there any that are NOT allowed?
- </A
-></DT
-><DT
->A.2.6. <A
HREF="#faq-phb-priorities"
>&#13; Does Bugzilla allow us to define our own priorities and levels? Do we
have complete freedom to change the labels of fields and format of them, and
@@ -9834,35 +9636,28 @@ HREF="#faq-phb-priorities"
</A
></DT
><DT
->A.2.7. <A
+>A.2.3. <A
HREF="#faq-phb-reporting"
>&#13; Does Bugzilla provide any reporting features, metrics, graphs, etc? You
know, the type of stuff that management likes to see. :)
</A
></DT
><DT
->A.2.8. <A
+>A.2.4. <A
HREF="#faq-phb-email"
>&#13; Is there email notification and if so, what do you see when you get an
email?
</A
></DT
><DT
->A.2.9. <A
-HREF="#faq-phb-cclist"
->&#13; Can email notification be set up to send to multiple
- people, some on the To List, CC List, BCC List etc?
- </A
-></DT
-><DT
->A.2.10. <A
+>A.2.5. <A
HREF="#faq-phb-emailapp"
>&#13; Do users have to have any particular
type of email application?
</A
></DT
><DT
->A.2.11. <A
+>A.2.6. <A
HREF="#faq-phb-data"
>&#13; Does Bugzilla allow data to be imported and exported? If I had outsiders
write up a bug report using a MS Word bug template, could that template be
@@ -9871,28 +9666,21 @@ HREF="#faq-phb-data"
</A
></DT
><DT
->A.2.12. <A
+>A.2.7. <A
HREF="#faq-phb-l10n"
>&#13; Has anyone converted Bugzilla to another language to be used in other
countries? Is it localizable?
</A
></DT
><DT
->A.2.13. <A
+>A.2.8. <A
HREF="#faq-phb-reports"
>&#13; Can a user create and save reports? Can they do this in Word format?
Excel format?
</A
></DT
><DT
->A.2.14. <A
-HREF="#faq-phb-searching"
->&#13; Does Bugzilla have the ability to search by word, phrase, compound
- search?
- </A
-></DT
-><DT
->A.2.15. <A
+>A.2.9. <A
HREF="#faq-phb-midair"
>&#13; Does Bugzilla provide record locking when there is simultaneous access
to the same bug? Does the second person get a notice that the bug is in use
@@ -9900,29 +9688,29 @@ HREF="#faq-phb-midair"
</A
></DT
><DT
->A.2.16. <A
+>A.2.10. <A
HREF="#faq-phb-backup"
>&#13; Are there any backup features provided?
</A
></DT
><DT
->A.2.17. <A
+>A.2.11. <A
HREF="#faq-phb-livebackup"
>&#13; Can users be on the system while a backup is in progress?
</A
></DT
><DT
->A.2.18. <A
+>A.2.12. <A
HREF="#faq-phb-maintenance"
>&#13; What type of human resources are needed to be on staff to install and
maintain Bugzilla? Specifically, what type of skills does the person need to
have? I need to find out if we were to go with Bugzilla, what types of
individuals would we need to hire and how much would that cost vs buying an
- "Out-of-the-Box" solution.
+ "out-of-the-box" solution?
</A
></DT
><DT
->A.2.19. <A
+>A.2.13. <A
HREF="#faq-phb-installtime"
>&#13; What time frame are we looking at if we decide to hire people to install
and maintain the Bugzilla? Is this something that takes hours or weeks to
@@ -9932,7 +9720,7 @@ HREF="#faq-phb-installtime"
</A
></DT
><DT
->A.2.20. <A
+>A.2.14. <A
HREF="#faq-phb-cost"
>&#13; Is there any licensing fee or other fees for using Bugzilla? Any
out-of-pocket cost other than the bodies needed as identified above?
@@ -9960,14 +9748,6 @@ HREF="#faq-security-knownproblems"
>&#13; Are there any security problems with Bugzilla?
</A
></DT
-><DT
->A.3.3. <A
-HREF="#faq-security-mysqluser"
->&#13; I've implemented the security fixes mentioned in Chris Yeh's security
- advisory of 5/10/2000 advising not to run MySQL as root, and am running into
- problems with MySQL no longer working correctly.
- </A
-></DT
></DL
></DD
><DT
@@ -9994,32 +9774,25 @@ HREF="#faq-email-testing"
><DT
>A.4.3. <A
HREF="#faq-email-whine"
->&#13; I want whineatnews.pl to whine at something more, or other than, only new
+>&#13; I want whineatnews.pl to whine at something different to only new
bugs. How do I do it?
</A
></DT
><DT
>A.4.4. <A
-HREF="#faq-email-procmail"
->&#13; I don't like/want to use Procmail to hand mail off to bug_email.pl.
- What alternatives do I have?
- </A
-></DT
-><DT
->A.4.5. <A
HREF="#faq-email-mailif"
>&#13; How do I set up the email interface to submit/change bugs via email?
</A
></DT
><DT
->A.4.6. <A
+>A.4.5. <A
HREF="#faq-email-sendmailnow"
>&#13; Email takes FOREVER to reach me from Bugzilla -- it's extremely slow.
What gives?
</A
></DT
><DT
->A.4.7. <A
+>A.4.6. <A
HREF="#faq-email-nonreceived"
>&#13; How come email from Bugzilla changes never reaches me?
</A
@@ -10198,38 +9971,10 @@ CLASS="qandaentry"
CLASS="question"
><P
><A
-NAME="faq-general-information"
-></A
-><B
->A.1.1. </B
->
- Where can I find information about Bugzilla?</P
-></DIV
-><DIV
-CLASS="answer"
-><P
-><B
-> </B
->
- You can stay up-to-date with the latest Bugzilla
- information at <A
-HREF="http://www.bugzilla.org/"
-TARGET="_top"
->http://www.bugzilla.org/</A
->.
- </P
-></DIV
-></DIV
-><DIV
-CLASS="qandaentry"
-><DIV
-CLASS="question"
-><P
-><A
NAME="faq-general-license"
></A
><B
->A.1.2. </B
+>A.1.1. </B
>
What license is Bugzilla distributed under?
</P
@@ -10258,7 +10003,7 @@ CLASS="question"
NAME="faq-general-support"
></A
><B
->A.1.3. </B
+>A.1.2. </B
>
How do I get commercial support for Bugzilla?
</P
@@ -10278,16 +10023,6 @@ TARGET="_top"
as consultants for Bugzilla.
</P
><P
->&#13; <A
-HREF="http://www.collab.net/"
-TARGET="_top"
->http://www.collab.net/</A
-> offers
- Bugzilla as part of their standard offering to large projects.
- They do have some minimum fees that are pretty hefty, and generally
- aren't interested in small projects.
- </P
-><P
>&#13; There are several experienced
Bugzilla hackers on the mailing list/newsgroup who are willing
to make themselves available for generous compensation.
@@ -10304,7 +10039,7 @@ CLASS="question"
NAME="faq-general-companies"
></A
><B
->A.1.4. </B
+>A.1.3. </B
>
What major companies or projects are currently using Bugzilla
for bug-tracking?
@@ -10322,9 +10057,9 @@ CLASS="answer"
Bugzilla sites to track bugs in their products. We have a fairly
complete list available on our website at
<A
-HREF="http://bugzilla.org/installation_list.html"
+HREF="http://bugzilla.org/installation-list/"
TARGET="_top"
->http://bugzilla.org/installation_list.html</A
+>http://bugzilla.org/installation-list/</A
>. If you
have an installation of Bugzilla and would like to be added to the
list, whether it's a public install or not, simply e-mail
@@ -10334,11 +10069,7 @@ CLASS="email"
HREF="mailto:gerv@mozilla.org"
>gerv@mozilla.org</A
>&#62;</TT
->. Keep in mind that it's kinda
- difficult to get onto the <SPAN
-CLASS="QUOTE"
->"high-profile"</SPAN
-> list ;).
+>.
</P
></DIV
></DIV
@@ -10351,7 +10082,7 @@ CLASS="question"
NAME="faq-general-maintainers"
></A
><B
->A.1.5. </B
+>A.1.4. </B
>
Who maintains Bugzilla?
</P
@@ -10381,7 +10112,7 @@ CLASS="question"
NAME="faq-general-compare"
></A
><B
->A.1.6. </B
+>A.1.5. </B
>
How does Bugzilla stack up against other bug-tracking databases?
</P
@@ -10419,7 +10150,7 @@ CLASS="question"
NAME="faq-general-bzmissing"
></A
><B
->A.1.7. </B
+>A.1.6. </B
>
Why doesn't Bugzilla offer this or that feature or compatibility
with this other tracking software?
@@ -10459,7 +10190,7 @@ CLASS="question"
NAME="faq-general-mysql"
></A
><B
->A.1.8. </B
+>A.1.7. </B
>
Why MySQL? I'm interested in seeing Bugzilla run on
Oracle/Sybase/Msql/PostgreSQL/MSSQL.
@@ -10504,7 +10235,7 @@ CLASS="question"
NAME="faq-general-bonsaitools"
></A
><B
->A.1.9. </B
+>A.1.8. </B
>
What is <TT
CLASS="filename"
@@ -10546,7 +10277,7 @@ CLASS="question"
NAME="faq-general-perlpath"
></A
><B
->A.1.10. </B
+>A.1.9. </B
>
My perl is not located at <TT
CLASS="filename"
@@ -10595,7 +10326,7 @@ CLASS="question"
NAME="faq-general-cookie"
></A
><B
->A.1.11. </B
+>A.1.10. </B
>
Is there an easy way to change the Bugzilla cookie name?
</P
@@ -10618,36 +10349,6 @@ CLASS="qandadiv"
NAME="faq-phb"
></A
>2. Managerial Questions</H3
-><P
->&#13; <DIV
-CLASS="note"
-><P
-></P
-><TABLE
-CLASS="note"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->&#13; Questions likely to be asked by managers. :-)
- </P
-></TD
-></TR
-></TABLE
-></DIV
->
- </P
><DIV
CLASS="qandaentry"
><DIV
@@ -10669,113 +10370,7 @@ CLASS="answer"
><B
> </B
>
- It is web and e-mail based. You can edit bugs by sending specially
- formatted email to a properly configured Bugzilla, or control via the web.
- </P
-></DIV
-></DIV
-><DIV
-CLASS="qandaentry"
-><DIV
-CLASS="question"
-><P
-><A
-NAME="faq-phb-integration"
-></A
-><B
->A.2.2. </B
->
- Can Bugzilla integrate with
- Perforce (SCM software)?
- </P
-></DIV
-><DIV
-CLASS="answer"
-><P
-><B
-> </B
->
- Yes! You can find more information elsewhere in "The Bugzilla
- Guide" in the "Integration with Third-Party Products" section.
- </P
-></DIV
-></DIV
-><DIV
-CLASS="qandaentry"
-><DIV
-CLASS="question"
-><P
-><A
-NAME="faq-phb-projects"
-></A
-><B
->A.2.3. </B
->
- Does Bugzilla allow the user to track multiple projects?
- </P
-></DIV
-><DIV
-CLASS="answer"
-><P
-><B
-> </B
->
- Absolutely! You can track any number of Products that can each be
- composed of any number of Components.
- </P
-></DIV
-></DIV
-><DIV
-CLASS="qandaentry"
-><DIV
-CLASS="question"
-><P
-><A
-NAME="faq-phb-sorting"
-></A
-><B
->A.2.4. </B
->
- If I am on many projects, and search for all bugs assigned to me, will
- Bugzilla list them for me and allow me to sort by project, severity etc?
- </P
-></DIV
-><DIV
-CLASS="answer"
-><P
-><B
-> </B
->
- Yes.
- </P
-></DIV
-></DIV
-><DIV
-CLASS="qandaentry"
-><DIV
-CLASS="question"
-><P
-><A
-NAME="faq-phb-attachments"
-></A
-><B
->A.2.5. </B
->
- Does Bugzilla allow attachments (text, screenshots, URLs etc)? If yes,
- are there any that are NOT allowed?
- </P
-></DIV
-><DIV
-CLASS="answer"
-><P
-><B
-> </B
->
- Yes - any sort of attachment is allowed, although administrators can
- configure a maximum size.
- Bugzilla gives the user the option of either using the MIME-type
- supplied by the browser, choosing from a pre-defined list or
- manually typing any arbitrary MIME-type.
+ It is web and e-mail based.
</P
></DIV
></DIV
@@ -10788,7 +10383,7 @@ CLASS="question"
NAME="faq-phb-priorities"
></A
><B
->A.2.6. </B
+>A.2.2. </B
>
Does Bugzilla allow us to define our own priorities and levels? Do we
have complete freedom to change the labels of fields and format of them, and
@@ -10825,7 +10420,7 @@ CLASS="question"
NAME="faq-phb-reporting"
></A
><B
->A.2.7. </B
+>A.2.3. </B
>
Does Bugzilla provide any reporting features, metrics, graphs, etc? You
know, the type of stuff that management likes to see. :)
@@ -10863,7 +10458,7 @@ CLASS="question"
NAME="faq-phb-email"
></A
><B
->A.2.8. </B
+>A.2.4. </B
>
Is there email notification and if so, what do you see when you get an
email?
@@ -10876,7 +10471,7 @@ CLASS="answer"
> </B
>
Email notification is user-configurable. By default, the bug id and
- Summary of the bug report accompany each email notification, along with
+ summary of the bug report accompany each email notification, along with
a list of the changes made.
</P
></DIV
@@ -10887,35 +10482,10 @@ CLASS="qandaentry"
CLASS="question"
><P
><A
-NAME="faq-phb-cclist"
-></A
-><B
->A.2.9. </B
->
- Can email notification be set up to send to multiple
- people, some on the To List, CC List, BCC List etc?
- </P
-></DIV
-><DIV
-CLASS="answer"
-><P
-><B
-> </B
->
- Yes.
- </P
-></DIV
-></DIV
-><DIV
-CLASS="qandaentry"
-><DIV
-CLASS="question"
-><P
-><A
NAME="faq-phb-emailapp"
></A
><B
->A.2.10. </B
+>A.2.5. </B
>
Do users have to have any particular
type of email application?
@@ -10974,7 +10544,7 @@ CLASS="question"
NAME="faq-phb-data"
></A
><B
->A.2.11. </B
+>A.2.6. </B
>
Does Bugzilla allow data to be imported and exported? If I had outsiders
write up a bug report using a MS Word bug template, could that template be
@@ -10991,7 +10561,7 @@ CLASS="answer"
Bugzilla can output buglists as HTML (the default), CSV or RDF.
The link for CSV can be found at the bottom of the buglist in HTML
format. This CSV format can easily be imported into MS Excel or
- other spread-sheet applications.
+ other spreadsheet applications.
</P
><P
>&#13; To use the RDF format of the buglist it is necessary to append a
@@ -11000,7 +10570,7 @@ CLASS="computeroutput"
>&#38;ctype=rdf</TT
> to the URL. RDF
is meant to be machine readable and thus it is assumed that the
- URL would be generated progmatically so there is no user visible
+ URL would be generated programatically so there is no user visible
link to this format.
</P
><P
@@ -11036,7 +10606,7 @@ CLASS="question"
NAME="faq-phb-l10n"
></A
><B
->A.2.12. </B
+>A.2.7. </B
>
Has anyone converted Bugzilla to another language to be used in other
countries? Is it localizable?
@@ -11074,7 +10644,7 @@ CLASS="question"
NAME="faq-phb-reports"
></A
><B
->A.2.13. </B
+>A.2.8. </B
>
Can a user create and save reports? Can they do this in Word format?
Excel format?
@@ -11096,36 +10666,10 @@ CLASS="qandaentry"
CLASS="question"
><P
><A
-NAME="faq-phb-searching"
-></A
-><B
->A.2.14. </B
->
- Does Bugzilla have the ability to search by word, phrase, compound
- search?
- </P
-></DIV
-><DIV
-CLASS="answer"
-><P
-><B
-> </B
->
- You have no idea. Bugzilla's query interface, particularly with the
- advanced Boolean operators, is incredibly versatile.
- </P
-></DIV
-></DIV
-><DIV
-CLASS="qandaentry"
-><DIV
-CLASS="question"
-><P
-><A
NAME="faq-phb-midair"
></A
><B
->A.2.15. </B
+>A.2.9. </B
>
Does Bugzilla provide record locking when there is simultaneous access
to the same bug? Does the second person get a notice that the bug is in use
@@ -11152,7 +10696,7 @@ CLASS="question"
NAME="faq-phb-backup"
></A
><B
->A.2.16. </B
+>A.2.10. </B
>
Are there any backup features provided?
</P
@@ -11182,7 +10726,7 @@ CLASS="question"
NAME="faq-phb-livebackup"
></A
><B
->A.2.17. </B
+>A.2.11. </B
>
Can users be on the system while a backup is in progress?
</P
@@ -11208,13 +10752,13 @@ CLASS="question"
NAME="faq-phb-maintenance"
></A
><B
->A.2.18. </B
+>A.2.12. </B
>
What type of human resources are needed to be on staff to install and
maintain Bugzilla? Specifically, what type of skills does the person need to
have? I need to find out if we were to go with Bugzilla, what types of
individuals would we need to hire and how much would that cost vs buying an
- "Out-of-the-Box" solution.
+ "out-of-the-box" solution?
</P
></DIV
><DIV
@@ -11243,7 +10787,7 @@ CLASS="question"
NAME="faq-phb-installtime"
></A
><B
->A.2.19. </B
+>A.2.13. </B
>
What time frame are we looking at if we decide to hire people to install
and maintain the Bugzilla? Is this something that takes hours or weeks to
@@ -11276,7 +10820,7 @@ CLASS="question"
NAME="faq-phb-cost"
></A
><B
->A.2.20. </B
+>A.2.14. </B
>
Is there any licensing fee or other fees for using Bugzilla? Any
out-of-pocket cost other than the bodies needed as identified above?
@@ -11358,34 +10902,6 @@ CLASS="answer"
</P
></DIV
></DIV
-><DIV
-CLASS="qandaentry"
-><DIV
-CLASS="question"
-><P
-><A
-NAME="faq-security-mysqluser"
-></A
-><B
->A.3.3. </B
->
- I've implemented the security fixes mentioned in Chris Yeh's security
- advisory of 5/10/2000 advising not to run MySQL as root, and am running into
- problems with MySQL no longer working correctly.
- </P
-></DIV
-><DIV
-CLASS="answer"
-><P
-><B
-> </B
->
- This is a common problem, related to running out of file descriptors.
- Simply add "ulimit -n unlimited" to the script which starts
- mysqld.
- </P
-></DIV
-></DIV
></DIV
><DIV
CLASS="qandadiv"
@@ -11461,7 +10977,7 @@ NAME="faq-email-whine"
><B
>A.4.3. </B
>
- I want whineatnews.pl to whine at something more, or other than, only new
+ I want whineatnews.pl to whine at something different to only new
bugs. How do I do it?
</P
></DIV
@@ -11489,49 +11005,10 @@ CLASS="qandaentry"
CLASS="question"
><P
><A
-NAME="faq-email-procmail"
-></A
-><B
->A.4.4. </B
->
- I don't like/want to use Procmail to hand mail off to bug_email.pl.
- What alternatives do I have?
- </P
-></DIV
-><DIV
-CLASS="answer"
-><P
-><B
-> </B
->
- You can call bug_email.pl directly from your aliases file, with
- an entry like this:
- <A
-NAME="AEN2067"
-></A
-><BLOCKQUOTE
-CLASS="BLOCKQUOTE"
-><P
->&#13; bugzilla-daemon: "|/usr/local/bin/bugzilla/contrib/bug_email.pl"
- </P
-></BLOCKQUOTE
->
- However, this is fairly nasty and subject to problems; you also
- need to set up your smrsh (sendmail restricted shell) to allow
- it. In a pinch, though, it can work.
- </P
-></DIV
-></DIV
-><DIV
-CLASS="qandaentry"
-><DIV
-CLASS="question"
-><P
-><A
NAME="faq-email-mailif"
></A
><B
->A.4.5. </B
+>A.4.4. </B
>
How do I set up the email interface to submit/change bugs via email?
</P
@@ -11556,7 +11033,7 @@ CLASS="question"
NAME="faq-email-sendmailnow"
></A
><B
->A.4.6. </B
+>A.4.5. </B
>
Email takes FOREVER to reach me from Bugzilla -- it's extremely slow.
What gives?
@@ -11568,7 +11045,21 @@ CLASS="answer"
><B
> </B
>
- If you are using an alternate <A
+ If you are using <SPAN
+CLASS="application"
+>sendmail</SPAN
+>, try enabling
+ <TT
+CLASS="option"
+>sendmailnow</TT
+> in <TT
+CLASS="filename"
+>editparams.cgi</TT
+>.
+
+ </P
+><P
+>&#13; If you are using an alternate <A
HREF="#gloss-mta"
><I
CLASS="glossterm"
@@ -11592,20 +11083,6 @@ CLASS="literal"
>on</TT
>.
</P
-><P
->&#13; If you are using <SPAN
-CLASS="application"
->sendmail</SPAN
->, try enabling
- <TT
-CLASS="option"
->sendmailnow</TT
-> in <TT
-CLASS="filename"
->editparams.cgi</TT
->.
-
- </P
></DIV
></DIV
><DIV
@@ -11617,7 +11094,7 @@ CLASS="question"
NAME="faq-email-nonreceived"
></A
><B
->A.4.7. </B
+>A.4.6. </B
>
How come email from Bugzilla changes never reaches me?
</P
@@ -11634,7 +11111,7 @@ CLASS="answer"
button after entering your email address.
</P
><P
->&#13; If you never receive mail from Bugzilla, chances you do not have
+>&#13; If you never receive mail from Bugzilla, chances are you do not have
sendmail in "/usr/lib/sendmail". Ensure sendmail lives in, or is symlinked
to, "/usr/lib/sendmail".
</P
@@ -11668,11 +11145,12 @@ CLASS="answer"
><B
> </B
>
- Red Hat's old version of Bugzilla (based on 2.8) worked on Oracle.
+ Red Hat's old version of Bugzilla (based on 2.8) worked on Oracle,
+ but it is now so old as to be obsolete, and is totally unsupported.
Red Hat's newer version (based on 2.17.1 and soon to be merged into
the main distribution) runs on PostgreSQL. At this time we know of
- no recent ports of Bugzilla to Oracle but do intend to support it
- in the future (possibly the 2.20 time-frame).
+ no recent ports of Bugzilla to Oracle; to be honest, Bugzilla
+ doesn't need what Oracle offers.
</P
></DIV
></DIV
@@ -11703,10 +11181,9 @@ CLASS="QUOTE"
> utility
(<TT
CLASS="filename"
->./sanitycheck.cgi</TT
-> in the
- Bugzilla_home directory) from your web browser to see! If
- it finishes without errors, you're
+>sanitycheck.cgi</TT
+>) from your web browser to see!
+ If it finishes without errors, you're
<EM
>probably</EM
> OK. If it doesn't come back
@@ -11951,7 +11428,7 @@ CLASS="answer"
><P
>&#13; Microsoft has some advice on this matter, as well:
<A
-NAME="AEN2150"
+NAME="AEN2062"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
@@ -12469,581 +11946,16 @@ TARGET="_top"
CLASS="appendix"
><HR><H1
><A
-NAME="database"
-></A
->Appendix B. The Bugzilla Database</H1
-><DIV
-CLASS="note"
-><P
-></P
-><TABLE
-CLASS="note"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="../images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->This document really needs to be updated with more fleshed out
- information about primary keys, interrelationships, and maybe some nifty
- tables to document dependencies. Any takers?</P
-></TD
-></TR
-></TABLE
-></DIV
-><DIV
-CLASS="section"
-><HR><H1
-CLASS="section"
-><A
-NAME="dbmodify"
-></A
->B.1. Modifying Your Running System</H1
-><P
->Bugzilla optimizes database lookups by storing all relatively
- static information in the
- <TT
-CLASS="filename"
->versioncache</TT
-> file, located in the
- <TT
-CLASS="filename"
->data/</TT
->
- subdirectory under your installation directory.</P
-><P
->If you make a change to the structural data in your database (the
- versions table for example), or to the
- <SPAN
-CLASS="QUOTE"
->"constants"</SPAN
->
-
- encoded in <TT
-CLASS="filename"
->defparams.pl</TT
->, you will need to remove
- the cached content from the data directory (by doing a
- <SPAN
-CLASS="QUOTE"
->"rm data/versioncache"</SPAN
->
-
- ), or your changes won't show up.</P
-><P
-> <TT
-CLASS="filename"
->versioncache</TT
->
- gets automatically regenerated whenever it's more than
- an hour old, so Bugzilla will eventually notice your changes by itself,
- but generally you want it to notice right away, so that you can test
- things.</P
-></DIV
-><DIV
-CLASS="section"
-><HR><H1
-CLASS="section"
-><A
-NAME="dbdoc"
-></A
->B.2. MySQL Bugzilla Database Introduction</H1
-><P
->This information comes straight from my life. I was forced to learn
- how Bugzilla organizes database because of nitpicky requests from users
- for tiny changes in wording, rather than having people re-educate
- themselves or figure out how to work our procedures around the tool. It
- sucks, but it can and will happen to you, so learn how the schema works
- and deal with it when it comes.</P
-><P
->So, here you are with your brand-new installation of Bugzilla.
- You've got MySQL set up, Apache working right, Perl DBI and DBD talking
- to the database flawlessly. Maybe you've even entered a few test bugs to
- make sure email's working; people seem to be notified of new bugs and
- changes, and you can enter and edit bugs to your heart's content. Perhaps
- you've gone through the trouble of setting up a gateway for people to
- submit bugs to your database via email, have had a few people test it,
- and received rave reviews from your beta testers.</P
-><P
->What's the next thing you do? Outline a training strategy for your
- development team, of course, and bring them up to speed on the new tool
- you've labored over for hours.</P
-><P
->Your first training session starts off very well! You have a
- captive audience which seems enraptured by the efficiency embodied in
- this thing called "Bugzilla". You are caught up describing the nifty
- features, how people can save favorite queries in the database, set them
- up as headers and footers on their pages, customize their layouts,
- generate reports, track status with greater efficiency than ever before,
- leap tall buildings with a single bound and rescue Jane from the clutches
- of Certain Death!</P
-><P
->But Certain Death speaks up -- a tiny voice, from the dark corners
- of the conference room. "I have a concern," the voice hisses from the
- darkness, "about the use of the word 'verified'."</P
-><P
->The room, previously filled with happy chatter, lapses into
- reverential silence as Certain Death (better known as the Vice President
- of Software Engineering) continues. "You see, for two years we've used
- the word 'verified' to indicate that a developer or quality assurance
- engineer has confirmed that, in fact, a bug is valid. I don't want to
- lose two years of training to a new software product. You need to change
- the bug status of 'verified' to 'approved' as soon as possible. To avoid
- confusion, of course."</P
-><P
->Oh no! Terror strikes your heart, as you find yourself mumbling
- "yes, yes, I don't think that would be a problem," You review the changes
- with Certain Death, and continue to jabber on, "no, it's not too big a
- change. I mean, we have the source code, right? You know, 'Use the
- Source, Luke' and all that... no problem," All the while you quiver
- inside like a beached jellyfish bubbling, burbling, and boiling on a hot
- Jamaican sand dune...</P
-><P
->Thus begins your adventure into the heart of Bugzilla. You've been
- forced to learn about non-portable enum() fields, varchar columns, and
- tinyint definitions. The Adventure Awaits You!</P
-><DIV
-CLASS="section"
-><HR><H2
-CLASS="section"
-><A
-NAME="AEN2279"
-></A
->B.2.1. Bugzilla Database Basics</H2
-><P
->If you were like me, at this point you're totally clueless about
- the internals of MySQL, and if it weren't for this executive order from
- the Vice President you couldn't care less about the difference between
- a
- <SPAN
-CLASS="QUOTE"
->"bigint"</SPAN
->
-
- and a
- <SPAN
-CLASS="QUOTE"
->"tinyint"</SPAN
->
-
- entry in MySQL. I recommend you refer to the
- <A
-HREF="http://www.mysql.com/documentation/"
-TARGET="_top"
->MySQL documentation</A
->
- . Below are the basics you need to know about the Bugzilla database.
- Check the chart above for more details.</P
-><P
->&#13; <P
-></P
-><OL
-TYPE="1"
-><LI
-><P
->To connect to your database:</P
-><P
->&#13; <TT
-CLASS="prompt"
->bash#</TT
->
-
- <B
-CLASS="command"
->mysql</B
->
-
- <TT
-CLASS="parameter"
-><I
->-u root</I
-></TT
->
- </P
-><P
->If this works without asking you for a password,
- <EM
->shame on you</EM
->
-
- ! You should have locked your security down like the installation
- instructions told you to. You can find details on locking down
- your database in the Bugzilla FAQ in this directory (under
- "Security"), or more robust security generalities in the
- <A
-HREF="http://www.mysql.com/php/manual.php3?section=Privilege_system"
-TARGET="_top"
->MySQL
- searchable documentation</A
->.
- </P
-></LI
-><LI
-><P
->You should now be at a prompt that looks like this:</P
-><P
->&#13; <TT
-CLASS="prompt"
->mysql&#62;</TT
->
- </P
-><P
->At the prompt, if
- <SPAN
-CLASS="QUOTE"
->"bugs"</SPAN
->
-
- is the name you chose in the
- <TT
-CLASS="filename"
->localconfig</TT
->
-
- file for your Bugzilla database, type:</P
-><P
->&#13; <TT
-CLASS="prompt"
->mysql</TT
->
-
- <B
-CLASS="command"
->use bugs;</B
->
- </P
-></LI
-></OL
->
- </P
-><DIV
-CLASS="section"
-><HR><H3
-CLASS="section"
-><A
-NAME="AEN2306"
-></A
->B.2.1.1. Bugzilla Database Tables</H3
-><P
->Imagine your MySQL database as a series of spreadsheets, and
- you won't be too far off. If you use this command:</P
-><P
->&#13; <TT
-CLASS="prompt"
->mysql&#62;</TT
->
- <B
-CLASS="command"
->show tables from bugs;</B
->
- </P
-><P
->you'll be able to see the names of all the
- <SPAN
-CLASS="QUOTE"
->"spreadsheets"</SPAN
->
- (tables) in your database.</P
-><P
->From the command issued above, ou should have some
- output that looks like this:
-<TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;+-------------------+
-| Tables in bugs |
-+-------------------+
-| attachments |
-| bugs |
-| bugs_activity |
-| cc |
-| components |
-| dependencies |
-| fielddefs |
-| groups |
-| keyworddefs |
-| keywords |
-| logincookies |
-| longdescs |
-| milestones |
-| namedqueries |
-| products |
-| profiles |
-| profiles_activity |
-| tokens |
-| versions |
-| votes |
-| watch |
-+-------------------+
-</PRE
-></FONT
-></TD
-></TR
-></TABLE
->
-</P
-><P
-CLASS="literallayout"
-><br>
-&nbsp;&nbsp;Here's&nbsp;an&nbsp;overview&nbsp;of&nbsp;what&nbsp;each&nbsp;table&nbsp;does.&nbsp;Most&nbsp;columns&nbsp;in&nbsp;each&nbsp;table&nbsp;have<br>
-descriptive&nbsp;names&nbsp;that&nbsp;make&nbsp;it&nbsp;fairly&nbsp;trivial&nbsp;to&nbsp;figure&nbsp;out&nbsp;their&nbsp;jobs.<br>
-<br>
-attachments:&nbsp;This&nbsp;table&nbsp;stores&nbsp;all&nbsp;attachments&nbsp;to&nbsp;bugs.&nbsp;It&nbsp;tends&nbsp;to&nbsp;be&nbsp;your<br>
-largest&nbsp;table,&nbsp;yet&nbsp;also&nbsp;generally&nbsp;has&nbsp;the&nbsp;fewest&nbsp;entries&nbsp;because&nbsp;file<br>
-attachments&nbsp;are&nbsp;so&nbsp;(relatively)&nbsp;large.<br>
-<br>
-bugs:&nbsp;&nbsp;This&nbsp;is&nbsp;the&nbsp;core&nbsp;of&nbsp;your&nbsp;system.&nbsp;The&nbsp;bugs&nbsp;table&nbsp;stores&nbsp;most&nbsp;of&nbsp;the<br>
-current&nbsp;information&nbsp;about&nbsp;a&nbsp;bug,&nbsp;with&nbsp;the&nbsp;exception&nbsp;of&nbsp;the&nbsp;info&nbsp;stored&nbsp;in&nbsp;the<br>
-other&nbsp;tables.<br>
-<br>
-bugs_activity:&nbsp;&nbsp;This&nbsp;stores&nbsp;information&nbsp;regarding&nbsp;what&nbsp;changes&nbsp;are&nbsp;made&nbsp;to&nbsp;bugs<br>
-when&nbsp;--&nbsp;a&nbsp;history&nbsp;file.<br>
-<br>
-cc:&nbsp;&nbsp;This&nbsp;tiny&nbsp;table&nbsp;simply&nbsp;stores&nbsp;all&nbsp;the&nbsp;CC&nbsp;information&nbsp;for&nbsp;any&nbsp;bug&nbsp;which&nbsp;has<br>
-any&nbsp;entries&nbsp;in&nbsp;the&nbsp;CC&nbsp;field&nbsp;of&nbsp;the&nbsp;bug.&nbsp;Note&nbsp;that,&nbsp;like&nbsp;most&nbsp;other&nbsp;tables&nbsp;in<br>
-Bugzilla,&nbsp;it&nbsp;does&nbsp;not&nbsp;refer&nbsp;to&nbsp;users&nbsp;by&nbsp;their&nbsp;user&nbsp;names,&nbsp;but&nbsp;by&nbsp;their&nbsp;unique<br>
-userid,&nbsp;stored&nbsp;as&nbsp;a&nbsp;primary&nbsp;key&nbsp;in&nbsp;the&nbsp;profiles&nbsp;table.<br>
-<br>
-components:&nbsp;This&nbsp;stores&nbsp;the&nbsp;programs&nbsp;and&nbsp;components&nbsp;(or&nbsp;products&nbsp;and<br>
-components,&nbsp;in&nbsp;newer&nbsp;Bugzilla&nbsp;parlance)&nbsp;for&nbsp;Bugzilla.&nbsp;Curiously,&nbsp;the&nbsp;"program"<br>
-(product)&nbsp;field&nbsp;is&nbsp;the&nbsp;full&nbsp;name&nbsp;of&nbsp;the&nbsp;product,&nbsp;rather&nbsp;than&nbsp;some&nbsp;other&nbsp;unique<br>
-identifier,&nbsp;like&nbsp;bug_id&nbsp;and&nbsp;user_id&nbsp;are&nbsp;elsewhere&nbsp;in&nbsp;the&nbsp;database.<br>
-<br>
-dependencies:&nbsp;Stores&nbsp;data&nbsp;about&nbsp;those&nbsp;cool&nbsp;dependency&nbsp;trees.<br>
-<br>
-fielddefs:&nbsp;&nbsp;A&nbsp;nifty&nbsp;table&nbsp;that&nbsp;defines&nbsp;other&nbsp;tables.&nbsp;For&nbsp;instance,&nbsp;when&nbsp;you<br>
-submit&nbsp;a&nbsp;form&nbsp;that&nbsp;changes&nbsp;the&nbsp;value&nbsp;of&nbsp;"AssignedTo"&nbsp;this&nbsp;table&nbsp;allows<br>
-translation&nbsp;to&nbsp;the&nbsp;actual&nbsp;field&nbsp;name&nbsp;"assigned_to"&nbsp;for&nbsp;entry&nbsp;into&nbsp;MySQL.<br>
-<br>
-groups:&nbsp;&nbsp;defines&nbsp;bitmasks&nbsp;for&nbsp;groups.&nbsp;A&nbsp;bitmask&nbsp;is&nbsp;a&nbsp;number&nbsp;that&nbsp;can&nbsp;uniquely<br>
-identify&nbsp;group&nbsp;memberships.&nbsp;For&nbsp;instance,&nbsp;say&nbsp;the&nbsp;group&nbsp;that&nbsp;is&nbsp;allowed&nbsp;to<br>
-tweak&nbsp;parameters&nbsp;is&nbsp;assigned&nbsp;a&nbsp;value&nbsp;of&nbsp;"1",&nbsp;the&nbsp;group&nbsp;that&nbsp;is&nbsp;allowed&nbsp;to&nbsp;edit<br>
-users&nbsp;is&nbsp;assigned&nbsp;a&nbsp;"2",&nbsp;and&nbsp;the&nbsp;group&nbsp;that&nbsp;is&nbsp;allowed&nbsp;to&nbsp;create&nbsp;new&nbsp;groups&nbsp;is<br>
-assigned&nbsp;the&nbsp;bitmask&nbsp;of&nbsp;"4".&nbsp;By&nbsp;uniquely&nbsp;combining&nbsp;the&nbsp;group&nbsp;bitmasks&nbsp;(much<br>
-like&nbsp;the&nbsp;chmod&nbsp;command&nbsp;in&nbsp;UNIX,)&nbsp;you&nbsp;can&nbsp;identify&nbsp;a&nbsp;user&nbsp;is&nbsp;allowed&nbsp;to&nbsp;tweak<br>
-parameters&nbsp;and&nbsp;create&nbsp;groups,&nbsp;but&nbsp;not&nbsp;edit&nbsp;users,&nbsp;by&nbsp;giving&nbsp;him&nbsp;a&nbsp;bitmask&nbsp;of<br>
-"5",&nbsp;or&nbsp;a&nbsp;user&nbsp;allowed&nbsp;to&nbsp;edit&nbsp;users&nbsp;and&nbsp;create&nbsp;groups,&nbsp;but&nbsp;not&nbsp;tweak<br>
-parameters,&nbsp;by&nbsp;giving&nbsp;him&nbsp;a&nbsp;bitmask&nbsp;of&nbsp;"6"&nbsp;Simple,&nbsp;huh?<br>
-&nbsp;&nbsp;If&nbsp;this&nbsp;makes&nbsp;no&nbsp;sense&nbsp;to&nbsp;you,&nbsp;try&nbsp;this&nbsp;at&nbsp;the&nbsp;mysql&nbsp;prompt:<br>
-mysql&#62;&nbsp;select&nbsp;*&nbsp;from&nbsp;groups;<br>
-&nbsp;&nbsp;You'll&nbsp;see&nbsp;the&nbsp;list,&nbsp;it&nbsp;makes&nbsp;much&nbsp;more&nbsp;sense&nbsp;that&nbsp;way.<br>
-<br>
-keyworddefs:&nbsp;&nbsp;Definitions&nbsp;of&nbsp;keywords&nbsp;to&nbsp;be&nbsp;used<br>
-<br>
-keywords:&nbsp;Unlike&nbsp;what&nbsp;you'd&nbsp;think,&nbsp;this&nbsp;table&nbsp;holds&nbsp;which&nbsp;keywords&nbsp;are<br>
-associated&nbsp;with&nbsp;which&nbsp;bug&nbsp;id's.<br>
-<br>
-logincookies:&nbsp;This&nbsp;stores&nbsp;every&nbsp;login&nbsp;cookie&nbsp;ever&nbsp;assigned&nbsp;to&nbsp;you&nbsp;for&nbsp;every<br>
-machine&nbsp;you've&nbsp;ever&nbsp;logged&nbsp;into&nbsp;Bugzilla&nbsp;from.&nbsp;Curiously,&nbsp;it&nbsp;never&nbsp;does&nbsp;any<br>
-housecleaning&nbsp;--&nbsp;I&nbsp;see&nbsp;cookies&nbsp;in&nbsp;this&nbsp;file&nbsp;I've&nbsp;not&nbsp;used&nbsp;for&nbsp;months.&nbsp;However,<br>
-since&nbsp;Bugzilla&nbsp;never&nbsp;expires&nbsp;your&nbsp;cookie&nbsp;(for&nbsp;convenience'&nbsp;sake),&nbsp;it&nbsp;makes<br>
-sense.<br>
-<br>
-longdescs:&nbsp;&nbsp;The&nbsp;meat&nbsp;of&nbsp;bugzilla&nbsp;--&nbsp;here&nbsp;is&nbsp;where&nbsp;all&nbsp;user&nbsp;comments&nbsp;are&nbsp;stored!<br>
-You've&nbsp;only&nbsp;got&nbsp;2^24&nbsp;bytes&nbsp;per&nbsp;comment&nbsp;(it's&nbsp;a&nbsp;mediumtext&nbsp;field),&nbsp;so&nbsp;speak<br>
-sparingly&nbsp;--&nbsp;that's&nbsp;only&nbsp;the&nbsp;amount&nbsp;of&nbsp;space&nbsp;the&nbsp;Old&nbsp;Testament&nbsp;from&nbsp;the&nbsp;Bible<br>
-would&nbsp;take&nbsp;(uncompressed,&nbsp;16&nbsp;megabytes).&nbsp;Each&nbsp;comment&nbsp;is&nbsp;keyed&nbsp;to&nbsp;the<br>
-bug_id&nbsp;to&nbsp;which&nbsp;it's&nbsp;attached,&nbsp;so&nbsp;the&nbsp;order&nbsp;is&nbsp;necessarily&nbsp;chronological,&nbsp;for<br>
-comments&nbsp;are&nbsp;played&nbsp;back&nbsp;in&nbsp;the&nbsp;order&nbsp;in&nbsp;which&nbsp;they&nbsp;are&nbsp;received.<br>
-<br>
-milestones:&nbsp;&nbsp;Interesting&nbsp;that&nbsp;milestones&nbsp;are&nbsp;associated&nbsp;with&nbsp;a&nbsp;specific&nbsp;product<br>
-in&nbsp;this&nbsp;table,&nbsp;but&nbsp;Bugzilla&nbsp;does&nbsp;not&nbsp;yet&nbsp;support&nbsp;differing&nbsp;milestones&nbsp;by<br>
-product&nbsp;through&nbsp;the&nbsp;standard&nbsp;configuration&nbsp;interfaces.<br>
-<br>
-namedqueries:&nbsp;&nbsp;This&nbsp;is&nbsp;where&nbsp;everybody&nbsp;stores&nbsp;their&nbsp;"custom&nbsp;queries".&nbsp;Very<br>
-cool&nbsp;feature;&nbsp;it&nbsp;beats&nbsp;the&nbsp;tar&nbsp;out&nbsp;of&nbsp;having&nbsp;to&nbsp;bookmark&nbsp;each&nbsp;cool&nbsp;query&nbsp;you<br>
-construct.<br>
-<br>
-products:&nbsp;&nbsp;What&nbsp;products&nbsp;you&nbsp;have,&nbsp;whether&nbsp;new&nbsp;bug&nbsp;entries&nbsp;are&nbsp;allowed&nbsp;for&nbsp;the<br>
-product,&nbsp;what&nbsp;milestone&nbsp;you're&nbsp;working&nbsp;toward&nbsp;on&nbsp;that&nbsp;product,&nbsp;votes,&nbsp;etc.&nbsp;It<br>
-will&nbsp;be&nbsp;nice&nbsp;when&nbsp;the&nbsp;components&nbsp;table&nbsp;supports&nbsp;these&nbsp;same&nbsp;features,&nbsp;so&nbsp;you<br>
-could&nbsp;close&nbsp;a&nbsp;particular&nbsp;component&nbsp;for&nbsp;bug&nbsp;entry&nbsp;without&nbsp;having&nbsp;to&nbsp;close&nbsp;an<br>
-entire&nbsp;product...<br>
-<br>
-profiles:&nbsp;&nbsp;Ahh,&nbsp;so&nbsp;you&nbsp;were&nbsp;wondering&nbsp;where&nbsp;your&nbsp;precious&nbsp;user&nbsp;information&nbsp;was<br>
-stored?&nbsp;&nbsp;Here&nbsp;it&nbsp;is!&nbsp;&nbsp;With&nbsp;the&nbsp;passwords&nbsp;in&nbsp;plain&nbsp;text&nbsp;for&nbsp;all&nbsp;to&nbsp;see!&nbsp;(but<br>
-sshh...&nbsp;don't&nbsp;tell&nbsp;your&nbsp;users!)<br>
-<br>
-profiles_activity:&nbsp;&nbsp;Need&nbsp;to&nbsp;know&nbsp;who&nbsp;did&nbsp;what&nbsp;when&nbsp;to&nbsp;who's&nbsp;profile?&nbsp;&nbsp;This'll<br>
-tell&nbsp;you,&nbsp;it's&nbsp;a&nbsp;pretty&nbsp;complete&nbsp;history.<br>
-<br>
-versions:&nbsp;&nbsp;Version&nbsp;information&nbsp;for&nbsp;every&nbsp;product<br>
-<br>
-votes:&nbsp;&nbsp;Who&nbsp;voted&nbsp;for&nbsp;what&nbsp;when<br>
-<br>
-watch:&nbsp;&nbsp;Who&nbsp;(according&nbsp;to&nbsp;userid)&nbsp;is&nbsp;watching&nbsp;who's&nbsp;bugs&nbsp;(according&nbsp;to&nbsp;their<br>
-userid).<br>
-<br>
-<br>
-===<br>
-THE&nbsp;DETAILS<br>
-===<br>
-<br>
-&nbsp;&nbsp;Ahh,&nbsp;so&nbsp;you're&nbsp;wondering&nbsp;just&nbsp;what&nbsp;to&nbsp;do&nbsp;with&nbsp;the&nbsp;information&nbsp;above?&nbsp;&nbsp;At&nbsp;the<br>
-mysql&nbsp;prompt,&nbsp;you&nbsp;can&nbsp;view&nbsp;any&nbsp;information&nbsp;about&nbsp;the&nbsp;columns&nbsp;in&nbsp;a&nbsp;table&nbsp;with<br>
-this&nbsp;command&nbsp;(where&nbsp;"table"&nbsp;is&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;table&nbsp;you&nbsp;wish&nbsp;to&nbsp;view):<br>
-<br>
-mysql&#62;&nbsp;show&nbsp;columns&nbsp;from&nbsp;table;<br>
-<br>
-&nbsp;&nbsp;You&nbsp;can&nbsp;also&nbsp;view&nbsp;all&nbsp;the&nbsp;data&nbsp;in&nbsp;a&nbsp;table&nbsp;with&nbsp;this&nbsp;command:<br>
-<br>
-mysql&#62;&nbsp;select&nbsp;*&nbsp;from&nbsp;table;<br>
-<br>
-&nbsp;&nbsp;--&nbsp;note:&nbsp;this&nbsp;is&nbsp;a&nbsp;very&nbsp;bad&nbsp;idea&nbsp;to&nbsp;do&nbsp;on,&nbsp;for&nbsp;instance,&nbsp;the&nbsp;"bugs"&nbsp;table&nbsp;if<br>
-you&nbsp;have&nbsp;50,000&nbsp;bugs.&nbsp;You'll&nbsp;be&nbsp;sitting&nbsp;there&nbsp;a&nbsp;while&nbsp;until&nbsp;you&nbsp;ctrl-c&nbsp;or<br>
-50,000&nbsp;bugs&nbsp;play&nbsp;across&nbsp;your&nbsp;screen.<br>
-<br>
-&nbsp;&nbsp;You&nbsp;can&nbsp;limit&nbsp;the&nbsp;display&nbsp;from&nbsp;above&nbsp;a&nbsp;little&nbsp;with&nbsp;the&nbsp;command,&nbsp;where<br>
-"column"&nbsp;is&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;column&nbsp;for&nbsp;which&nbsp;you&nbsp;wish&nbsp;to&nbsp;restrict&nbsp;information:<br>
-<br>
-mysql&#62;&nbsp;select&nbsp;*&nbsp;from&nbsp;table&nbsp;where&nbsp;(column&nbsp;=&nbsp;"some&nbsp;info");<br>
-<br>
-&nbsp;&nbsp;--&nbsp;or&nbsp;the&nbsp;reverse&nbsp;of&nbsp;this<br>
-<br>
-mysql&#62;&nbsp;select&nbsp;*&nbsp;from&nbsp;table&nbsp;where&nbsp;(column&nbsp;!=&nbsp;"some&nbsp;info");<br>
-<br>
-&nbsp;&nbsp;Let's&nbsp;take&nbsp;our&nbsp;example&nbsp;from&nbsp;the&nbsp;introduction,&nbsp;and&nbsp;assume&nbsp;you&nbsp;need&nbsp;to&nbsp;change<br>
-the&nbsp;word&nbsp;"verified"&nbsp;to&nbsp;"approved"&nbsp;in&nbsp;the&nbsp;resolution&nbsp;field.&nbsp;We&nbsp;know&nbsp;from&nbsp;the<br>
-above&nbsp;information&nbsp;that&nbsp;the&nbsp;resolution&nbsp;is&nbsp;likely&nbsp;to&nbsp;be&nbsp;stored&nbsp;in&nbsp;the&nbsp;"bugs"<br>
-table.&nbsp;Note&nbsp;we'll&nbsp;need&nbsp;to&nbsp;change&nbsp;a&nbsp;little&nbsp;perl&nbsp;code&nbsp;as&nbsp;well&nbsp;as&nbsp;this&nbsp;database<br>
-change,&nbsp;but&nbsp;I&nbsp;won't&nbsp;plunge&nbsp;into&nbsp;that&nbsp;in&nbsp;this&nbsp;document.&nbsp;Let's&nbsp;verify&nbsp;the<br>
-information&nbsp;is&nbsp;stored&nbsp;in&nbsp;the&nbsp;"bugs"&nbsp;table:<br>
-<br>
-mysql&#62;&nbsp;show&nbsp;columns&nbsp;from&nbsp;bugs<br>
-<br>
-&nbsp;&nbsp;(exceedingly&nbsp;long&nbsp;output&nbsp;truncated&nbsp;here)<br>
-|&nbsp;bug_status|&nbsp;enum('UNCONFIRMED','NEW','ASSIGNED','REOPENED','RESOLVED','VERIFIED','CLOSED')||MUL&nbsp;|&nbsp;UNCONFIRMED||<br>
-<br>
-&nbsp;&nbsp;Sorry&nbsp;about&nbsp;that&nbsp;long&nbsp;line.&nbsp;We&nbsp;see&nbsp;from&nbsp;this&nbsp;that&nbsp;the&nbsp;"bug&nbsp;status"&nbsp;column&nbsp;is<br>
-an&nbsp;"enum&nbsp;field",&nbsp;which&nbsp;is&nbsp;a&nbsp;MySQL&nbsp;peculiarity&nbsp;where&nbsp;a&nbsp;string&nbsp;type&nbsp;field&nbsp;can<br>
-only&nbsp;have&nbsp;certain&nbsp;types&nbsp;of&nbsp;entries.&nbsp;While&nbsp;I&nbsp;think&nbsp;this&nbsp;is&nbsp;very&nbsp;cool,&nbsp;it's&nbsp;not<br>
-standard&nbsp;SQL.&nbsp;Anyway,&nbsp;we&nbsp;need&nbsp;to&nbsp;add&nbsp;the&nbsp;possible&nbsp;enum&nbsp;field&nbsp;entry<br>
-'APPROVED'&nbsp;by&nbsp;altering&nbsp;the&nbsp;"bugs"&nbsp;table.<br>
-<br>
-mysql&#62;&nbsp;ALTER&nbsp;table&nbsp;bugs&nbsp;CHANGE&nbsp;bug_status&nbsp;bug_status<br>
-&nbsp;&nbsp;&nbsp;&nbsp;-&#62;&nbsp;enum("UNCONFIRMED",&nbsp;"NEW",&nbsp;"ASSIGNED",&nbsp;"REOPENED",&nbsp;"RESOLVED",<br>
-&nbsp;&nbsp;&nbsp;&nbsp;-&#62;&nbsp;"VERIFIED",&nbsp;"APPROVED",&nbsp;"CLOSED")&nbsp;not&nbsp;null;<br>
-<br>
-&nbsp;&nbsp;&nbsp;&nbsp;(note&nbsp;we&nbsp;can&nbsp;take&nbsp;three&nbsp;lines&nbsp;or&nbsp;more&nbsp;--&nbsp;whatever&nbsp;you&nbsp;put&nbsp;in&nbsp;before&nbsp;the<br>
-semicolon&nbsp;is&nbsp;evaluated&nbsp;as&nbsp;a&nbsp;single&nbsp;expression)<br>
-<br>
-Now&nbsp;if&nbsp;you&nbsp;do&nbsp;this:<br>
-<br>
-mysql&#62;&nbsp;show&nbsp;columns&nbsp;from&nbsp;bugs;<br>
-<br>
-&nbsp;&nbsp;you'll&nbsp;see&nbsp;that&nbsp;the&nbsp;bug_status&nbsp;field&nbsp;has&nbsp;an&nbsp;extra&nbsp;"APPROVED"&nbsp;enum&nbsp;that's<br>
-available!&nbsp;&nbsp;Cool&nbsp;thing,&nbsp;too,&nbsp;is&nbsp;that&nbsp;this&nbsp;is&nbsp;reflected&nbsp;on&nbsp;your&nbsp;query&nbsp;page&nbsp;as<br>
-well&nbsp;--&nbsp;you&nbsp;can&nbsp;query&nbsp;by&nbsp;the&nbsp;new&nbsp;status.&nbsp;But&nbsp;how's&nbsp;it&nbsp;fit&nbsp;into&nbsp;the&nbsp;existing<br>
-scheme&nbsp;of&nbsp;things?<br>
-&nbsp;&nbsp;Looks&nbsp;like&nbsp;you&nbsp;need&nbsp;to&nbsp;go&nbsp;back&nbsp;and&nbsp;look&nbsp;for&nbsp;instances&nbsp;of&nbsp;the&nbsp;word&nbsp;"verified"<br>
-in&nbsp;the&nbsp;perl&nbsp;code&nbsp;for&nbsp;Bugzilla&nbsp;--&nbsp;wherever&nbsp;you&nbsp;find&nbsp;"verified",&nbsp;change&nbsp;it&nbsp;to<br>
-"approved"&nbsp;and&nbsp;you're&nbsp;in&nbsp;business&nbsp;(make&nbsp;sure&nbsp;that's&nbsp;a&nbsp;case-insensitive&nbsp;search).<br>
-Although&nbsp;you&nbsp;can&nbsp;query&nbsp;by&nbsp;the&nbsp;enum&nbsp;field,&nbsp;you&nbsp;can't&nbsp;give&nbsp;something&nbsp;a&nbsp;status<br>
-of&nbsp;"APPROVED"&nbsp;until&nbsp;you&nbsp;make&nbsp;the&nbsp;perl&nbsp;changes.&nbsp;Note&nbsp;that&nbsp;this&nbsp;change&nbsp;I<br>
-mentioned&nbsp;can&nbsp;also&nbsp;be&nbsp;done&nbsp;by&nbsp;editing&nbsp;checksetup.pl,&nbsp;which&nbsp;automates&nbsp;a&nbsp;lot&nbsp;of<br>
-this.&nbsp;But&nbsp;you&nbsp;need&nbsp;to&nbsp;know&nbsp;this&nbsp;stuff&nbsp;anyway,&nbsp;right?<br>
- </P
-></DIV
-></DIV
-></DIV
-></DIV
-><DIV
-CLASS="appendix"
-><HR><H1
-><A
NAME="patches"
></A
->Appendix C. Useful Patches and Utilities for Bugzilla</H1
+>Appendix B. Contrib</H1
><P
->Are you looking for a way to put your Bugzilla into overdrive? Catch
- some of the niftiest tricks here in this section.</P
-><DIV
-CLASS="section"
-><HR><H1
-CLASS="section"
-><A
-NAME="rewrite"
-></A
->C.1. Apache
- <TT
-CLASS="filename"
->mod_rewrite</TT
->
-
- magic</H1
-><P
->Apache's
- <TT
+>There are a number of unofficial Bugzilla add-ons in the
+ <TT
CLASS="filename"
->mod_rewrite</TT
+>$BUGZILLA_ROOT/contrib/</TT
>
-
- module lets you do some truly amazing things with URL rewriting. Here are
- a couple of examples of what you can do.</P
-><P
-></P
-><OL
-TYPE="1"
-><LI
-><P
->Make it so if someone types
- <TT
-CLASS="computeroutput"
->http://www.foo.com/12345</TT
->
-
- , Bugzilla spits back http://www.foo.com/show_bug.cgi?id=12345. Try
- setting up your VirtualHost section for Bugzilla with a rule like
- this:</P
-><TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><FONT
-COLOR="#000000"
-><PRE
-CLASS="programlisting"
->&#13;&#60;VirtualHost 12.34.56.78&#62;
-RewriteEngine On
-RewriteRule ^/([0-9]+)$ http://foo.bar.com/show_bug.cgi?id=$1 [L,R]
-&#60;/VirtualHost&#62;
-</PRE
-></FONT
-></TD
-></TR
-></TABLE
-></LI
-><LI
-><P
->There are many, many more things you can do with mod_rewrite.
- Please refer to the mod_rewrite documentation at
- <A
-HREF="http://www.apache.org"
-TARGET="_top"
->http://www.apache.org</A
->.
- </P
-></LI
-></OL
-></DIV
+ directory. This section documents them.</P
><DIV
CLASS="section"
><HR><H1
@@ -13051,9 +11963,9 @@ CLASS="section"
><A
NAME="cmdline"
></A
->C.2. Command-line Bugzilla Queries</H1
+>B.1. Command-line Search Interface</H1
><P
->There are a suite of Unix utilities for querying Bugzilla from the
+>There are a suite of Unix utilities for searching Bugzilla from the
command line. They live in the
<TT
CLASS="filename"
@@ -13131,169 +12043,13 @@ CLASS="command"
CLASS="appendix"
><HR><H1
><A
-NAME="variants"
-></A
->Appendix D. Bugzilla Variants and Competitors</H1
-><P
->I created this section to answer questions about Bugzilla competitors
- and variants, then found a wonderful site which covers an awful lot of what
- I wanted to discuss. Rather than quote it in its entirety, I'll simply
- refer you here:
- <A
-HREF="http://linas.org/linux/pm.html"
-TARGET="_top"
->http://linas.org/linux/pm.html</A
->.
- </P
-><DIV
-CLASS="section"
-><HR><H1
-CLASS="section"
-><A
-NAME="variant-redhat"
-></A
->D.1. Red Hat Bugzilla</H1
-><P
->Red Hat's old fork of Bugzilla which was based on version 2.8 is now
- obsolete. The newest version in use is based on version 2.17.1 and is in
- the process of being integrated into the main Bugzilla source tree. The
- back-end is modified to work with PostgreSQL instead of MySQL and they have
- custom templates to get their desired look and feel, but other than that it
- is Bugzilla 2.17.1. Dave Lawrence of Red Hat put forth a great deal of
- effort to make sure that the changes he made could be integrated back into
- the main tree.
- <A
-HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=98304"
-TARGET="_top"
->Bug 98304</A
->
- exists to track this integration.
- </P
-><P
->URL: <A
-HREF="http://bugzilla.redhat.com/bugzilla/"
-TARGET="_top"
->http://bugzilla.redhat.com/bugzilla/</A
->
- </P
-><P
->This section last updated 24 Dec 2002</P
-></DIV
-><DIV
-CLASS="section"
-><HR><H1
-CLASS="section"
-><A
-NAME="variant-fenris"
-></A
->D.2. Loki Bugzilla (Fenris)</H1
-><P
->Fenris was a fork from Bugzilla made by Loki Games; when
- Loki went into receivership, it died. While Loki's other code lives on,
- its custodians recommend Bugzilla for future bug-tracker deployments.
- </P
-><P
->This section last updated 27 Jul 2002</P
-></DIV
-><DIV
-CLASS="section"
-><HR><H1
-CLASS="section"
-><A
-NAME="variant-issuezilla"
-></A
->D.3. Issuezilla</H1
-><P
->Issuezilla was another fork from Bugzilla, made by collab.net and
- hosted at tigris.org. It is also dead; the primary focus of bug-tracking
- at tigris.org is their Java-based bug-tracker,
- <A
-HREF="#variant-scarab"
->Section D.4</A
->.</P
-><P
->This section last updated 27 Jul 2002</P
-></DIV
-><DIV
-CLASS="section"
-><HR><H1
-CLASS="section"
-><A
-NAME="variant-scarab"
-></A
->D.4. Scarab</H1
-><P
->Scarab is a new open source bug-tracking system built using Java
- Servlet technology. It is currently at version 1.0 beta 13.</P
-><P
->URL: <A
-HREF="http://scarab.tigris.org/"
-TARGET="_top"
->http://scarab.tigris.org/</A
->
- </P
-><P
->This section last updated 18 Jan 2003</P
-></DIV
-><DIV
-CLASS="section"
-><HR><H1
-CLASS="section"
-><A
-NAME="variant-perforce"
-></A
->D.5. Perforce SCM</H1
-><P
->Although Perforce isn't really a bug tracker, it can be used as
- such through the <SPAN
-CLASS="QUOTE"
->"jobs"</SPAN
->
- functionality.</P
-><P
->URL: <A
-HREF="http://www.perforce.com/perforce/technotes/note052.html"
-TARGET="_top"
->http://www.perforce.com/perforce/technotes/note052.html</A
->
- </P
-><P
->This section last updated 27 Jul 2002</P
-></DIV
-><DIV
-CLASS="section"
-><HR><H1
-CLASS="section"
-><A
-NAME="variant-sourceforge"
-></A
->D.6. SourceForge</H1
-><P
->SourceForge is a way of coordinating geographically
- distributed free software and open source projects over the Internet.
- It has a built-in bug tracker, but it's not highly thought of.</P
-><P
->URL: <A
-HREF="http://www.sourceforge.net"
-TARGET="_top"
->http://www.sourceforge.net</A
->
- </P
-><P
->This section last updated 27 Jul 2002</P
-></DIV
-></DIV
-><DIV
-CLASS="appendix"
-><HR><H1
-><A
NAME="gfdl"
></A
->Appendix E. GNU Free Documentation License</H1
+>Appendix C. GNU Free Documentation License</H1
><P
>Version 1.1, March 2000</P
><A
-NAME="AEN2394"
+NAME="AEN2192"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
@@ -13756,7 +12512,7 @@ NAME="gfdl-howto"
of the License in the document and put the following copyright and
license notices just after the title page:</P
><A
-NAME="AEN2484"
+NAME="AEN2282"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
@@ -13793,7 +12549,7 @@ CLASS="glossdiv"
><H1
CLASS="glossdiv"
><A
-NAME="AEN2489"
+NAME="AEN2287"
></A
>0-9, high ascii</H1
><DL
@@ -13963,7 +12719,7 @@ TARGET="_top"
>For more information about how to configure Apache for Bugzilla,
see <A
HREF="#http-apache"
->Section 4.4.1</A
+>Section 4.2.1</A
>.
</P
></DD
@@ -14356,7 +13112,7 @@ TARGET="_top"
>Much more detailed information about the suggestions in
<A
HREF="#security-mysql"
->Section 5.6.2</A
+>Section 4.5.2</A
>.
</P
></DD
@@ -14657,7 +13413,7 @@ NAME="gloss-zarro"
Terry had the following to say:
</P
><A
-NAME="AEN2724"
+NAME="AEN2522"
></A
><TABLE
BORDER="0"