The Bugzilla Guide - 3.6 Release
The Bugzilla Team
The Bugzilla Guide - 3.6 Release
by The Bugzilla Team
Published 2010-04-13
This is the documentation for Bugzilla, a bug-tracking system from mozilla.org. Bugzilla is an enterprise-class piece
of software that tracks millions of bugs and issues for hundreds of organizations around the world.
The most current version of this document can always be found on the Bugzilla Documentation Page
(http://www.bugzilla.org/docs/).
Table of Contents
1. About This Guide......................................................................................................................................................1
1.1. Copyright Information....................................................................................................................................1
1.2. Disclaimer ......................................................................................................................................................1
1.3. New Versions..................................................................................................................................................1
1.4. Credits ............................................................................................................................................................1
1.5. Document Conventions ..................................................................................................................................2
2. Installing Bugzilla .....................................................................................................................................................4
2.1. Installation......................................................................................................................................................4
2.1.1. Perl.....................................................................................................................................................4
2.1.2. Database Engine ................................................................................................................................5
2.1.2.1. MySQL..................................................................................................................................5
2.1.2.2. PostgreSQL ...........................................................................................................................5
2.1.2.3. Oracle ....................................................................................................................................5
2.1.3. Web Server.........................................................................................................................................6
2.1.4. Bugzilla..............................................................................................................................................6
2.1.5. Perl Modules......................................................................................................................................6
2.1.5.1. DBD::mysql ..........................................................................................................................8
2.1.5.2. Template Toolkit (2.22).........................................................................................................8
2.1.5.3. GD (1.20) ..............................................................................................................................8
2.1.5.4. Chart::Lines (2.1) ..................................................................................................................9
2.1.5.5. GD::Graph (any) ...................................................................................................................9
2.1.5.6. GD::Text (any) ......................................................................................................................9
2.1.5.7. XML::Twig (any) ..................................................................................................................9
2.1.5.8. SOAP::Lite (0.710.06) ..........................................................................................................9
2.1.5.9. PatchReader (0.9.4)...............................................................................................................9
2.1.6. Mail Transfer Agent (MTA) ..............................................................................................................9
2.1.7. Installing Bugzilla on mod_perl ......................................................................................................10
2.2. Configuration................................................................................................................................................10
2.2.1. localconfig........................................................................................................................................10
2.2.2. Database Server ...............................................................................................................................11
2.2.2.1. Bugzilla Database Schema..................................................................................................11
2.2.2.2. MySQL................................................................................................................................11
2.2.2.3. PostgreSQL .........................................................................................................................13
2.2.2.4. Oracle ..................................................................................................................................14
2.2.3. checksetup.pl ...................................................................................................................................15
2.2.4. Web server .......................................................................................................................................15
2.2.4.1. Bugzilla using Apache ........................................................................................................15
2.2.4.2. Microsoft Internet Information Services.............................................................................17
2.2.5. Bugzilla............................................................................................................................................18
2.3. Optional Additional Configuration...............................................................................................................18
2.3.1. Bug Graphs ......................................................................................................................................18
2.3.2. The Whining Cron ...........................................................................................................................19
2.3.3. Whining ...........................................................................................................................................19
2.3.4. Serving Alternate Formats with the right MIME type.....................................................................20
2.4. Multiple Bugzilla databases with a single installation .................................................................................20
iii
2.5. OS-Specific Installation Notes .....................................................................................................................20
2.5.1. Microsoft Windows .........................................................................................................................21
2.5.1.1. Win32 Perl...........................................................................................................................21
2.5.1.2. Perl Modules on Win32.......................................................................................................21
2.5.1.3. Serving the web pages.........................................................................................................22
2.5.1.4. Sending Email .....................................................................................................................22
2.5.2. Mac OS X ........................................................................................................................................22
2.5.2.1. Sendmail..............................................................................................................................22
2.5.2.2. Libraries & Perl Modules on Mac OS X.............................................................................23
2.5.3. Linux Distributions..........................................................................................................................23
2.6. UNIX (non-root) Installation Notes .............................................................................................................24
2.6.1. Introduction......................................................................................................................................24
2.6.2. MySQL ............................................................................................................................................24
2.6.2.1. Running MySQL as Non-Root ...........................................................................................24
2.6.3. Perl...................................................................................................................................................25
2.6.4. Perl Modules....................................................................................................................................26
2.6.5. HTTP Server....................................................................................................................................26
2.6.5.1. Running Apache as Non-Root ............................................................................................26
2.6.6. Bugzilla............................................................................................................................................27
2.6.6.1. suexec or shared hosting .....................................................................................................27
2.7. Upgrading to New Releases .........................................................................................................................27
2.7.1. Before You Upgrade ........................................................................................................................28
2.7.2. Getting The New Bugzilla ...............................................................................................................28
2.7.2.1. If you have modified your Bugzilla.....................................................................................29
2.7.2.2. Upgrading using CVS .........................................................................................................29
2.7.2.3. Upgrading using the tarball.................................................................................................29
2.7.2.4. Upgrading using patches.....................................................................................................30
2.7.3. Completing Your Upgrade...............................................................................................................31
2.7.4. Automatic Notifications of New Releases .......................................................................................31
3. Administering Bugzilla...........................................................................................................................................33
3.1. Bugzilla Configuration .................................................................................................................................33
3.1.1. Required Settings.............................................................................................................................33
3.1.2. Administrative Policies....................................................................................................................35
3.1.3. User Authentication.........................................................................................................................35
3.1.4. Attachments .....................................................................................................................................35
3.1.5. Bug Change Policies........................................................................................................................35
3.1.6. Bug Fields........................................................................................................................................36
3.1.7. Bug Moving.....................................................................................................................................36
3.1.8. Dependency Graphs.........................................................................................................................36
3.1.9. Group Security.................................................................................................................................36
3.1.10. LDAP Authentication ....................................................................................................................37
3.1.11. RADIUS Authentication................................................................................................................38
3.1.12. Email..............................................................................................................................................39
3.1.13. Patch Viewer ..................................................................................................................................40
3.1.14. Query Defaults...............................................................................................................................40
3.1.15. Shadow Database...........................................................................................................................40
3.1.16. User Matching ...............................................................................................................................40
iv
3.2. User Administration .....................................................................................................................................41
3.2.1. Creating the Default User ................................................................................................................41
3.2.2. Managing Other Users.....................................................................................................................41
3.2.2.1. Searching for existing users ................................................................................................41
3.2.2.2. Creating new users ..............................................................................................................41
3.2.2.3. Modifying Users .................................................................................................................42
3.2.2.4. Deleting Users.....................................................................................................................43
3.2.2.5. Impersonating Users ...........................................................................................................43
3.3. Classifications...............................................................................................................................................44
3.4. Products........................................................................................................................................................44
3.4.1. Creating New Products ....................................................................................................................45
3.4.2. Editing Products...............................................................................................................................45
3.4.3. Adding or Editing Components, Versions and Target Milestones...................................................46
3.4.4. Assigning Group Controls to Products............................................................................................46
3.4.4.1. Common Applications of Group Controls ..........................................................................47
3.5. Components..................................................................................................................................................49
3.6. Versions ........................................................................................................................................................49
3.7. Milestones ....................................................................................................................................................50
3.8. Flags ...................................................................................................................... .......................................50
3.8.1. A Simple Example...........................................................................................................................50
3.8.2. About Flags......................................................................................................................................51
3.8.2.1. Values ..................................................................................................................................51
3.8.3. Using flag requests...........................................................................................................................51
3.8.4. Two Types of Flags..........................................................................................................................51
3.8.4.1. Attachment Flags ................................................................................................................51
3.8.4.2. Bug Flags ............................................................................................................................52
3.8.5. Administering Flags.........................................................................................................................52
3.8.5.1. Editing a Flag ......................................................................................................................52
3.8.5.2. Creating a Flag ....................................................................................................................52
3.8.5.3. Deleting a Flag ....................................................................................................................54
3.9. Keywords......................................................................................................................................................55
3.10. Custom Fields.............................................................................................................................................55
3.10.1. Adding Custom Fields ............................................................................ .......................................55
3.10.2. Editing Custom Fields ...................................................................................................................56
3.10.3. Deleting Custom Fields .................................................................................................................56
3.11. Legal Values ...............................................................................................................................................56
3.11.1. Viewing/Editing legal values .........................................................................................................57
3.11.2. Deleting legal values......................................................................................................................57
3.12. Bug Status Workflow..................................................................................................................................57
3.13. Voting .........................................................................................................................................................57
3.14. Quips ..........................................................................................................................................................58
3.15. Groups and Group Security........................................................................................................................58
3.15.1. Creating Groups.............................................................................................................................59
3.15.2. Editing Groups and Assigning Group Permissions .......................................................................60
3.15.3. Assigning Users to Groups ............................................................................................................61
3.15.4. Assigning Group Controls to Products..........................................................................................61
3.16. Checking and Maintaining Database Integrity...........................................................................................61
v