Mantis Bug Tracker Administration Guide

Mantis Bug Tracker Administration Guide

 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 


Table of Contents About MantisBT
What is MantisBT? Who should read this manual? License Minimum Requirements How to get it? About the Name History Support MantisBT News Versioning
Installation
Summary New Installations Requirements Backups Uninstall
User Management
Creating User Accounts Enabling/Disabling User Accounts Deleting User Accounts User Signup Forgot Password and Reset Password Changing Password Pruning User Accounts Authorization and Access Levels Auto Creation of Accounts on Login User Preferences User Profiles
Issue Lifecycle and Workflow
Issue Creation Issue Statuses Workflow
Workflow Transitions Workflow Thresholds
Configuration
Database Path Webserver Configuration Settings Security and Cryptography Signup and Lost Password Email Version Language Display Time Date News Default Preferences Summary Bugnote File Upload HTML Authentication Status Settings Filters Misc Cookies Database Tables Speed Optimisation Reminders Bug History Sponsorship Custom Fields My View Settings Relationship Graphs Sub-Projects Field Visibility System Logging
Page descriptions
Login page Main page View Issues page Issue View page Issue Change Status page Issue Edit page My Account Page
Preferences Profiles
System Management Pages
Manage Users Manage Projects Page Manage Custom Fields Manage Global Profiles Manage Configuration
Monitor Issue Reopen Issue Delete Issue Close Issue Assign to Me Resolve Issue News Syndication
Customizing MantisBT
Custom Fields
Overview Custom Field Definition Adding/Editing Custom Fields Linking/Unlinking/Ordering Existing Custom Fields in Projects Localizing Custom Field Names Dynamic default values Dynamic values for Enumeration Custom Fields
Enumerations Email Notifications Customizing Status Values Custom Functions
Defined Functions Example Custom Function
Authentication
Standard Authentication HTTP_AUTH BASIC_AUTH LDAP Microsoft Active Directory
Project Management
Change Log Roadmap Time Tracking Graphs Summary Page
Contributing to MantisBT
Talent and Time Recommend MantisBT to Others Blog about MantisBT Integrate with MantisBT Registered in MantisBT Users Directory Donate Money Sponsor MantisBT
Colophon

About MantisBT

What is MantisBT?

MantisBT is a web based bug tracking system that was first made available to the public in November 2000. Over time it has matured and gained a lot of popularity, and now it has become one of the most popular open source bug/issue tracking systems. MantisBT is developed in PHP, with support to multiple database backends including MySQL, MS SQL, PostgreSQL and DB2.

MantisBT, as a PHP script, can run on any operating system that is supported by PHP and has support for one of the DBMSes that are supported. MantisBT is known to run fine on Windows, Linux, OS/2, Mac OS X, System i and a variety of Unix operating systems.


Who should read this manual?

This manual is targeted for the person responsible for evaluating, installing and maintaing MantisBT in a company. Typically we refer to this person as the MantisBT administrator.


License

MantisBT is released under the terms of GNU General Public License (GPL). MantisBT is free to use and modify. It is free to redistribute as long as you abide by the distribution terms of the GPL.


Minimum Requirements

MantisBT has modest software and hardware requirements. It requires a computer that is able to run the server software. All of the required software is free for commercial or non-commercial use. The server can be a shared public web server or a dedicated co-located box. The disk space required will depend on the size of the database, however, it is typically driven by the expected number and size of the attachments.

 

  • Operating System: MantisBT runs on Windows, MacOS, OS/2, Linux, Solaris, the BSDs, and just about anything that supports the required server software.

  • Web Server: MantisBT is mainly tested with Microsoft IIS and Apache. However, it is expected to work with any decent web server software.

  • PHP: The web server must have PHP installed on it. It can be installed as CGI or whatever other integration technology that is supported by PHP and the web server. Required version is PHP 5.1.x or higher. Recommended version is PHP 5.2.x.

  • Database: MantisBT requires a database to store its data. The supported DBMSes include MySQL (4.1.x or higher), MS SQL, PostgreSQL and DB2.

  • Browser: MantisBT aims to support most of the browsers in the market. The mainly supported ones are Internet Explorer and Firefox. However, browsers like Safari, Chrome and Opera should also work fine although they are not used by most developers during development and testing.


How to get it?

MantisBT is available in several Linux distributions including: Debian, Ubuntu, Fedora, Gentoo, Frugalware and others. Hence, if you are running Linux, start by checking if your distribution has a package for MantisBT. If not, or if the package is not up-to-date with the latest MantisBT version, then you may want to download it directly fromhere.

For Windows, Mac OS X and other operating systems, use the link provided above to download MantisBT. The download is compressed in tar.gz or zip format. Both formats can be unpacked using tools like 7-Zip (in case of Windows).

Note that at any point in time there are typically two "latest" MantisBT releases that are available for download. The latest production release (stable), and the latest development release which can be an alpha or a release candidate. It is not recommended to use development releases in production specially if it is still in the alpha stage unless the administrator is familiar with PHP and is able to troubleshoot and fix any issues that may arise.


About the Name

When initially seeking to name this project Ken ran into a problem every programmer encounters. What is a good name? It has to be descriptive, unique, and not too verbose. Additionally having multiple meanings would be a nice touch. Quickly ruled out were php*Something* names which, incidentally, although popular, do not seem to be condoned by the PHP Group developers. Drawing inspiration from Open Source projects like Apache, Mozilla, Gnome, and so forth resulted in two eventual choices: Dragonfly and Mantis. Dragonfly was already the name of a webmail package. So the name became Mantis.

Praying Mantis are insects that feed primarily on other insects and bugs. They are extremely desirable in agriculture as they devour insects that feed on crops. They are also extremely elegant looking creatures. So, we have a name that is fairly distinctive and descriptive in multiple ways. The BT suffix stands for "Bug Tracker" and distinguishes this project from general usage of the word Mantis. However, over time the project was typically referred to as Mantis.


History

Kenzaburo Ito and a friend originally created a bug tracker as an internal tool for their pet project. A search for good, free packages came up with nothing suitable so they wrote their own. After a rewrite and cleanup it was made available to the public via the GNU General Public License (GPL). The GPL was chosen partly because of his belief that development tools should be cheap or free. In 2002, Ken was joined by Jeroen Latour, Victor Boctor and Julian Fitzell to be the administrators and the core development team of MantisBT. This marks a new era in MantisBT lifetime where it is now a team project.


Support

There are plenty of resources to help answer support queries. Following are the main ones:

 

  • Forums - The forums are one of the most popular destinations for getting MantisBT support. Start off by searching the forums for your questions, if not found, then go ahead and submit a question.

  • Mailing lists - Available mailing lists are "mantisbt-announce" for announcements, "mantisbt-dev" for development issues, mantisbt-lang for localization and "mantisbt-help" for general help/support questions. There are public archives for such mailing lists. Note that only members of the mailing lists can post to them, hence, subscribe to the lists before you attempt to email them.

  • IRC - The IRC channel is mainly used by developers to engage in in-person discussion. The recommended tool for IRC is XChat (for Linux), XChat 2 (for Windows). However, you can also use Web Chat to connect to IRC via your web browser. This is also useful when your work firewall blocks the IRC port (although there are other workarounds involving tunneling to fix this issue). Many people prefer to use IRC to ask questions to the developers and other users who are in the IRC channel. The IRC channel logs are archived and made available on the web. (TODO: add irc logs link)

  • Wiki - The MantisBT Wiki has information related to "How To (recipes)", FAQ, feature requirements, etc.

  • Search - A good way for locating an answer for your question or finding more information about a topic is to search across all MantisBT website and the Internet viaGoogle or Bing.

It is important to note that support questions should not be sent directly to MantisBT developers or through the MantisBT contact us pages. Use of "Contact Us" page or emailing the developer directly is available if you are after a paid support or consulting service.


MantisBT News

There are several ways to keep up to date with MantisBT news. These include:

 

  • mantisbt-announce mailing list is a very low traffic list that is used for major announcements, typically announcements about releases. All MantisBT users are encouraged to subscribe to this mailing list. The average traffic should be no more than one to two posts per month.

  • MantisBT Blog is used to communicate announcements about new releases, topics relating to MantisBT, etc. Users are encouraged to subscribe to the RSS feed to know when new posts are posted there.

  • Twitter is used to notify users about up-to-date details about what is happening with MantisBT development. For example, a Twitter update is automatically posted by the official bug tracker whenever an issue is resolved. Twitter users are encouraged to follow "mantisbt".


Versioning

The release numbering convention we use is major.minor.micro (eg. 1.2.0rc1).

 

  • Major - Indicates a very large change in the core package. Rewrites or major milestones.

  • Minor - Significant amount of feature addition/modification.

  • Micro - Mostly bug fixes and maintenance releases.

  • Suffix - rc1 for first release candidate, a1 for alpha 1, etc.


Installation

Following are the steps for a new MantisBT installation:

 

  • Download Mantis

  • Go through MantisBT Configuration and set the database options + whatever options where you need to override the default values.

  • Test your configuration through the admin folder

  • Create a new administrator account and remove the standard user 'administrator'


Summary

 

  1. Tranfer files

  2. Uncompress files

  3. Generate database tables

  4. Edit configuration file, if needed

  5. PHP File extensions

  6. Login

  7. Add projects and users


New Installations

 

  1. First, transfer the file to your webserver using whatever method you likebest (ftp, scp, etc). You will need to telnet/ssh into the server machine forthe next steps.

  2. Next, untar/gunzip it to the directory that you want.The usual command is (1 step): tar zxvf OR (2 steps): gunzip tar xvf Winzip, Stuffit, and other programs should also be able to handledecompression of the archive.At this point you may want to rename the directory to something simpler like 'mantisbt'. You will use the mv command to rename a directory (Windows users substitute the "ren" command or use explorer). mv mantisbt

  3. Next we will create the necessary database tables and a basic configurationfile.From your web server, access http://yoursite/mantisbt/admin/install.php. This page will walk through the following steps:

     

    1. check basic parameters for the web server

    2. prompt for the database type and location, and a database user/passwordpair. For installion, an administrative user/password pair can also be provided. The operating user requires SELECT, INSERT, UPDATE, and DELETE privileges. For installation, INDEX, CREATE, ALTER, and DROP privileges arealso required.

    3. create the database and tables. WARNING: A DEFAULT ADMINISTRATOR level account is created. The account name and password are administrator / root. Use this when you first login to MantisBT. Immediately go to Manage and create at least one administrator level account. Immediately after that DISABLE or DELETE the administrator account. You can recreate it but you should delete the account to prevent the cookie_string from being used to trick the package. It would be even better to rename the account or delete it permanently. REMEMBER: After setting up the package, REMOVE the default administrator account.

    4. write a basic "config_inc.php file to define the database.

    5. perform some post installation checks on the system.

     

  4. The next part involves configuring the installation to work with yourspecific setup.Open the file in an editor and add anyother values that are required. There aremany more that you can use to customize your MantisBT installation. See Configuration for in depth explanations.The file will overwrite the default values with those necessary for setup.You can load up admin/check.php to see if you set things up correctly. NOTE: check.php sometimes reports the value of register_globalsincorrectly. Create a page with this line in it: , save itwith a .php extension and load it up in your web browser. It will, among amultitude of other things, have the correct value of register_globals that youare using.

  5. MantisBT now uses only .php files.If your webserver is configured for other extensions (.PHP3, .PHTML) then youwill have to have the administrator add support for .PHP files. This shouldbe a trivial modification.Documentation can be found at: http://www.php.net/manual/en/installation.php

  6. Login to your bugtracker and go to the manage section. Click on the projects link. You will need to ADD a new project. Then EDIT the new project and remember to ADD at least one category. Otherwise you won't be able to add any issues. That should be it. You're off and running.


Requirements

The following versions are required for proper operation:

 

Package Minimum Version Tested with
MySQL 4.1.x 5.0.x, 6.0.x
PostgreSQL (experimental) 7.0 8.0
PHP 5.1.2 5.2.x
Web Server   Apache 1.3.x, Apache 2.2.x, lighttpd 1.4.x, IIS 6.0

 

MantisBT is designed in a way to work in as many environments as possible. Hence the required extensions are minimal and many of them are optional affecting only one feature. The following PHP extensions are used:

 

  • Mysqli or PostgreSQL or another vendor specific database extension that matches the type of database you are using with MantisBT - mandatory.

  • Hash - mandatory. This extension is available and enabled by default in PHP >= 5.1.2. For earlier versions of PHP you will need to install the PECL Hash extension manually.

  • Curl - if the Twitter integration feature is required.

  • GD - if the captcha and/or graphing features are required.

  • Fileinfo - Guesses the MIME type of attachments. This extension is included by default from version 5.3.x of PHP. For older versions of PHP you will need to install the fileinfo PECL extension (this requires root access to the server you're using). Without this extension, file attachment previews and downloads may not work correctly as MantisBT won't be able to send the Content-Type header to a browser requesting an attachment.


Backups

It is recommended to backup your MantisBT database on a regular basis. This is easy to accomplish using the mysqldump command: mysqldump -u -p > To restore a backup you will need to have a clean database. Then run: mysql -u -p < You can also perform both of these tasks using phpMyAdmin A good idea is to make a backup script and run it regularly through cron or a task scheduler (for Windows see WinCron ). Using the current date in the filename can prevent overwriting and make cataloguing easier. !!! Backups should always be performed before an upgrade !!! Make sure to backup MantisBT code (which includes your configs + possibly customization), issue attachments / project documents, and database contents.


Uninstall

It is recommended that you make an backup in case you wish to use your data in the future. See the Backups page for details. To uninstall MantisBT:

 

  • Delete the MantisBT directory and all files and subdirectories.

  • Drop all MantisBT tables from the database, these can be identified by the configured prefix for the installation. The default prefix is 'mantis'.

  • Remove any customizations or additions that you may have made.

If you have the permissions to create/drop databases and you have a specific database for MantisBT that does not contain any other data, you can drop the whole database.

 


User Management

Creating User Accounts

In MantisBT, there is no limit on the number of user accounts that can be created. Typically, installations with thousands of users tend to have a limited number of users that have access level above REPORTER.

By default users with ADMINISTRATOR access level have access to create new user accounts. The steps to do that are:

 

  • Click "Manage" on Main Menu.

  • Click "Manage Users" (if not selected by default).

  • Click "Create New Account" button just below the alphabet key.

  • Enter user name, email address, global access level (more details about access levels later). Other fields are optional.

  • Click "Create Users".

 

Creating a user triggers the following actions:

 

  • Creating a user in the database.

  • If email notifications ($g_enable_email_notification) is set to ON, then the user will receive an email allowing them to activate their account and set their password. Otherwise, the account will be created with a blank password.

  • If email notifications ($g_enable_email_notification) is set to ON, users with access level about $g_notify_new_user_created_threshold_min will get a notification that a user account has been created. Information about the user like user name and email address are provided. The IP of the user that created the account is also included.

 

When the 'Protected' flag is set on a user account, it indicates that the account is a shared account (e.g. demo account) and hence users logged using such account will not be allowed to change account preferences and profile information.

The anonymous user account specified with the $g_anonymous_account option will always be treated as a protected user account. When you are creating the anonymous user account, the 'Protected' flag is essentially ignored because the anonymous user is always treated as a protected user.


Enabling/Disabling User Accounts

The recommended way of retiring user accounts is to disable them. Scenarios where this is useful is when a person leaves the team and it is necessary to retire their account.

Once an account is disabled the following will be enforced:

 

  • All currently active sessions for the account will be invalidated (i.e. automatically logged out).

  • It will no longer be possible login using this account.

  • No further email notifications will be sent to the account once it is disabled.

  • The user account will not show anymore in lists like "assign to", "send reminder to", etc.

 

The disabling process is totally reversible. Hence, the account can be re-enabled and all the account history will remain intact. For example, the user will still have issues reported by them, assigned to them, monitored by them, etc.


Deleting User Accounts

Another way to retire user accounts is by deleting them. This approach is only recommended for accounts that have not been active (i.e. haven't reported issues). Once the account is deleted, any issues or actions associated with such account, will be associated with user123 (where 123 is the code of the account that was deleted). Note that associated issues or actions are not deleted.

As far as the underlying database, after the deletion of a user, records with the user id as a foreign key will have a value that no longer exists in the users table. Hence, any tools that operate directly on the database must take this into consideration.

By default administrators are the only users who can delete user accounts. They can delete accounts by clicking Manage, Manage Users, locating the user to be deleted and opening it details page, then clicking on the "Delete User" button which deletes the user.

Note that "Deleting Users" is not a reversible process. Hence, if it is required to re-add the user account, it is not possible to recreate the user account so that it gets the same ID and hence retains its history. However, manually creating a record in the users table with the same id, can possibly do that. However, this approach is not recommended or supported.


User Signup

For open source and freeware projects, it is very common to setup MantisBT so that users can signup for an account and get a REPORTER access by default (configurable by the $g_default_new_account_access_level configuration option). The signup process can be enabled / disabled using the $g_allow_signup configuration option, which is enabled by default.

If email notifications ($g_enable_email_notification) is set to ON, users with access level about $g_notify_new_user_created_threshold_min will get a notification that a user account has been created. Information about the user like user name, email address, IP address are included in the email notification.


Forgot Password and Reset Password

It is pretty common for users to forget their password. MantisBT provides two ways to handle such scenario: "Forgot Password" and "Reset Password".

"Forgot Password" is a self service scenario where users go to the login page, figure out they don't remember their password, and then click the "Lost your password?" link. Users are then asked for their user name and email address. If correct, then they are sent an email with a link which allows them to login to MantisBT and change their password.

"Reset Password" scenario is where a user reports to the administrator that they are not able to login into MantisBT anymore. This can be due to forgetting their password and possibly user name or email address that they used when signing up. The administrator then goes to Manage, Manage Users, locates the user account and opens its details. Under the user account details, there is a "Reset Password" button which the administrator can click to reset the password and trigger an email to the user to allow them to get into MantisBT and set their password. In the case where email notifications are disabled, resetting password will set the password to an empty string.


Changing Password

Users are able to change their own passwords (unless their account is "protected"). This can be done by clicking on "My Account", and then typing the new password in the "Password" and "Confirm Password" fields, then clicking "Update User". Changing the password automatically invalidates all logged in sessions and hence the user will be required to re-login. Invalidating existing sessions is very useful in the case where a user going onto a computer, logs into MantisBT and leaves the computer without logging out. By changing the password from another computer, the session on the original computer automatically becomes invalidated.


Pruning User Accounts

The pruning function allows deleting of user accounts for accounts that have been created more than a week ago, and they never logged in. This is particulary useful for users who signed up with an invalid email or with a typo in their email address address.

The account pruning can be done by administrators by going to "Manage", "Manage Users", and clicking the "Prune Accounts" button inside the "Never Logged In" box.


Authorization and Access Levels

MantisBT uses access levels to define what a user can do. Each user account has a global or default access level that is associated with it. This access level is used as the access level for such users for all actions associated with public projects as well as actions that are not related to a specific project. Users with global access level less than $g_private_project_threshold will not have access to private projects by default.

The default access levels shipped with MantisBT out of the box are VIEWER, REPORTER, UPDATER, DEVELOPER, MANAGER and ADMINISTRATOR. Each features has several configuration options associated with it and identifies the required access level to do certain actions. For example, viewing an issue, reporting an issue, updating an issue, adding a note, etc.

For example, in the case of reporting issues, the required access level is configurable using the $g_report_bug_threshold configuration option (which is defaulted to REPORTER). So for a user to be able to report an issue against a public project, the user must have a project-specific or a global access level that is greater than or equal to REPORTER. However, in the case of reporting an issue against a private project, the user must have project specific access level (that is explicitly granted against the project) that is higher than REPORTER or have a global access level that is higher than both $g_private_project_threshold and $g_report_bug_threshold.

Note that project specific access levels override the global access levels. For example, a user may have REPORTER as the global access level, but have a MANAGER access level to a specific project. Or a user may have MANAGER as the global access level by VIEWER access to a specific project. Access levels can be overriden for both public and private projects. However, overriding access level is not allowed for users with global access ADMINISTRATOR.

Each feature typically has multiple access control configuration options to defines what access level can do certain operations. For example, adding a note may require REPORTER access level, updating a note my require DEVELOPER access level, unless the own was owned by the same user and in this case REPORTER access level. Such threshold configuration options can be set to a single access level, which means users with such threshold and above are authorized to do such action. The other option is to specify an array of access level which indicates that users with the explicitly specific thresholds are allowed to do such actions.

It is also worth mentioning that the access levels are defined by the $g_access_levels_enum_string configuration option, and it is possible to customize such list. The default value for the available access levels is '10:viewer, 25:reporter, 40:updater, 55:developer, 70:manager, 90:administrator'. The instructions about how to customize the list of access levels will be covered in the customization section.


Auto Creation of Accounts on Login

In some cases MantisBT is setup in a way, where it allows users that already exists in a directory or another application to be automatically authenticated and added to MantisBT. For example, a company may setup their MantisBT installation in a way, where its staff members that are already registered in their LDAP directory, should be allowed to login into MantisBT with the same user name and password. Another example, is where MantisBT is integrated into some content management system, where it is desired to have a single registration and single sign-on experience. In such scenarios, once a user logs in for the first time, a user account is automatically created for them, although the password verification is still done against LDAP or the main users repository.


User Preferences

Users can fine tune they way MantisBT interacts with them via modifying their user preferences. User preferences can only be managed by users and are not available for the administrators to tweak. The administrators can only tweak the default value for such preferences. However, once a user account is created, it is then the responsibility of the user to manage their own preferences. The user preferences include the following:

 

  • Default Project: A user can choose the default project that is selected when the user first logs in. This can be a specific project or "All Projects". For users that only work on one project, it would make sense to set such project as the default project (rather than "All Projects"). The active project is part of the filter applied on the issues listed in the "View Issues" page. Also any newly reported issues will be associated with the active project.

  • Refresh Delay: The refresh delay is used to specify the number of seconds between auto-refreshes of the View Issues page.

  • Redirect Delay: The redirect delay is the number of seconds to wait after displaying flash messages like "Issue created successfully", and before the user gets redirected to the next page.

  • Notes Sort Order: The preference relating to how notes should be ordered on an issue is viewed or in email notifications. The ascending order is where notes are ordered so that ordered notes appear before newer notes, the descending order is the reverse.

  • Email on New: If unticked, then email notifications relating to creation of a new issue would be disabled. Note that the preference is only used to disabled notifications that as per the administrator's configuration, this user would have qualified to receive them.

  • Email on Change of Handler: TODO - is this preference used?

  • Email on Feedback: TODO - is this preference used?

  • Email on Resolved: TODO

  • Email on Closed: TODO

  • Email on Reopened: TODO

  • Email on Note Added: TODO

  • Email on Status Change: TODO

  • Email on Priority Change: TODO - is this preference used?

  • Email Notes Limit: This preference can be used to limit the number of issue notes to view or to be included in an email notifications. Specifying N here means that the latest N notes will be included. The value 0 causes all notes to be included.

  • Language: The preferred language of the user. This language is used by the GUI and in email notifications. Note that MantisBT uses UTF8 for encoding the data, and hence, the user can be interacting with MantisBT user interface in Chinese while logging issue data in German.

 


User Profiles

A user profile describes an environment that the user uses to run the software for which issues are being tracked. The profile information include "Platform", "Operating System", "OS Version", and "Additional Description". Each user has access to profiles that they create (can be multiple), in addition to global ones that are shared created by other users. When reporting issues, users can elect to enter information like platform, operating system, version manually, or they can choose from the list of profiles that are already defined.

Global profiles are typically used by the administrator to define a set of standard profiles that are typically used by the MantisBT users. This makes it easier for the users to use such profiles without having to define create them. The access level required for users to be able to create global profiles is configured by the $g_manage_global_profile_threshold configuration option and it is defaulted to MANAGER.


Issue Lifecycle and Workflow

Issue Creation

The life cycle of an issue starts with its creation. An issue can be created via one of the following channels:

 

  • MantisBT Web Interface - This is where a user logs into MantisBT and reports a new issue.

  • SOAP API - Where an application automatically reports an issue into MantisBT using the SOAP API web services interfaces. For example, the nighlty build script can automatically report an issue if the build fails.

  • Email - This is not supported out of the box, but there are existing MantisBT patches that would listen to emails on pre-configured email addresses and adds them to the MantisBT database.

  • Others - There can be several other ways to report issues. For example, applications / scripts that directly injects issues into MantisBT database (not recommended, except for one-off migration scripts), or PHP scripts that use the core MantisBT API to create new issues.

 


Issue Statuses

An important part of issue tracking is to classify issues as per their status. Each team may decide to have a different set of categorization for the status of the issues, and hence, MantisBT provides the ability to customize the list of statuses. MantisBT assumes that an issue can be in one of three stages: opened, resolved and closed. Hence, the customized statuses list will be mapped to these three stages. For example, MantisBT comes out of the box with the following statuses: new, feedback, acknowledged, confirmed, assigned, resolved and closed. In this case "new" -> "assigned" map to opened, "resolved" means resolved and "closed" means closed.

Following is the explanation of what the standard statuses that are shipped with MantisBT means.

 

  • New - This is the landing status for new issues. Issues stay in this status until they are assigned, acknowledged, confirmed or resolved. The next status can be "acknowledged", "confirmed", "assigned" or "resolved".

  • Acknowledged - This status is used by the development team to reflect their agreement to the suggested feature request. Or to agree with what the reporter is suggesting in an issue report, although they didn't yet attempt to reproduce what the reporter is referring to. The next status is typically "assigned" or "confirmed".

  • Confirmed - This status is typically used by the development team to mention that they agree with what the reporter is suggesting in the issue and that they have confirmed and reproduced the issue. The next status is typically "assigned".

  • Assigned - This status is used to reflect that the issue has been assigned to one of the team members and that such team member is actively working on the issue. The next status is typically "resolved".

  • Resolved - This status is used to reflect that the issue has been resolved. An issue can be resolved with one of many resolutions (customizable). For example, an issue can be resolved as "fixed", "duplicate", "won't fix", "no change required", etc. The next statuses are typically "closed" or in case of the issue being re-opened, then it would be "feedback".

  • Closed - This status reflects that the issue is completely closed and no further actions are required on it. It also typically hides the issue from the View Issues page. Some teams use "closed" to reflect sign-off by the reporter and others use it to reflect the fact that the fix has been released to customers.

 


Workflow

Now that we have covered how an issue gets created, and what are the different statuses during the life cycle of such issues, the next step is to define the workflow. In other words, how issues move from one status to another and who has access to trigger such transitions. MantisBT provides the ability for teams to define their own custom workflow which works on top of their custom status. The workflow dictates the valid transitions between statuses and the user access level required of the user who triggers such transition.


Workflow Transitions

This "Manage > Manage Configuration > Workflow Transitions" page allows users with ADMINISTRATOR access level to do the following tasks.

 

  • Define the valid next statuses for each status.

  • Define the default next status for each status.

  • Define the minimum access level required for a user to transition to each status.

  • Define the default status for newly created issues.

  • Define the status at which the issue is considered resolved. Any issues with this status code greater than or equal to the specified status will be considered resolved.

  • Define the status which is assigned to issues that are re-opened.

  • Define the required access level to change the workflow.

 

Note that the scope of the applied change is dependent on the selected project. If "All Projects" is selected, then the configuration is to be used as the default for all projects, unless overidden by a specific project. To configure for a specific project, switch to the project via the combobox at the top right corner of the screen.


Workflow Thresholds

This "Manage > Manage Configuration > Workflow Thresholds" page allows users with ADMINISTRATOR access level to define the thresholds required to do certain actions. Following is a list of such actions and what they mean:

 

  • Report an issue - The access levels that are allowed to report an issue.

  • Update an issue - The access levels that are allowed to update the header information of an issue.

  • Allow issue to be closed on resolved - The access levels that are allow to resolve and close an issue in one step.

  • Allow reporter to close issue - Indicates if reporters should be allowed to close issues reported by them.

  • Monitor an issue - The access levels required for a user to be able to monitor an issue. Once a user monitors an issue, the user will be included in all future email notifications relating to changes in the issue.

  • Handle an issue - The access levels required for a user to be shown in the list of users that can handle an issue.

  • Assign an issue - The access levels required for a user to be able to change the handler (i.e. assign / unassign) an issue.

  • Move an issue - The access levels required for a user to be able to move an issue from one project to another. (TODO: are these access levels evaluated against source or destination project?).

  • Delete an issue - The access levels required for a user to be able to delete an issue.

  • Reopen an issue - The access levels required for a user to be able to re-open a resolved or closed issue.

  • Allow Reporter to re-open Issue - Whether the reporter of an issue can re-open a resolved or closed issue, independent of their access level.

  • Status to which a reopened issue is set - This is the status to which an issue is set after it is re-opened.

  • Resolution to which a reopen issue is set - The resolution to set on issues that are reopened.

  • Status where an issue is considered resolved - The status at which an issue is considered resolved.

  • Status where an issue becomes readonly - Issues with such status and above are considered read-only. Read-only issues can only be modified by users with a configured access level. Read-only applies to the issue header information as well as other issue related information like relationships, attachments, notes, etc.

  • Update readonly issues - The access levels required for a user to be able to modify a readonly issue.

  • Update issue status - The access levels required for a user to be able to modify the status of an issue.

  • View private issues - The access levels for a user to be able to view a private issue.

  • Set view status (public vs. private) - The access level for a user to be able to set whether an issue is private or public, when reporting the issue. If the user reporting the issues doesn't have the required access, then the issue will be created with the default view state.

  • Update view status (public vs private) - The access level required for a user to be able to update the view status (i.e. public vs. private).

  • Show list of users monitoring issue - The access level required for a user to be able to view the list of users monitoring an issue.

  • Set status on assignment of handler - The access levels required for a user to be able to re-assign an issue when changing its status.

  • Status to set auto-assigned issues to - The status - This is the status that is set on issues that are auto assigned to users that are associated with the category that the issuer is reported under.

  • Limit reporter's access to their own issues - When set, reporters are only allow to view issues that they have reported.

  • Add notes - The access levels required for users to be able to add notes.

  • Update notes - The access levels required for users to be able to update issue notes.

  • Allow user to edit their own issue notes - A flag that indicates the ability for users to edit issue notes report by them.

  • Delete note - The access levels required for a user to delete a note that they may or may not have reported themselves.

  • View private notes - The access levels required for a user to be able to view private notes associated with an issue that they have access to view.

  • View Change Log - The access levels required for a user to be able to view the change log.

  • View Assigned To - The access levels required for a user to be able to know the handler of an issue that they have access to.

  • View Issue History - The access levels required for a user to be able to view the history of changes of an issue.

  • Send reminders - The access levels required for a user to be able to send reminders to other users relating to an issue that they have access to.

 


Configuration

Database

The database settings must be set in order for the package to work properly. These settings should be provided to you by your system administrator or your hosting company.

 

$g_hostname

Host name or connection string for Database server. The default value is localhost. For MySql, this should be hostname or hostname:port (e.g. localhost:3306).

$g_db_username

User name to use for connecting to the database. The user needs to have read/write access to the MantisBT database. The default user name is "root".

$g_db_password

Password for the specified user name. The default password is empty.

$g_database_name

Name of database that contains MantisBT tables. The default name is 'bugtracker'.

$g_db_schema

The database schema (used in case of DB2), otherwise should be left blank.

$g_db_type

The supported database types include: 'mysql' or 'mysqli' for MySQL, 'pgsql' for PostgreSQL, 'mssql' for MS SQL Server, 'oci8' for Oracle, and 'db2' for DB2. It is important to make sure that the PHP extension corresponding to the database type is enabled.


Path

These path settings are important for proper linking within MantisBT. In most scenarios the default values should work fine, and you should not need to override them.

 

$g_path

URL to your installation as seen from the web browser; this is what you type into the URL field. Requires trailing '/' character. eg. 'http://www.example.com/mantisbt/'. In the following example https protocol is used: eg. 'https://www.example.com/mantisbt/'. MantisBT will default this to the correct value. However, in some cases it might be necessary to override the default. This is typically needed when an installation can be accessed by multiple URLs (internal vs external).

$g_icon_path

This is the URL to the icons (images) directory as seen from the web browser. All MantisBT images/icons are loaded from this URL. The default value for this URL is based on $g_path (i.e. '%path%images/'). Note that a trailing '/' is required.

$g_short_path

Short web path without the domain name. This requires the trailing '/'.

$g_absolute_path

This is the absolute file system path to the MantisBT installation, it is defaulted to the directory where config_defaults_inc.php resides. Requires trailing '/' character (eg. '/usr/apache/htdocs/mantisbt/').

$g_core_path

This is the path to the core directory of your installation. The default value is usually OK but it is recommended that you move the 'core' directory out of your webroot. Requires trailing DIRECTORY_SEPARATOR character.

$g_class_path

This is the path to the classes directory which is a sub-directory of core by default. The default value is typically OK. Requires trailing DIRECTORY_SEPARATOR. character.

$g_library_path

This is the path to the library directory of your installation. The default value is usually OK but it is recommended that you move the 'library' directory out of your webroot. Requires trailing DIRECTORY_SEPARATOR character.

$g_language_path

This is the path to the language directory of your installation. The default value is usually OK but it is recommended that you move the 'language' directory out of your webroot. Requires trailing DIRECTORY_SEPARATOR character.

$g_manual_url

This is the url to the MantisBT online manual. Requires trailing '/' character.


Webserver

 

$g_use_iis

Indicates the IIS (Microsoft Internet Information Server) is the web server on which MantisBT is hosted.


Configuration Settings

 

$g_global_settings

This option contains the list of regular expressions that are used to determine if it is allowed for a specific configuraiton option to be saved to or loaded from the database. Configuration options that matches the regular expressions are considered global only and hence are only configurable via the config_inc.php file and defaulted by config_defaults_inc.php file.


Security and Cryptography

 

$g_crypto_master_salt

Master salt value used for cryptographic hashing throughout MantisBT. This value must be kept secret at all costs. You must generate a unique and random salt value for each installation of MantisBT you control. The minimum length of this string must be at least 16 characters.

The value you select for this salt should be a long string generated using a secure random number generator. An example for Linux systems is:

cat /dev/urandom | head -c 64 | base64

Note that the number of bits of entropy per byte of output from /dev/urandom is not 8. If you're particularly paranoid and don't mind waiting a long time, you could use /dev/random to get much closer to 8 bits of entropy per byte. Moving the mouse (if possible) while generating entropy via /dev/random will greatly improve the speed at which /dev/random produces entropy.

This setting is blank by default. MantisBT will not operate in this state. Hence you are forced to change the value of this configuration option.

 

WARNING: This configuration option has a profound impact on the security of your MantisBT installation. Failure to set this configuration option correctly could lead to your MantisBT installation being compromised. Ensure that this value remains secret. Treat it with the same security that you'd treat the password to your MantisDB database.


Signup and Lost Password

 

$g_allow_signup

Allow users to signup for their own accounts. Default is ON.

$g_max_failed_login_count

Maximum failing login attempts before the account is locked. Once locked, it's required to reset the password (lost password). Value resets to zero at each successfully login. Default is OFF.

$g_notify_new_user_created_threshold_min

The minimum global access level required to be notified when a new user registers via the "signup form". To pick specific access levels that are not necessarily at the higher end of access levels, use an array of access levels. Default is ADMINISTRATOR.

$g_send_reset_password

When set to ON, MantisBT will email the users their new passwords when their accounts are reset. If set to OFF, the password will be reset to blank and no e-mail will be sent. Default is ON.

$g_signup_use_captcha

TODO

$g_system_font_folder

TODO

$g_font_per_captcha

TODO

$g_lost_password_feature

TODO

$g_max_lost_password_in_progress_count

TODO


Email

 

$g_administrator_email

The administrator's e-mail address. This is mainly prompted to the user in case of errors that might require the intervention of the system administrator. For example, SQL errors. [email protected]

$g_webmaster_email

The webmaster's e-mail address. This address is displayed in the bottom of all MantisBT pages. [email protected]

$g_from_email

The email address to be used as the source of all emails sent by MantisBT. [email protected]

$g_return_path_email

Email address to receive bounced emails.

$g_enable_email_notification

Set to ON to enable email notifications, OFF to disable them. Default is ON. Note that disabling email notifications has no effect on emails generated as part of the user signup process. When set to OFF, the password reset feature is disabled. Additionally, notifications of administrators updating accounts are not sent to users.

$g_default_notify_flags

Associated with each action a list of flags to control who should be notified.The default will be used if the action is not included in $g_notify_flags orif the flag is not included in the specific action definition. The list of actions include: new, assigned, resolved, bugnote, reopened, closed, deleted, feedback.The default is: $g_default_notify_flags = array('reporter' => ON, 'handler' => ON, 'monitor' => ON, 'bugnotes' => ON, 'explicit' => ON, 'threshold_min' => NOBODY, 'threshold_max' => NOBODY); threshold_min and threshold_max are used to send messages to all members of the project whose status is greater than or equal to "threshold_min" and less than or equal to "threshold_max". Sending messages to everyone would set "threshold_min" to ANYBODY and "threshold_max to "NOBODY". To send to all DEVELOPERS and above (as 0.17.5), use DEVELOPER and NOBODY respectively.

$g_notify_flags

Defines the notification flags that are different from the defaults that are defined in $g_default_notify_flags. The following code overrides the default by disabling notifications to bugnote authors and users monitoring the bug on submitting a new bug: $g_notify_flags['new'] = array('bugnotes' => OFF, 'monitor' => OFF); Available actions include:

 

  • 'new': a new bug has been added

  • 'reopened': the bug has been reopened

  • 'deleted': a bug has been deleted

  • 'owner': the bug has been assigned a new owner

  • 'bugnote': a bugnote has been added to a bug

  • 'sponsor': the sponsorship for the bug has changed (added, deleted or updated)

  • 'relation': a relationship for the bug has changed (added, deleted or updated)

  • 'monitor': a user is added to the monitor list.

In addition, an action can match the bug status in $g_status_enum_string. Note that spaces in the string are replaced with underscores ('_') in creating the action. Thus, using the defaults, 'feedback' would be a valid action.

 

$g_email_receive_own

This defines whether users should receive emails for their own actions. This option is defaulted to OFF, hence, users do not receive email notification for their own actions. This can be a source for confusions for users upgrading from MantisBT 0.17.x versions, since in these versions users used to get notified of their own actions.

$g_validate_email

Set to OFF to disable email checking. Default is ON.

$g_check_mx_record

Set to OFF to disable email checking. Default is OFF.

$g_allow_blank_email

If ON, allows the user to omit an email address field. If you allow users to create their own accounts, they must specify an email at that point, no matter what the value of this option is. Otherwise they wouldn't get their passwords.

$g_limit_email_domain

Only allow and send email to addresses in the given domain. This is useful as a security feature and it is also useful in cases like Sourceforge where its servers are only limited to send emails to SourceForge email addresses in order to avoid spam. $g_limit_email_domain = 'users.sourceforge.net';

$g_show_user_email_threshold

This specifies the access level that is needed to have user names hyperlinked with mailto: links. The default value is NOBODY, hence, even administrators won't have this feature enabled.

$g_mail_priority

If use_x_priority is set to ON, what should the value be? Urgent = 1, Not Urgent = 5, Disable = 0 . Default is 3 Some MTAs interpret X-Priority = 0 to mean 'Very Urgent'

$g_phpMailer_method

Select the method to mail by: PHPMAILER_METHOD_MAIL for use of mail() function, PHPMAILER_METHOD_SENDMAIL for sendmail (or postfix), PHPMAILER_METHOD_SMTP for SMTP. Default is PHPMAILER_METHOD_MAIL.

$g_smtp_host

This option specifies the SMTP server to submit messages to. The SMTP server (MTA) then takes on the responsibility of deliverying such messages to their final destinations. To use the local SMTP (if available) set this to 'localhost', otherwise use the fully qualified domain name of the remote SMTP server. Default value is 'localhost'.

$g_smtp_port

The smtp port to use. The typical SMTP ports are 25 and 587. The port to use will depend on the SMTP server configuration and hence others may be used. The default is 25.

$g_smtp_connection_mode

This option allows you to specify the connection mode to the SMTP server. Possible values are '', 'ssl', 'tls'. The default value is ''.

$g_smtp_username

This option allows the use of SMTP Authentication when using a remote SMTP host with PHPMailer. If smtp_username is not '' then the username and password will be used when logging in to the SMTP server. Default is ''.

$g_smtp_password

This is the password that is used in SMTP Authentication . Default is ''.

$g_email_send_using_cronjob

TODO

$g_email_set_category

Specify whether e-mails should be sent with the category set or not. This is tested with Microsoft Outlook. More testing for this feature + other formats will be added in the future. OFF, EMAIL_CATEGORY_PROJECT_CATEGORY (format: [Project] Category). Default is OFF.

$g_email_separator1

Default is str_pad('', 70, '='); This means 70 equal signs.

$g_email_separator2

Default is str_pad('', 70, '-'); This means 70 minus signs.

$g_email_padding_length

Default is 28.

MantisBT uses flags and a threshold system to generate emails on events. For each new event, email is sent to:

 

  • the reporter, qualified by the notify flag 'reporter' below

  • the handler (or Assigned to), qualified by the notify flag 'handler' below

  • anyone monitoring the bug, qualified by the notify flag 'monitor' below

  • anyone who has ever added a bugnote the bug, qualified by the notify flag 'bugnotes' below

  • anyone assigned to the project whose access level is greater than or equal to the notify flag 'threshold_min' and less than or equal to the notify flag 'threshold_max' below

 

From this list, those recipients who meet the following criteria are eliminated:

 

  • the originator of the change, if $g_email_receive_own is OFF

  • the recipient either no longer exists, or is disabled

  • the recipient has turned their email_on_ preference OFF

  • the recipient has no email address extered

 


Version

 

$g_show_version

Whether to show the MantisBT version at the bottom of each page or not. Default is ON.


Language

 

$g_default_language

This is the language used by default in MantisBT. This may be set to 'auto' where MantisBT will try to determine the language from the browser.

$g_language_choices_arr

This is to be set to an array of languages that are available for users to choose from. The default value includes all languages supported by MantisBT. The administrator can limit the languages available for users to choose from by overriding this value. For example, to support English, French and German include the following code: array( 'english', 'french', 'german' ); Of course, administrators can also add their own languages by translating the strings and creating their own language files. You are encouraged to share any translation work that you do with the MantisBT team. This will ensure that the newly created language file is maintained with future MantisBT releases.All language files reside in the lang/ folder. They are all named according to the following pattern: strings_.txt.

$g_fallback_language

This is the language used if MantisBT cannot determine the language from the browser. It defaults to 'english'.As of 0.19.0, this may be set to 'auto' where MantisBT will try to determine the language from the browser.

 

If a string does not exist in the active language, the English string is used instead.


Display

 

$g_window_title

This is the browser window title ( tag).</p> </dd> $g_page_title <dd> <p>This is a heading that is displayed in the viewing area of the page.</p> </dd> $g_favicon_image <dd> <p>Path to the favorites icon relative to MantisBT root folder (default 'images/favicon.ico').</p> </dd> $g_logo_image <dd> <p>Path to the logo image relative to MantisBT root folder (default 'images/mantis_logo.gif').</p> </dd> $g_logo_url <dd> <p>The default URL to be associated with the logo. By default this is set to $g_default_home_page (which defaults to My View page). Clicking on the logo from any page in the bug tracker will navigate to the URL specified in this configuration option.</p> </dd> $g_show_footer_menu <dd> <p>Show the menu at the bottom of the page as well as at the top. Default value is OFF.</p> </dd> $g_show_project_menu_bar <dd> <p>This option specifies whether to add menu at the top of the page which includes links to all the projects. The default value is OFF.</p> </dd> $g_show_assigned_names <dd> <p>When a bug is assigned then replace the word "assigned" with the name of the developer in parenthesis. Default is ON.</p> </dd> $g_show_priority_text <dd> <p>Specifies whether to show priority as text (ON) or icon (OFF) in the view all bugs page. Default is OFF (icon).</p> </dd> $g_priority_significant_threshold <dd> <p>Define the priority level at which a bug becomes significant. Significant bugs are displayed with emphasis. Set this value to -1 to disable the feature. The default value is HIGH.</p> </dd> $g_severity_significant_threshold <dd> <p>Define the severity level at which a bug becomes significant. Significant bugs are displayed with emphasis. Set this value to -1 to disable the feature. The default value is MAJOR.</p> </dd> $g_view_issues_page_columns <dd> <p>This configuration option is used to select the columns to be included in the View Issues page and in which order. If one of the column is not accessible to the logged in user, or corresponds to a disabled feature, then it will be automatically removed from the list at runtime. Hence, the same column list may show a different set of columns based on the logged in user, the currently selected project and enabled features (e.g. sponsorship_total is only shown if the sponsorship feature is enabled).</p> <p>The supported columns are: selection, edit, id, project_id, reporter_id, handler_id, priority, reproducibility, projection, eta, resolution, fixed_in_version, view_state, os, os_build, build (for product build), platform, version, date_submitted, attachment, category, sponsorship_total, severity, status, last_updated, summary, bugnotes_count, description, steps_to_reproduce, additional_information. As for custom fields they can be referenced by adding a 'custom_' to their name (e.g. xyz would be custom_xyz).</p> <p>By default the following columns are selected: selection, edit, priority, id, sponsorship_total, bugnotes_count, attachment, category_id, severity, status, last_updated, summary.</p> </dd> $g_print_issues_page_columns <dd> <p>This configuration option is used to select the columns to be included in the Print Issues page and in which order. See $g_view_issues_page_columns for more details about the supported fields.</p> <p>By default the following columns are selected: selection, priority, id, sponsorship_total, bugnotes_count, attachment, category_id, severity, status, last_updated, summary</p> </dd> $g_csv_columns <dd> <p>This configuration option is used to select the columns to be included in the CSV export and in which order. See $g_view_issues_page_columns for more details about the supported fields.</p> <p>By default the following columns are selected: id, project_id, reporter_id, handler_id, priority, severity, reproducibility, version, build, projection, category_id, date_submitted, eta, os, os_build, platform, view_state, last_updated, summary, status, resolution, fixed_in_version, duplicate_id.</p> </dd> $g_excel_columns <dd> <p>This configuration option is used to select the columns to be included in the CSV export and in which order. See $g_view_issues_page_columns for more details about the supported fields.</p> <p>By default the following columns are selected: id, project_id, reporter_id, handler_id, priority, severity, reproducibility, version, build, projection, category_id, date_submitted, eta, os, os_build, platform, view_state, last_updated, summary, status, resolution, fixed_in_version, duplicate_id.</p> </dd> $g_show_bug_project_links <dd> <p>Show project links when in All Projects mode. Default is ON.</p> </dd> $g_status_legend_position <dd> <p>Specifies the position of the status colour legend, can be: STATUS_LEGEND_POSITION_TOP or STATUS_LEGEND_POSITION_BOTTOM. Default is STATUS_LEGEND_POSITION_BOTTOM.</p> </dd> $g_show_attachments_indicator <dd> <p>In view all bug page, show a clip icon next to bugs that has one or more attachments. The default value is OFF. The reason why this is defaulted to OFF is that it adds an extra query for every bug dispayed in the list.</p> </dd> $g_show_product_version <dd> <p>This controls display of the product version in the report, view, update and print issue pages. This flag also applies to other product version related fields like product build, fixed in version, and target version. Valid values are ON, OFF, and AUTO. ON for always displayed, AUTO for displayed when project has versions defined, and OFF for always OFF. The default value is AUTO.</p> </dd> $g_show_version_dates_threshold <dd> <p>The access level threshold at which users will see the date of release for product versions. Dates will be shown next to the product version, target version and fixed in version fields. Set this threshold to NOBODY to disable the feature. Default value is NOBODY.</p> </dd> $g_show_realname <dd> <p>This control will replace the user's userid with their realname. If it is set to ON, and the real name fiels has been populated, the replacement will occur. It defaults to OFF.</p> </dd> $g_show_avatar <dd> <p>Show user avatar (default OFF); the current implementation is based on http://www.gravatar.com, users will need to register there with the same email address used in this MantisBT installation to have their avatar shown.</p> <div class="NOTE"> <p> </p> <table class="NOTE" style="width: 90%;" border="0"> <tbody> <tr> <td width="25" align="CENTER"></td> <td align="LEFT"> <p>Upon registration or avatar change, it takes some time for the updated gravatar images to show on sites.</p> </td> </tr> </tbody> </table> </div> </dd> $g_show_avatar_threshold <dd> <p>The threshold of users for which MantisBT should attempt to show the avatar (default DEVELOPER). Note that the threshold is related to the user for whom the avatar is being shown, rather than the user who is currently logged in.</p> </dd> $g_default_avatar <dd> <p>The full URL to the image to be used when a user doesn't have an avatar account.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Time</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_cookie_time_length <dd> <p>Time for 'permanent' cookie to live in seconds. This is what is used when a user selects "save login". Default is the equivalent of 1 year (30000000).</p> </dd> $g_wait_time <dd> <p>Time to delay between page redirects (in seconds). Users can override this setting in their user preferences. Default is 2 seconds.</p> </dd> $g_content_expire <dd> <p>Time to wait before document is stale (in minutes). This is used in meta_inc.php. Default is 0 (expires right away).</p> </dd> $g_long_process_timeout <dd> <p>This timeout is used by pages which does time consuming operations like upgrading the database. The default value of 0 disables timeout. Note that this timeout is specified in seconds.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Date</h2> <p>These variables control how the date is displayed (default is 'US' formatting). Go to the date() function in PHP online manual for detailed instructions on date formatting.</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_short_date_format <dd> <p>This format is used in the bug listing pages (eg: View Bugs). Default is 'm-d-y'.</p> </dd> $g_normal_date_format <dd> <p>This format is used in the view/update bug pages, bug notes, manage section, and news section. Default is 'm-d-y H:i'.</p> </dd> $g_complete_date_format <dd> <p>This format is used on the top of each page (current time) and the emails that are sent out. Default is 'm-d-y H:i T'.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">News</h2> <p>These options are used to control the query that selects the news entries to be displayed.</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_news_enabled <dd> <p>Indicates whether the news feature should be enabled or disabled. The default is OFF. The news feature is deprecated in favor of being moved to a plugin.</p> </dd> $g_news_limit_method <dd> <p>Limit the news entry that are displayed by number of entries (BY_LIMIT) or by date (BY_DATE). The default is BY_LIMIT.</p> </dd> $g_news_view_limit <dd> <p>The limit for the number of news entries to be displayed. This option is only used if $g_news_limit_method is set to BY_LIMIT.</p> </dd> $g_news_view_limit_days <dd> <p>Specifies the number of dates after which the news are not displayed. This option is only used if $g_news_limit_method is set to BY_DATE.</p> </dd> $g_private_news_threshold <dd> <p>Specifies the access level required to view private news. The default is DEVELOPER.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Default Preferences</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_default_new_account_access_level <dd> <p>This is the default access level users are given when their account is created by email. The default access level is REPORTER. Look in constant_inc.php for other values.</p> </dd> $g_default_bug_view_status <dd> <p>The default viewing status for the new bug (VS_PUBLIC or VS_PRIVATE). The default is VS_PUBLIC.</p> </dd> $g_default_bugnote_view_status <dd> <p>The default viewing status for the new bugnote (VS_PUBLIC or VS_PRIVATE). The default is VS_PUBLIC.</p> </dd> $g_default_reminder_view_status <dd> <p>The default viewing status for the new reminders (VS_PUBLIC or VS_PRIVATE). The default is VS_PUBLIC.</p> </dd> $g_reminder_receive_threshold <dd> <p>The minimum access level for a user to show up in the reminder user picker. Note that this is the access level for the project for which the issue belongs. The default is DEVELOPER.</p> </dd> $g_default_bug_resolution <dd> <p>The resolution for a newly created issue. The default is OPEN. Look in constant_inc.php for other values.</p> </dd> $g_default_bug_severity <dd> <p>The severity for a newly created issue. The default is MINOR. Look in constant_inc.php for other values.</p> </dd> $g_default_bug_priority <dd> <p>The priority for a newly created issue. The default is NORMAL. Look in constant_inc.php for other values.</p> </dd> $g_default_bug_reproducibility <dd> <p>The reproducibility for a newly created issue. The default is REPRODUCIBILITY_HAVENOTTRIED. Look in constant_inc.php for other values.</p> </dd> $g_default_bug_projection <dd> <p>The projection for a newly created issue. The default is PROJECTION_NONE. Look in constant_inc.php for other values.</p> </dd> $g_default_bug_eta <dd> <p>The ETA for a newly created issue. The default is ETA_NONE. Look in constant_inc.php for other values.</p> </dd> $g_default_limit_view <dd> <p>Number of bugs to show in the View Bugs page. The default value is 50.</p> </dd> $g_default_show_changed <dd> <p>Highlight bugs that have changed during the last N hours. The default value is 6.</p> </dd> $g_hide_status_default <dd> <p>Controls which issues will be displayed in the View Issues page. Default value is CLOSED, implying that all issues at "closed" or higher state will not be shown.</p> </dd> $g_min_refresh_delay <dd> <p>This is the delay between automatic refreshes of the View Issues page in minutes. Make sure refresh delay in user preferences isn't too short. If a users set their preferences to be lower then it is bumped back up to this minimum value. The default value is 10 minutes.</p> </dd> </dl> </div> <p>These settings are used as the default values for preferences for new users. Each user can override these settings through the user preferences form. Default language is set to default site language ($g_default_language).</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_default_refresh_delay <dd> <p>Default page refresh delay (in minutes). This is for the bug listing pages. Default value is 30 minutes.</p> </dd> $g_default_redirect_delay <dd> <p>Default delay before a user is redirected to a page after being prompted by a message (eg: operational successful). Default value is 2 seconds.</p> </dd> $g_default_bugnote_order <dd> <p>This controls the time order in which bug notes are displayed. It can be either ASC (oldest first, the default) or DESC (newest first).</p> </dd> $g_default_email_on_new$g_default_email_on_assigned$g_default_email_on_feedback$g_default_email_on_resolved$g_default_email_on_closed <dd> <p>Default user preferences to enable receiving emails when a bug is set to the corresponding status. This option only has an effect if users have the required access level to receive such emails. Default value is ON.</p> </dd> $g_default_email_on_reopened <dd> <p>Default user preferences to enable receiving emails when bugs are re-opened. Default value is ON.</p> </dd> $g_default_email_on_bugnote <dd> <p>Default user preferences to enable receiving emails when bugnotes are added to bugs. Default value is ON.</p> </dd> $g_default_email_on_status$g_default_email_on_priority <dd> <p>Default user preferences to enable receiving emails when status or priority is changed. Default is ON. Note that this option is not implemented.</p> </dd> $g_default_email_on_new_minimum_severity$g_default_email_on_assigned_minimum_severity$g_default_email_on_feedback_minimum_severity$g_default_email_on_resolved_minimum_severity$g_default_email_on_closed_minimum_severity$g_default_email_on_reopened_minimum_severity$g_default_email_on_bugnote_minimum_severity <dd> <p>Default user preferences to enable filtering based on issue severity. These correspond to the email_on_<status> settings. Default is 'any'.</p> </dd> $g_default_email_on_bugnote_minimum_severity <dd> <p>Default user preference to enable filtering based on issue severity. These corresponds to the email_on_bugnote setting. Default is 'any'.</p> </dd> $g_default_email_on_status_minimum_severity$g_default_email_on_priority_minimum_severity <dd> <p>Default user preferences to enable filtering based on issue severity. These correspond to the email_on_status and email_on_priority settings. Default is 'any'. Note that this option is not yet implemented.</p> </dd> </dl> </div> <p>See also: Email Notifications</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Summary</h2> <p>These are the settings that are used to configuration options related to the Summary page. This page contains statistics about the bugs in MantisBT.</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_reporter_summary_limit <dd> <p>Limit how many reporters to show in the summary page. This is useful when there are dozens or hundreds of reporters. The default value is 10.</p> </dd> $g_date_partitions <dd> <p>An array of date lengths to count bugs by (in days) for the summary by date. The default is to count for 1, 2, 3, 7, 30, 60, 90, 180, and 365.</p> </dd> $g_summary_category_include_project <dd> <p>Specifies whether category names should be preceeded by project names (eg: [Project] Category) when the summary page is viewed for all projects. This is useful in the case where category names are common accross projects. The default is OFF.</p> </dd> $g_view_summary_threshold <dd> <p>Specifies the access level required to view the summary page. Default is VIEWER.</p> </dd> $g_severity_multipliers <dd> <p>An array of multipliers which are used to determine the effectiveness of reporters based on the severity of bugs. Higher multipliers will result in an increase in reporter effectiveness. The default multipliers are:</p> <pre class="PROGRAMLISTING">$g_severity_multipliers = array ( FEATURE => 1, TRIVIAL => 2, TEXT => 3, TWEAK => 2, MINOR => 5, MAJOR => 8, CRASH => 8, BLOCK => 10 ); </pre> The keys of the array are severity constants from constant_inc.php or from custom_constants_inc.php if you have custom severities defined. The values are integers, typically in the range of 0 to 10. If you would like for a severity to not count towards effectiveness, set the value to 0 for that severity. <p> </p> </dd> $g_resolution_multipliers <dd> <p>An array of multipliers which are used to determine the effectiveness of reporters based on the resolution of bugs. Higher multipliers will result in a decrease in reporter effectiveness. The only resolutions that need to be defined here are those which match or exceed $g_bug_resolution_not_fixed_threshold. The default multipliers are:</p> <pre class="PROGRAMLISTING">$g_resolution_multipliers = array( UNABLE_TO_DUPLICATE => 2, NOT_FIXABLE => 1, DUPLICATE => 3, NOT_A_BUG => 5, SUSPENDED => 1, WONT_FIX => 1 ); </pre> The keys of the array are resolution constants from constant_inc.php or from custom_constants_inc.php if you have custom resolutions defined. Resolutions not included here will be assumed to have a multiplier value of 0. The values are integers, typically in the range of 0 to 10. If you would like for a resolution to not count towards effectiveness, set the value to 0 for that resolution or remove it from the array completely. Note that these resolution multipliers are stacked on top of the severity multipliers. Therefore by default, a user reporting many duplicate bugs at severity level BLOCK will be far worse off than a user reporting many duplicate bugs at severity level FEATURE. <p> </p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Bugnote</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_bugnote_order <dd> <p>Order to use for sorting bugnotes by submit date. Possible values include ASC for ascending and DESC for descending order. The default value is ASC.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">File Upload</h2> <p>MantisBT allows users to upload file attachments and associate them with bugs as well as projects. Bug attachments / project documents can be uploaded to the webserver, database or an FTP server. When bugs are uploaded to the webserver they are uploaded to the path that is configured in the project properties. In case of problems getting the file upload feature to work, check the following resources: PHP Manual .</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_allow_file_upload <dd> <p>Whether to allow/disallow uploading of attachments. Default value is ON.</p> </dd> $g_file_upload_method <dd> <p>Specify the location for uploading attachements. This can be DISK, DATABASE, or FTP. In case of FTP, the files are saved on the webserver (same as disk) as well as on the specified FTP server. Default value is DATABASE. In case of DISK / FTP upload methods you need to provide the webserver with write access rights to the configured upload path (configured in the project) and temporary upload path (used by PHP).</p> </dd> $g_max_file_size <dd> <p>The maximum file size to allow as an attachment. You may also have to configure your php.ini file to increase the execution time, memory limit, max post size, and max upload size.</p> </dd> $g_file_upload_ftp_server <dd> <p>Address of the FTP server to write to (eg: ftp.example.com). This option is only effective if upload method is FTP.</p> </dd> $g_file_upload_ftp_user <dd> <p>FTP user name for account to be used in uploading files to the FTP server. This account must have read/write access to the FTP server. The default path for the account is used for uploading the files.</p> </dd> $g_file_upload_ftp_pass <dd> <p>Password to use when loggin in to the FTP server.</p> </dd> $g_max_file_size <dd> <p>Maximum file size that can be uploaded. Default value is about 5MB. The max file upload size is also affected by the value specified in php.ini. The PHP value is usually defaulted to 2MB.</p> </dd> $g_allowed_files <dd> <p>Files that are allowed. Separate items by commas. eg. "zip,bmp,gif,jpg,txt" If $g_allowed_files is filled in NO other file types will be allowed. If empty it will assume any files are accepted that pass the $g_disallowed_files list.</p> </dd> $g_disallowed_files <dd> <p>Files that are not allowed. Separate items by commas. eg. "php,php3,phtml,html,class,java,exe,pl" $g_disallowed_files takes precedence over $g_allowed_files. It is recommended to disable all extensions that can be executed by your server.</p> </dd> $g_document_files_prefix <dd> <p>Prefix to give to uploaded files when saved to the upload directory. This is used for documents that are attached to projects in order to be able to differentiate them from files that are attached to bugs. The name of the file has the following format prefix-projectcode-filename. The default value is 'doc'.</p> </dd> $g_preview_attachments_inline_max_size <dd> <p>This limit applies to previewing of image / text attachments. If the attachment size is smaller than the specified value, the attachment is previewed with the issue details. The previewing can be disabled by setting this configuration to 0. The default value is 256 * 1024 (256KB).</p> </dd> $g_fileinfo_magic_db_file <dd> <p>Specify the filename of the magic database file. This is used by PHP 5.3.0 (or earlier versions with the fileinfo PECL extension) to guess what the MIME type of a file is. Usually it is safe to leave this setting as the default (blank) as PHP is usually able to find this file by itself.</p> </dd> $g_file_download_xsendfile_enabled <dd> <p>Enable support for sending files to users via a more efficient X-Sendfile method. HTTP server software supporting this technique includes Lighttpd, Cherokee, Apache with mod_xsendfile and nginx. You may need to set the proceeding file_download_xsendfile_header_name option to suit the server you are using.</p> </dd> $g_file_download_xsendfile_header_name <dd> <p>The name of the X-Sendfile header to use. Each server tends to implement this functionality in a slightly different way and thus the naming conventions for the header differ between each server. Lighttpd from v1.5, Apache with mod_xsendfile and Cherokee web servers use X-Sendfile. nginx uses X-Accel-Redirect and Lighttpd v1.4 uses X-LIGHTTPD-send-file.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">HTML</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_html_tags <dd> <p>This is the list of HTML tags that are allowed.Do NOT include href or img tags here.Do NOT include tags that have parameters (eg. )The HTML code is allowed to enter the database as is. The $g_allow_href_tags does not have to be enabled to make URL links. The package will automatically hyperlink properly formatted URLs�eg. http://blah.blah/ or mailto://me@more.com/�</p> </dd> $g_hr_size <dd> <p>hr size.</p> </dd> $g_hr_width <dd> <p>hr width. Leave off the percentage (%) symbol.</p> </dd> $g_bottom_include_page <dd> <p>If this page eixsts it will be displayed at the bottom of every page. It makes a good company branding include page.</p> </dd> $g_top_include_page <dd> <p>If this page exists it will be displayed at the top of every page. It makes a good company branding include page.</p> </dd> $g_css_include_file <dd> <p>Set this to point to the CSS file of your choice.</p> </dd> $g_css_rtl_include_file <dd> <p>Set this to point to the RTL CSS file of your choice.</p> </dd> $g_meta_include_file <dd> <p>Set this to point to the META tag file of your choice.</p> </dd> $g_main_menu_custom_options <dd> <p>This option will add custom options to the main menu. It is an array of arrays listing the caption, access level required, and the link to be executed. For example: $g_main_menu_custom_options = array( array( "My Link", MANAGER, 'my_link.php' ), array( "My Link2", ADMINISTRATOR, 'my_link2.php' ) ); Note that if the caption is found in custom_strings_inc.php, then it will be replaced by the translated string. Options will only be added to the menu if the current logged in user has the appropriate access level.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Authentication</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_login_method <dd> <p> </p> <p> </p> <ul> <li> <p>MD5</p> </li> <li> <p>LDAP</p> </li> <li> <p>PLAIN</p> </li> <li> <p>CRYPT</p> </li> <li> <p>CRYPT_FULL_SALT</p> </li> <li> <p>BASIC_AUTH</p> </li> <li> <p>Some systems (mostly non-unix) do not have crypt support in PHP. MD5 will accomplish almost the same thing. PLAIN is plain text and there is no attempt to secure the password in the database. You will not be able to easily convert between encryption methods so this needs to be chosen at install time. MD5 is the default.</p> </li> </ul> <p> </p> </dd> $g_reauthentication <dd> <p>TODO</p> </dd> $g_reauthentication_expiry <dd> <p>TODO</p> </dd> </dl> </div> <p>LDAP authentication method parameters</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_ldap_server <dd> <p>The ldap server (eg: ldaps://ldap.example.com).</p> </dd> $g_ldap_port <dd> <p>LDAP port (default 389). If this doesn't work, try 389.</p> </dd> $g_ldap_protocol_version <dd> <p>The LDAP Protocol Version, if 0, then the protocol version is not set. Default is 0. For Active Directory use protocol version 3.</p> </dd> $g_ldap_follow_referrals <dd> <p>Determines whether the LDAP library automatically follows referrals returned by LDAP servers or not. This maps to LDAP_OPT_REFERRALS ldap library option. For Active Directory, this should be set to OFF. Default value is ON.</p> </dd> $g_ldap_root_dn <dd> <p>The root distinguished name. For example, "dc=example, dc=com".</p> </dd> $g_ldap_organization <dd> <p>The organization. For example, "organizationname=*Example)". Default value is ''.</p> </dd> $g_ldap_uid_field <dd> <p>The LDAP field for user id. The default value is 'uid'. For Active Directory, set to 'sAMAccountName'.</p> </dd> $g_ldap_realname_field <dd> <p>The LDAP field for real name (i.e. common name). Default value is 'cn'.</p> </dd> $g_use_ldap_email <dd> <p>Use email address in LDAP rather than the email stored in the database.</p> </dd> $g_use_ldap_realname <dd> <p>Use realname in LDAP rather than the email stored in the database. ON for LDAP, OFF for database. The default value is OFF.</p> </dd> $g_ldap_bind_dn <dd> <p>The distinguished of the user account to use for binding to the LDAP server. For example, 'CN=ldap,OU=Administrators,DC=example,DC=com'.</p> </dd> $g_ldap_bind_passwd <dd> <p>The password for the service account to be used for connecting to the LDAP server.</p> </dd> $g_ldap_simulation_file_path <dd> <p>For development purposes, this is a configuration option that allows replacing the ldap communication with a comma separated text file. The text file has a line per user. Each line includes: user name, user real name, email, password. For production systems this option should be set to ''.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Status Settings</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_bug_submit_status <dd> <p>Status to assign to the bug when submitted. Default value is NEW_.</p> </dd> $g_bug_assigned_status <dd> <p>Status to assign to the bug when assigned. Default value is ASSIGNED.</p> </dd> $g_bug_reopen_status <dd> <p>Status to assign to the bug when reopened. Default value is FEEDBACK.</p> </dd> $g_bug_feedback_status <dd> <p>Status to assign to the bug when feedback is required from the issue reporter. Once the reporter adds a note the status moves back from feedback to $g_bug_assigned_status or $g_bug_submit_status based on whether the bug assigned or not.</p> </dd> $g_reassign_on_feedback <dd> <p>When a note is added to a bug currently in $g_bug_feedback_status, and the note author is the bug's reporter, this option will automatically set the bug status to $g_bug_submit_status or $g_bug_assigned_status if the bug is assigned to a developer. Defaults to enabled.</p> </dd> $g_bug_reopen_resolution <dd> <p>Default resolution to assign to a bug when it is resolved as being a duplicate of another issue. Default value is DUPLICATE.</p> </dd> $g_bug_duplicate_resolution <dd> <p>Resolution to assign to the bug when reopened. Default value is REOPENED.</p> </dd> $g_auto_set_status_to_assigned <dd> <p>Automatically set status to $g_bug_assigned_status whenever a bug is assigned to a person. Installations where assigned status is to be used when the defect is in progress, rather than just put in a person's queue should set it to OFF. Default is ON.</p> </dd> $g_bug_resolved_status_threshold <dd> <p>Bug is resolved, ready to be closed or reopened. In some custom installations a bug maybe considered as resolved when it is moved to a custom (FIXED OR TESTED) status.</p> </dd> $g_bug_resolution_fixed_threshold <dd> <p>Threshold resolution which denotes that a bug has been resolved and successfully fixed by developers. Resolutions above this threshold and below $g_bug_resolution_not_fixed_threshold are considered to be resolved successfully. Default value is FIXED.</p> </dd> $g_bug_resolution_not_fixed_threshold <dd> <p>Threshold resolution which denotes that a bug has been resolved without being successfully fixed by developers. Resolutions above this threshold are considered to be resolved in an unsuccessful way. Default value is UNABLE_TO_DUPLICATE.</p> </dd> $g_bug_readonly_status_threshold $g_update_readonly_bug_threshold <dd> <p>Bug becomes readonly if its status is >= $g_bug_readonly_status_threshold. The bug becomes read/write again if re-opened and its status becomes less than this threshold. The default is RESOLVED. Once the bug becomes readonly, a user with an access level greater than or equal to $g_update_readonly_bug_threshold can still edit the bug.</p> </dd> $g_status_enum_workflow <dd> <p>'status_enum_workflow' defines the workflow, and reflects a simple 2-dimensional matrix. For each existing status, you define which statuses you can go to from that status, e.g. from NEW_ you might list statuses '10:new,20:feedback,30:acknowledged' but not higher ones.The default is no workflow, where all states are accessible from any others.</p> </dd> $g_report_bug_threshold <dd> <p>This is the access level required to open a bug. The default is REPORTER.</p> </dd> $g_update_bug_threshold <dd> <p>This is the access level generally required to update the content of a bug. The default is UPDATER.</p> </dd> $g_handle_bug_threshold <dd> <p>This is the access level generally required to be access level needed to be listed in the assign to field. The default is DEVELOPER. If a more restrictive setting can be determined from $g_set_status_threshold, it will be used.</p> </dd> $g_update_bug_status_threshold $g_set_status_threshold <dd> <p>These settings control the access level required to promote a bug to a new status once the bug is opened.$g_set_status_threshold is an array indexed by the status value that allows a distinct setting for each status. It defaults to blank.If the appropriate status is not defined above, $g_update_bug_status_threshold is used instead. The default is DEVELOPER.</p> </dd> $g_bugnote_user_edit_threshold <dd> <p>Threshold at which a user can edit his/her own bugnotes. The default value is equal to the configuration setting $g_update_bugnote_threshold.</p> </dd> $g_bugnote_user_delete_threshold <dd> <p>Threshold at which a user can delete his/her own bugnotes. The default value is equal to the configuration setting $g_delete_bugnote_threshold.</p> </dd> $g_bugnote_user_change_view_state_threshold <dd> <p>Threshold at which a user can change the view status of his/her own bugnotes. The default value is equal to the configuration setting $g_change_view_status_threshold.</p> </dd> $g_allow_reporter_close <dd> <p>If set, the bug reporter is allowed to close their own bugs, regardless of their access level. The default is OFF.</p> </dd> $g_allow_reporter_reopen <dd> <p>If set, the bug reporter is allowed to reopen their own bugs once resolved, regardless of their access level. This allows the reporter to disagree with the resolution. The default is ON.</p> </dd> </dl> </div> <p>See also: Customizing Status Values</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Filters</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_filter_by_custom_fields <dd> <p>Show custom fields in the filter dialog and use these in filtering. Defaults to ON.</p> </dd> $g_filter_custom_fields_per_row <dd> <p>The number of custom fields to display per row. The default is 7. The value should be greater than or equal to 7.</p> </dd> $g_view_filters = SIMPLE_DEFAULT; <dd> <p>Controls the display of the filter pages. Possible values are:</p> <p> </p> <ul> <li> <p>SIMPLE_ONLY - only simple view</p> </li> <li> <p>ADVANCED_ONLY - only advanced view (allows multiple value selections)</p> </li> <li> <p>SIMPLE_DEFAULT - defaults to simple view, but shows a link for advanced</p> </li> <li> <p>ADVANCED_DEFAULT - defaults to advanced view, but shows a link for simple</p> </li> </ul> <p> </p> </dd> $g_dhtml_filters = OFF; <dd> <p>Controls the use of DHTML filters that will display the filter in view page using DHTML and javascript. Default is OFF. This requires $g_use_javascript to ne set to ON. This may not work in all browsers as it requires xmlhttprequest functionality.</p> </dd> $g_create_permalink_threshold <dd> <p>The threshold required for users to be able to create permalinks (default DEVELOPER). To turn this feature off use NOBODY.</p> </dd> $g_create_short_url <dd> <p>The service to use to create a short URL. The %s will be replaced by the long URL. By default http://www.tinyurl service is used to shorten URLs.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Misc</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_user_login_valid_regex <dd> <p>The regular expression to use when validating new user login names. The default regular expression allows a-z, A-Z, 0-9, +, -, dot, space and underscore. If you change this, you may want to update the ERROR_USER_NAME_INVALID string in the language files to explain the rules you are using on your site.</p> <p>See Wikipedia for more details about regular expressions. For testing regular expressions, use Rubular.</p> </dd> $g_monitor_bug_threshold <dd> <p>Access level needed to monitor bugs. The default value is REPORTER.</p> </dd> $g_monitor_add_others_bug_threshold <dd> <p>Access level needed to add other users to the list of users monitoring a bug. The default value is DEVELOPER.</p> </dd> $g_monitor_delete_others_bug_threshold <dd> <p>Access level needed to delete other users from the list of users monitoring a bug. The default value is DEVELOPER.</p> </dd> $g_limit_reporters <dd> <p>Limit reporters to only viewing bugs that they report.</p> </dd> $g_allow_reporter_close <dd> <p>Allow reporters to close the bugs they reported.</p> </dd> $g_allow_bug_delete_access_level <dd> <p>Allow the specified access level and above to delete bugs.</p> </dd> $g_bug_move_access_level <dd> <p>Allow the specified access level and above to move bugs between projects.</p> </dd> $g_allow_account_delete <dd> <p>Allow users to delete their own accounts.</p> </dd> $g_allow_anonymous_login <dd> <p>Enable anonymous access to Mantis. You must also specify $g_anonymous_account as the account which anonymous users will browse Mantis with. The default setting is OFF.</p> </dd> $g_anonymous_account <dd> <p>Define the account which anonymous users will assume when using Mantis. This account is considered by Mantis to be protected from modification. In other words, this account can only be modified by users with an access level equal to or higher than $g_manage_user_threshold. Anonymous users will not be able to adjust preferences or change account settings like normal users can.</p> <p>You will need to create a new account to use for this $g_anonymous_account setting. When creating the account you should specify a password, email address and so forth in the same way you'd create any other account. It is suggested that the access level for this account be set to VIEWER or some other read only level.</p> <p>The anonymous user account will not receive standard notifications and can not monitor issues.</p> <p>The default setting is blank/undefined. You only need to define this setting when $g_allow_anonymous_login is set to ON.</p> </dd> $g_bug_link_tag <dd> <p>If a number follows this tag it will create a link to a bug. eg. for # a link would be #45 eg. for bug: a link would be bug:98</p> </dd> $g_show_timer <dd> <p>Time page loads. Shows at the bottom of the page.</p> </dd> $g_show_queries_count <dd> <p>Shows the total number/unique number of queries executed to serve the page. Default is ON.</p> </dd> $g_show_queries_list <dd> <p>Shows the list of all queries that are executed in chronological order from top to bottom. This option is only effective when $g_show_queries_count is ON. Default is OFF. WARNING: Potential security hazard. Only turn this on when you really need it (for debugging or profiling)</p> </dd> $g_register_globals <dd> <p>If your register_globals is Off then set this to OFF. Check your register_globals setting in php.ini or phpinfo().</p> </dd> $g_enable_project_documentation <dd> <p>Specifies whether to enable support for project documents or not. Default is OFF. This feature is deprecated and is expected to be moved to a plugin in the future.</p> </dd> $g_admin_site_threshold <dd> <p>Threshold at which a user is considered to be a site administrator. These users have the highest level of access to your Mantis installation. This access level is required to change key Mantis settings (such as server paths) and perform other administrative duties. You may need to change this value from the default of ADMINISTRATOR if you have defined a new access level to replace the default ADMINISTRATOR level in constant_inc.php.</p> <div class="WARNING"> <p> </p> <table class="WARNING" style="width: 90%;" border="0"> <tbody> <tr> <td width="25" align="CENTER"></td> <td align="LEFT"> <p>This is a potentially dangerous configuration option. Users at or above this threshold value will have permission to all aspects of Mantis including the admin/ directory. With this access level, users can damage your installation of Mantis, destroy your database or have elevated access to your server.</p> <p>DO NOT CHANGE THIS VALUE UNLESS YOU ABSOLUTELY KNOW WHAT YOU'RE DOING. BE VERY CAREFUL WITH CHANGING THIS CONFIGURATION VALUE FROM THE DEFAULT SETTING.</p> </td> </tr> </tbody> </table> </div> </dd> $g_manage_configuration_threshold <dd> <p>The threshold required for users to be able to manage configuration of a project. This includes workflow, email notifications, columns to view, and others. Default is MANAGER.</p> </dd> $g_view_configuration_threshold <dd> <p>Threshold for users to view the raw system configurations as stored in the database. The default value is ADMINISTRATOR.</p> </dd> $g_set_configuration_threshold <dd> <p>Threshold for users to set the system configurations generically via MantisBT web interface. WARNING: Users who have access to set configuration via the interface MUST be trusted. This is due to the fact that such users can set configurations to PHP code and hence there can be a security risk if such users are not trusted. The default value is ADMINISTRATOR.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Cookies</h2> <p>The configuration variables $g_string_cookie, $g_project_cookie, $g_view_all_cookie, $g_manage_cookie are calculated based on $g_cookie_prefix. When you change the cookie prefix in config_inc.php, you need to follow it with a copy of the four lines that calculate the names for these cookies.</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_cookie_path <dd> <p>This is specifies to the path under which a cookie is visible. All scripts in this directory and its sub-directories will be able to access MantisBT cookies. Default value is '/'. It is recommended to set this to the actual MantisBT path.</p> </dd> $g_cookie_domain <dd> <p>Unused</p> </dd> $g_cookie_version <dd> <p>Cookie version is used as a prefix for cookies that should be expire when the code is changed in a certain way. The developers would increase this version when necessary, which in effect will cause the creation of new cookies that are compatible with the new code. It is not expected for the user to need to change this setting.</p> </dd> $g_cookie_prefix <dd> <p>This should be set to a unique identifier which does not include spaces. Again, this should be unique per MantisBT installation, specially if the $g_cookie_path is not restricting the cookies scope to the actual MantisBT directory.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Database Tables</h2> <p>MantisBT enables users to configure a table prefix for all its tables. This is useful to be able to have multiple MantisBT installation in the same database. The advantage of that is for users who are limited by their ISP to have one database.</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_db_table_prefix <dd> <p>Specifies the prefix to be use for all table names. The default value is 'mantis'. If you override the default prefix, make sure to update doc/db_generate.sql file before generating your database. The other option is to import db_generate.sql as is, then rename the tables to match the new prefix.</p> <p>The prefix is used to help make sure table names are unique. This is useful for users who are limited to one database.</p> <div class="NOTE"> <p> </p> <table class="NOTE" style="width: 90%;" border="0"> <tbody> <tr> <td width="25" align="CENTER"></td> <td align="LEFT"> <p>The table name for each of the tables is stored in a variable which is calculated based on this configuration option. If you change the prefix you have to make sure these variables are re-calculated (by adding these calculation statements to config_inc.php after assigning the new prefix). An example of these variables is: $g_mantis_bug_file_table</p> </td> </tr> </tbody> </table> </div> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Speed Optimisation</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_compress_html <dd> <p>This option is used to enable buffering/compression of HTML output if the user's browser supports it. Default value is ON. This option will be ignored in the following scenarios:</p> <p> </p> <ul> <li> <p>If php.ini has zlib.output_compression enabled.</p> </li> <li> <p>If php.ini has output_handler set to a handler.</p> </li> <li> <p>If PHP does not include the zlib extension (PHP 4.3.0 and later include zlib extension by default).</p> </li> </ul> You can check the loaded modules in your PHP by running "php -m" on the command line, or by using php_info() command in a php script. <p> </p> </dd> $g_use_persistent_connections <dd> <p>Use persistent database connections, setting this to ON will open the database once per connection, rather than once per page. There might be some scalability issues here and that is why it is defaulted to OFF.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Reminders</h2> <p>Sending reminders is a feature where a user can notify / remind other users about a bug. In the past, only selected users like the managers, or developers would get notified about bugs. However, these people can not invite other people (through MantisBT) to look at or monitor these bugs.</p> <p>This feature is useful if the Manager needs to get feedback from testers / requirements team about a certain bug. It avoid needing this person to do this manual outside MantisBT. It also records the history of such reminders.</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_store_reminders <dd> <p>Specifies if reminders should be stored as bugnotes. The bugnote will still reflect that it is a reminder and list the names of users that got it. Default is ON.</p> </dd> $g_reminder_recipients_monitor_bug <dd> <p>Specifies if users who receive reminders about a bug, should be automatically added to the monitor list of that bug. Default is ON.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Bug History</h2> <p>Bug history is a feature where MantisBT tracks all modifications that are made to bugs. These include everything starting from its creation, till it is closed. For each change, the bug history will record the time stamp, user who made the change, field that changed, old value, and new value.</p> <p>Independent of the these settings, MantisBT will always track the changes to a bug and add them to its history.</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_history_default_visible <dd> <p>Make the bug history visible by default. If this option is not enabled, then the user will have to click on the Bug History link to see the bug history. Default is ON.</p> </dd> $g_history_order <dd> <p>Show bug history entries in ascending or descending order. Default value is 'ASC'.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Sponsorship</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_enable_sponsorship <dd> <p>enable/disable the whole issue sponsorship feature. The default os OFF.</p> </dd> $g_sponsorship_currency <dd> <p>The currency string used for all sponsorships. The default is 'US$'.</p> </dd> $g_minimum_sponsorship_amount <dd> <p>The minimum sponsorship amount that can be entered. If the user enters a value less than this, an error will be flagged. The default is 5.</p> </dd> $g_view_sponsorship_total_threshold <dd> <p>The access level threshold needed to view the total sponsorship for an issue by all users. The default is VIEWER.</p> </dd> $g_view_sponsorship_details_threshold <dd> <p>The access level threshold needed to view the details of the sponsorship (i.e., who will donate what) for an issue by all users. The default is VIEWER.</p> </dd> $g_sponsor_threshold <dd> <p>The access level threshold needed to allow user to sponsor issues. The default is REPORTER. Note that sponsoring user must have their email set in their profile.</p> </dd> $g_handle_sponsored_bugs_threshold <dd> <p>The access level required to be able to handle sponsored issues. The default is DEVELOPER.</p> </dd> $g_assign_sponsored_bugs_threshold <dd> <p>The access level required to be able to assign a sponsored issue to a user with access level greater or equal to 'handle_sponsored_bugs_threshold'. The default is MANAGER.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Custom Fields</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_manage_custom_fields_threshold <dd> <p>Access level needed to manage custom fields. The default is ADMINISTRATOR.</p> </dd> $g_custom_field_link_threshold <dd> <p>Access level needed to link a custom field to a project. The default is MANAGER.</p> </dd> $$g_custom_field_edit_after_create <dd> <p>This flag determines whether to start editng a custom field immediately after creating it, or return to the definition list. The default is ON (edit the custom field after creating).</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">My View Settings</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_my_view_boxes <dd> <p>This is an array of values defining the order that the boxes to be shown. A box that is not to be shown can have its value set to 0. The default is:</p> <pre class="PROGRAMLISTING">$g_my_view_boxes = array ( 'assigned' => '1', 'unassigned' => '2', 'reported' => '3', 'resolved' => '4', 'recent_mod' => '5', 'monitored' => '6' ); </pre> If you want to change the definition, copy the default value and apply the changes. <p> </p> </dd> $g_my_view_bug_count <dd> <p>Number of bugs shown in each box. The default is 10.</p> </dd> $g_default_home_page <dd> <p>Default page to transfer to after Login or Set Project. The default is 'my_view_page.php'. An alternative would be 'view_all_bugs_page.php' or 'main_page.php'.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Relationship Graphs</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_relationship_graph_enable <dd> <p>This enables the relationship graphs feature where issues are represented by nodes and relationships as links between such nodes. Possible values are ON or OFF. Default is OFF.</p> <p>This feature requires installing GraphViz (all OSes except Windows) or WinGraphviz (only Windows). Refer to the notes near the top of core/graphviz_api.php and core/relationship_graph_api.php for more information.</p> </dd> $g_relationship_graph_fontname <dd> <p>Font name and size, as required by Graphviz. If Graphviz fails to run for you, you are probably using a font name that gd PHP extension can't find. On Linux, try the name of the font file without the extension. The default value is 'Arial'.</p> </dd> $g_relationship_graph_fontsize <dd> <p>Font size, default is 8.</p> </dd> $g_relationship_graph_orientation <dd> <p>Default dependency orientation. If you have issues with lots of children or parents, leave as 'horizontal', otherwise, if you have lots of "chained" issue dependencies, change to 'vertical'. Default is 'horizontal'.</p> </dd> $g_relationship_graph_max_depth <dd> <p>Max depth for relation graphs. This only affects relationship graphs, dependency graphs are drawn to the full depth. The default value is 2.</p> </dd> $g_relationship_graph_view_on_click <dd> <p>If set to ON, clicking on an issue on the relationship graph will open the bug view page for that issue, otherwise, will navigate to the relationship graph for that issue.</p> </dd> $g_dot_tool <dd> <p>The full path for the dot tool. The webserver must have execute permission to this program in order to generate relationship graphs. This configuration option is not relevant for Windows. The default value is '/usr/bin/dot'.</p> </dd> $g_neato_tool <dd> <p>The full path for the neato tool. The webserver must have execute permission to this program in order to generate relationship graphs. This configuration option is not relevant for Windows. The default value is '/usr/bin/neato'.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Sub-Projects</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_subprojects_inherit_versions <dd> <p>Whether sub-projects should inherit versions from parent projects. For project X which is a sub-project of A and B, it will have versions from X, A and B. The default value is ON.</p> </dd> $g_subprojects_inherit_categories <dd> <p>Whether sub-projects should inherit categories from parent projects. For project X which is a sub-project of A and B, it will have categories from X, A and B. The default value is ON.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Field Visibility</h2> <p> </p> <div class="VARIABLELIST"> <dl> $g_enable_eta <dd> <p>Enable or disable usage of 'ETA' field. Default value is OFF.</p> </dd> $g_enable_projection <dd> <p>Enable or disable usage of 'Projection' field. Default value is OFF.</p> </dd> $g_show_product_build <dd> <p>Enable or disable usage of 'Product Build' field. Default is OFF.</p> </dd> $g_bug_report_page_fields <dd> <p>An array of fields to show on the issue view page. Some of these fields may be filtered out if their features are disabled or if the user doesn't have access to view them. See BUG_FIELD_* in constant_inc.php for all possible values.</p> <p>The following fields can not be included: BUG_FIELD_ID, BUG_FIELD_PROJECT, BUG_FIELD_DATE_SUBMITTED, BUG_FIELD_LAST_UPDATED, BUG_FIELD_STATUS, BUG_FIELD_RESOLUTION, BUG_FIELD_TAGS, BUG_FIELD_FIXED_IN_VERSION, BUG_FIELD_PROJECTION, BUG_FIELD_ETA, BUG_FIELD_REPORTER.</p> <p>The following fields must be included: BUG_FIELD_CATEGORY, BUG_FIELD_SUMMARY, BUG_FIELD_DESCRIPTION.</p> <p>To overload these settings per project, then the settings must be included in the database through the generic configuration form. Note that the array in the database should consistent of the values of the constants below. For example, replace BUG_FIELD_CATEGORY with 'category_id'. See constant_inc.php for the values of the constants.</p> </dd> $g_bug_view_page_fields <dd> <p>An array of fields to show on the issue view page. Some of these fields may be filtered out if their features are disabled or if the user doesn't have access to view them. See BUG_FIELD_* in constant_inc.php for all possible values.</p> <p>To overload this setting per project, then the setting must be included in the database through the generic configuration form. Note that the array in the database should consistent of the values of the constants. For example, replace BUG_FIELD_CATEGORY with 'category_id'. See constant_inc.php for the values of the constants.</p> </dd> $g_bug_print_page_fields <dd> <p>An array of fields to show on the issue print page. Some of these fields may be filtered out if their features are disabled or if the user doesn't have access to view them. See BUG_FIELD_* in constant_inc.php for all possible values.</p> </dd> $g_bug_update_page_fields <dd> <p>An array of fields to show on the issue update page. Some of these fields may be filtered out if their features are disabled or if the user doesn't have access to view them. See BUG_FIELD_* in constant_inc.php for all possible values.</p> <p>To overload this setting per project, then the setting must be included in the database through the generic configuration form. Note that the array in the database should consistent of the values of the constants. For example, replace BUG_FIELD_CATEGORY with 'category_id'. See constant_inc.php for the values of the constants.</p> </dd> $g_bug_change_status_page_fields <dd> <p>An array of fields to show on the issue change status page. Some of these fields may be filtered out of their features are disabled or if the user doesn't have access to view them. See BUG_FIELD_* in constant_inc.php for all possible values.</p> <p>To overload this setting per project, then the setting must be included in the database through the generic configuration form. Note that the array in the database should consistent of the values of the constants. For example, replace BUG_FIELD_CATEGORY with 'category_id'. See constant_inc.php for the values of the constants.</p> </dd> </dl> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">System Logging</h2> <p>The system logging interface is used to extract detailed debugging information for the MantisBT system. It can also serve as an audit trail for user actions.</p> <p> </p> <div class="VARIABLELIST"> <dl> $g_log_level <dd> <p>This controls the type of logging information recorded. Possible values include:</p> <p> </p> <div class="VARIABLELIST"> <dl> LOG_EMAIL <dd> <p>logs issue id, message type and recipients for all emails sent</p> </dd> LOG_EMAIL_RECIPIENT <dd> <p>logs the details of email recipient determination. Each user id is listed as well as why they are added, or deleted from the recipient list</p> </dd> </dl> </div> <p> </p> </dd> $g_log_destination <dd> <p>specifies the file where the log data goes. This file must be writable by the web server userid running MantisBT. Right now, only "file:<file path>" is supported. For example, $g_log_destination = 'file:/tmp/mantis_log'; See http://www.php.net/error_log for details.</p> </dd> </dl> </div> </div> </div> <div class="CHAPTER"> <hr> <h1>Page descriptions</h1> <div class="SECTION"> <h2 class="SECTION">Login page</h2> <p>Just enter your username and password and hit the login button. There is also a Save Login checkbox to have the package remember that you are logged in between browser sessions. You will have to have cookies enabled to login.If the account doesn't exist, the account is disabled, or the password is incorrect then you will remain at the login page. An error message will be displayed.The administrator may allow users to sign up for their own accounts. If so, a link to Signup for your own account will be available.The administrator may also have annonymous login allowed. Annonymous users will be logged in under a common account.You will be allowed to select a project to work in after logging in. You can make a project your default selection from the Select Project screen or from your Account Options.SignupHere you can signup for a new account. You must supply a valid email address and select a unique username. Your randomly generated password will be emailed to your email account. If MantisBT is setup so that the email password is not to be emailed, newly generated accounts will have an empty password.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Main page</h2> <p>This is the first page you see upon logging in. It shows you the latest news updates for the bugtracker. This is a simple news module (based off of work by Scott Roberts) and is to keep users abreast of changes in the bugtracker or project. Some news postings are specific to projects and others are global across the entire bugtracker. This is set at the time of posting in the Edit News section.The number of news posts is controlled by a global variable. When the number of posts is more than the limit, a link to show "older news" is displayed at the bottom. Similarly a "newer news" is displayed when you have clicked on "older news".There is an Archives option at the bottom of the page to view all listings.ArchivesA title/date/poster listing of ALL past news articles will be listed here. Clicking on the link will bring up the specified article. This listing will also only display items that are either global or specific to the selected project.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">View Issues page</h2> <p>Here we can view the issue listings. The page has a set of viewing filters at the top and the issues are listed below.FiltersThe filters control the behavior of the issues list. The filters are saved between browsing sessions but do not currently save sort order or direction.If the number of issues exceeds the "Show" count in the filter a set of navigation to go to "First", "Last", "Previous", "Next" and specific page numbers are added.The Search field will look for simple keyword matches in the summary, description, steps to reproduce, additional information, issue id, or issue text id fields. It does not search through issue notes. Issue List - The issues are listed in a table and the attributes are listed in the following order: priority, id, number of issue notes, category, severity, status, last updated, and summary. Each (except for number of issue notes) can be clicked on to sort by that column. Clicking again will reverse the direction of the sort. The default is to sort by last modification time, where the last modified issue appears at the top. The issue id is a link that leads to a more detailed report about the issue. You can also add issue notes here. The number in the issue note count column will be bold if an issue note has been added in the specified time frame. The addition of an issue note will make the issue note link of the issue appear in the unvisited state. The text in the "Severity" column will be bold if the severity is major, crash, or block and the issue not resolved. The text in the "Updated" column will be bold if the issue has changed in the last "Changed(hrs)" field which is specified in the viewing filters. Each table row is color coded according to the issue status. The colors can be customised through MantisBT Configuration .Severitiesblock - prevents further work/progress from being made crash - crashes the application or blocking, major - major issue, minor - minor issue, tweak - needs tweaking, text - error in the text, trivial - being nit picky, feature - requesting new feature - Status new - new issue, feedback - issue requires more information from reporter, acknowledged - issue has been looked at but not confirmed or assigned, confirmed - confirmed and reproducible (typically set by an Updater or other Developer), assigned - assigned to a Developer, resolved - issue should be fixed, waiting on confirmation of fix, closed - issue is closed, Moving the mouse over the status text will show the resolution as a title. This is rendered by some browsers as a bubble and in others as a status line text.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Issue View page</h2> <p>Here is the simple listing of the issue report. Most of the fields are self-explanatory. "Assigned To" will contain the developer assigned to handle the issue. Priority is fully functional but currently does nothing of importance. Duplicate ID is used when an issue is a duplicate of another. It links to the duplicate issue which allows users to read up on the original issue report. Below the issue report is a set of buttons that a user can select to work on the issue.</p> <p> </p> <ul> <li> <p>Update Issue - brings up a page to edit all aspects of the issue</p> </li> <li> <p>Assign to - in conjunction with the dropdown list next top the button, this is a shortcut to change the assignment of an issue</p> </li> <li> <p>Change Status to - in conjunction with the dropdown list next top the button, this is a shortcut to change the status of an issue. Another page (Change Status) will be presented to allow the user to add notes or change relevant information</p> </li> <li> <p>Monitor / Unmonitor Issue - allows the user to monitor any additions to the issue by email</p> </li> <li> <p>Create Clone - create a copy of the current issue. This presents the user with a new issue reporting form with all of the information in the current issue filled in. Upon submission, a new issue, related to the current issue, will be created.</p> </li> <li> <p>Reopen Issue - Allows the user to re-open a resolved issue</p> </li> <li> <p>Move Issue - allows the user to move the issue to another project</p> </li> <li> <p>Delete Issue - Allows the user to delete the issue permanently. It is recommended against deleting issues unless the entry is frivolous. Instead issues should be set to resolved and an appropriate resolution category chosen.</p> </li> </ul> <p>A panel is provided to view and update the sponsorship of an issue.Another panel is provided to view, delete and add relationships for an issue. Issues can have a parent/child relationship, where the user is warned about resolving a parent issue before all of the children are resolved. A peer relationship is also possible.Below this, there may be a form for uploading file attachments. The Administrator needs to configure the bugtracker to handle file uploads. If uploading to disk is selected, each project needs to set its own upload path. Issue notes are shown at the bottom of the issue report. A panel to add issue notes is also shown.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Issue Change Status page</h2> <p>This page is used to change the status of an issue. A user can add an issue note to describe the reason for change.In addition, the following fields may be displayed for update:</p> <p> </p> <ul> <li> <p>Resolution and Duplicate ID - for issues being resolved or closed</p> </li> <li> <p>Issue Handler (Assigned to)</p> </li> <li> <p>any Custom Fields that are to be visible on update or resolution</p> </li> <li> <p>Fixed in Version - for issues being resolved</p> </li> <li> <p>Close Immediately - to immediately close a resolved issue</p> </li> </ul> <p> </p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Issue Edit page</h2> <p>The layout of this page resemples the Simple Issue View page, but here you can update various issue fields. The Reporter, Category, Severity, and Reproducibility fields are editable but shouldn't be unless there is a gross mis-categorization.Also modifiable are the Assigned To, Priority, Projection, ETA, Resolution, and Duplicate ID fields.As per version 0.18.0, the user can also add an issue note as part of an issue update.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">My Account Page</h2> <p>This page changes user alterable parameters for the system. These selections are user specific.My AccountThis allows the user to change their password, screen name, and email address. It also reports the user's access levels on the current and other projects.</p> <div class="SECTION"> <hr> <h3 class="SECTION">Preferences</h3> <p>This sets the following information:</p> <p> </p> <ul> <li> <p>Default project</p> </li> <li> <p>whether the pages used for reporting, viewing, and updating are the simple or advanced views</p> </li> <li> <p>the delay in minutes between refreshes of the view all issues page</p> </li> <li> <p>the delay in seconds when redirecting from a confirmation page to the display page</p> </li> <li> <p>the time order in which notes will be sorted</p> </li> <li> <p>whether to filter email messages based on type of message and severity</p> </li> <li> <p>the number of notes to append to notification emails</p> </li> <li> <p>the default language for the system. The additional setting of "auto" will use the browser's default language for the system.</p> </li> </ul> <p> </p> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Profiles</h3> <p>Profiles are shortcuts to define the values for Platform, OS, and version. This page allows you to define and edit personal shortcuts.</p> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">System Management Pages</h2> <p>A number of pages exist under the "Manage" link. These will only be visible to those who have an appropriate access level.</p> <div class="SECTION"> <hr> <h3 class="SECTION">Manage Users</h3> <p>This page allow an administrator to manage the users in the system.It essentially supplies a list of users defined in the system. The user names are linked to a page where you can change the user's name, access level, and projects to which they are assigned. You can also reset their passwords through this page.At the top, there is also a list of new users (who have created an account in the last week), and accounts where the user has yet to log in.New users are created using the "Create User" link above the list of existing users. Note that the username must be unique in the system. Further, note that the user's real name (as displayed on the screen) cannot match another user's user name.</p> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Manage Projects Page</h3> <p>This page allows the user to manage the projects listed in the system.Each project is listed along with a link to manage that specific project. The specific project pages allow the user to change:</p> <p> </p> <ul> <li> <p>the project name</p> </li> <li> <p>the project description</p> </li> <li> <p>its status</p> </li> <li> <p>whether the project is public or private. Private projects are only visible to users who are assigned to it or users who have the access level to automatically have access to private projects (eg: administrators).</p> </li> <li> <p>afile directory used to store attachments for issues and documents associated with the project. This folder is located on the webserver, it can be absolute path or path relative to the main MantisBT folder. Note that this is only used if the files are stored on disk or via FTP. In case of FTP, the cached version that is saved on the webserver, is stored in the specified path.</p> </li> <li> <p>common subprojects. These are other projects who can be considered a sub-project of this one. They can be shared amongst multiple projects. For example, a "documentation" project may be shared amongst several development projects.</p> </li> <li> <p>project categories. These are used to sub-divide the issues stored in the system.</p> </li> <li> <p>project versions. These are used to create ChangeLog reports and can be used to filter issues. They are used for both the Found In and Fixed In versions.</p> </li> <li> <p>Custom Fields linked to this project</p> </li> <li> <p>Users linked to this project. Here is the place where a user's access level may be upgraded or downgraded depending on their particular role in the project.</p> </li> </ul> <p> </p> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Manage Custom Fields</h3> <p>This page is the base point for managing custom fields. It lists the custom fields defined in the system. There is also a place to enter a new field name to create a new field.The "Edit" links take you to a page where you can define the details of a custom field. These include it's name, type, value, and display information. On the edit page, the following information is defined to control the custom field:</p> <p> </p> <ul> <li> <p>name</p> </li> <li> <p>type. Possible values are listed below.</p> </li> <li> <p>Value constraints (Possible values, default value, regular expression, minimum length, maximum length).</p> </li> <li> <p>Access (who can read and write the field based on their access level).</p> </li> <li> <p>Display control (where the field will show up and must be filled in</p> </li> </ul> <p> </p> <p>All fields are compared in length to be greater than or equal to the minimum length, and less than or equal to the manimum length, unless these values are 0. If the values are 0, the check is skipped. All fields are also compared against the regular expression. If the value matches the expression, then the value is stored. For example, the expression "/^-?([0-9])*$/" can be used to constrain an integer.The table below describes the field types and the value constraints.</p> <div class="INFORMALTABLE"> <p> </p> <table class="CALSTABLE" border="1"> <tbody> <tr> <td>Type</td> <td>Field Contents</td> <td>Value Constraints</td> </tr> <tr> <td>String</td> <td>text string up to 255 characters</td> <td> </td> </tr> <tr> <td>Numeric</td> <td>an integer</td> <td> </td> </tr> <tr> <td>Float</td> <td>a floating point number</td> <td> </td> </tr> <tr> <td>Enumeration</td> <td>one of a list of text strings</td> <td>Enter the list of text strings separated by "|" (pipe character) in the Possible Values field. The Default value should match one of these strings as well. This will be displayed as a dropdown menu.</td> </tr> <tr> <td>Email</td> <td>an email address string up to 255 characters</td> <td>When displayed, the value will also be encapsulated in a mailto: reference.</td> </tr> <tr> <td>Checkbox</td> <td>zero or more of a list of text strings</td> <td>Enter the list of text strings separated by "|" (pipe character) in the Possible Values field. The Default value should match one of these strings as well. This will be displayed as a list of text strings with a checkbox beside them.</td> </tr> <tr> <td>List</td> <td>one of a list of text strings</td> <td>Enter the list of text strings separated by "|" (pipe character) in the Possible Values field. The Default value should match one of these strings as well. This will be displayed as a multi-line dropdown menu.</td> </tr> <tr> <td>Multiselection List</td> <td>zero or more of a list of text strings</td> <td>Enter the list of text strings separated by "|" (pipe character) in the Possible Values field. The Default value should match one of these strings as well. This will be displayed as a multi-line dropdown menu.</td> </tr> <tr> <td>Date</td> <td>text string defining a date</td> <td>This is displayed as a set of dropdown menus for day, month, and year. Defaults should be defined in yyyy-mm-dd format.</td> </tr> </tbody> </table> <p> </p> </div> <p>The display entries are used as follows:</p> <div class="INFORMALTABLE"> <p> </p> <table class="CALSTABLE" border="1"> <tbody> <tr> <td>Entry</td> <td>Meaning</td> </tr> <tr> <td>Display Only On Advanced Page</td> <td>If checked, the field will NOT be shown on the simple issue displays</td> </tr> <tr> <td>Display When Reporting Issues</td> <td>If checked, the field will be shown on the report issues displays</td> </tr> <tr> <td>Display When Updating Issues</td> <td>If checked, the field will NOT be shown on the update issue and change status displays</td> </tr> <tr> <td>Display When Resolving Issues</td> <td>If checked, the field will NOT be shown on the update issue displays and change status displays, if the new status is resolved.</td> </tr> <tr> <td>Display When Closing Issues</td> <td>If checked, the field will NOT be shown on the update issue displays and change status displays, if the new status is closed.</td> </tr> <tr> <td>Required On Report</td> <td>If checked, the field must be filled in on the issue reports.</td> </tr> <tr> <td>Required On Update</td> <td>If checked, the field must be filled in on the update issue and change status displays.</td> </tr> <tr> <td>Required On Resolve</td> <td>If checked, the field must be filled in on the update issue and change status displays, if the new status is resolved.</td> </tr> <tr> <td>Required On Close</td> <td>If checked, the field must be filled in on the update issue and change status displays, if the new status is closed.</td> </tr> </tbody> </table> <p> </p> </div> <p> </p> <p>Notes on Display</p> <p> </p> <ul> <li> <p>Be careful not to set both a required attribute and show only on advanced display. It may be possible to trigger a validation error that the user cannot recover from (i.e., field is not filled in).</p> </li> </ul> <p> </p> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Manage Global Profiles</h3> <p>This page allows the definition of global profiles accessible to all users of the system. It is similar to the user definition of a profile consisting of Platform, OS and Version.</p> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Manage Configuration</h3> <p>This set of pages control the configuration of the MantisBT system. Note that the configuration items displayed may be on a project by project basis.These pages serve two purposes. First, they will display the settings for the particular aspects of the system. If authorized, they will allow a user to change the parameters. They also have settings for what access level is required to change these settings ON A PROJECT basis. In general, this should be left alone, but administrators may want to delegate some of these settings to managers.</p> <div class="SECTION"> <hr> <h4 class="SECTION">Workflow Thresholds</h4> <p>This page covers the adjustment of the settings for many of the workflow related parameters. For most of these, the fields are self explanatory and relate to a similarly named setting in the configuration file. At the right of each row is a selector that allows the administrator to lower the access level required to change the particular parameter.The values changeable on this page are:</p> <div class="FORMALPARA"> <p><strong><strong>Issues.</strong></strong></p> <div class="INFORMALTABLE"> <p> </p> <table class="CALSTABLE" border="1"> <tbody> <tr> <td>Title</td> <td>Variable</td> <td>Description</td> </tr> <tr> <td>Report an Issue</td> <td>$g_report_bug_threshold</td> <td>threshold to report an issue</td> </tr> <tr> <td>Status to which a new issue is set</td> <td>$g_bug_submit_status</td> <td>status issue is set to when submitted</td> </tr> <tr> <td>Update an Issue</td> <td>$g_update_bug_threshold</td> <td>threshold to update an issue</td> </tr> <tr> <td>Allow Reporter to close an issue</td> <td>$g_allow_reporter_close</td> <td>allow reporter to close issues they reported</td> </tr> <tr> <td>Monitor an issue</td> <td>$g_monitor_bug_threshold</td> <td>threshold to monitor an issue</td> </tr> <tr> <td>Handle Issue</td> <td>$g_handle_bug_threshold</td> <td>threshold to handle (be assigned) an issue</td> </tr> <tr> <td>Assign Issue</td> <td>$g_update_bug_assign_threshold</td> <td>threshold to be in the assign to list</td> </tr> <tr> <td>Move Issue</td> <td>$g_move_bug_threshold</td> <td>threshold to move an issue to another project. This setting is for all projects.</td> </tr> <tr> <td>Delete Issue</td> <td>$g_delete_bug_threshold</td> <td>threshold to delete an issue</td> </tr> <tr> <td>Reopen Issue</td> <td>$g_reopen_bug_threshold</td> <td>threshold to reopen an issue</td> </tr> <tr> <td>Allow reporter to reopen Issue</td> <td>$g_allow_reporter_reopen</td> <td>allow reporter to reopen issues they reported</td> </tr> <tr> <td>Status to which a reopened Issue is set</td> <td>$g_bug_reopen_status</td> <td>status issue is set to when reopened</td> </tr> <tr> <td>Resolution to which a reopened Issue is set</td> <td>$g_bug_reopen_resolution</td> <td>resolution issue is set to when reopened</td> </tr> <tr> <td>Status where an issue is considered resolved</td> <td>$g_bug_resolved_status_threshold</td> <td>status where bug is resolved</td> </tr> <tr> <td>Status where an issue becomes read-only</td> <td>$g_bug_readonly_status_threshold</td> <td>status where bug is read-only (see update_readonly_bug_threshold)</td> </tr> <tr> <td>Update readonly issue</td> <td>$g_update_readonly_bug_threshold</td> <td>threshold to update an issue marked as read-only</td> </tr> <tr> <td>Update Issue Status</td> <td>$g_update_bug_status_threshold</td> <td>threshold to update an issue's status</td> </tr> <tr> <td>View Private Issues</td> <td>$g_private_bug_threshold</td> <td>threshold to view a private issue</td> </tr> <tr> <td>Set View Status</td> <td>$g_set_view_status_threshold</td> <td>threshold to set an issue to Private/Public</td> </tr> <tr> <td>Update View Status</td> <td>$g_change_view_status_threshold</td> <td>threshold needed to update the view status while updating an issue or an issue note</td> </tr> <tr> <td>Show list of users monitoring issue</td> <td>$g_show_monitor_list_threshold</td> <td>threshold to see who is monitoring an issue</td> </tr> <tr> <td>Set status on assignment of handler</td> <td>$g_auto_set_status_to_assigned</td> <td>change status when an issue is assigned</td> </tr> <tr> <td>Status to set auto-assigned issues to</td> <td>$g_bug_assigned_status</td> <td>status issue is set to when assigned</td> </tr> <tr> <td>Limit reporter's access to their own issues</td> <td>$g_limit_reporters</td> <td>reporters can see only issues they reported. This setting is for all projects.</td> </tr> </tbody> </table> <p> </p> </div> <p> </p> </div> <div class="FORMALPARA"> <p><strong><strong>Notes.</strong></strong></p> <div class="INFORMALTABLE"> <p> </p> <table class="CALSTABLE" border="1"> <tbody> <tr> <td>Title</td> <td>Variable</td> <td>Description</td> </tr> <tr> <td>Add Notes</td> <td>$g_add_bugnote_threshold</td> <td>threshold to add an issue note</td> </tr> <tr> <td>Update Others' Notes</td> <td>$g_update_bugnote_threshold</td> <td>threshold at which a user can edit issue notes created by other users</td> </tr> <tr> <td>Update Own Notes</td> <td>$g_bugnote_user_edit_threshold</td> <td>threshold at which a user can edit issue notes created by themselves</td> </tr> <tr> <td>Delete Others' Notes</td> <td>$g_delete_bugnote_threshold</td> <td>threshold at which a user can delete issue notes created by other users</td> </tr> <tr> <td>Delete Own Notes</td> <td>$g_bugnote_user_delete_threshold</td> <td>threshold at which a user can delete issue notes created by themselves</td> </tr> <tr> <td>View private notes</td> <td>$g_private_bugnote_threshold</td> <td>threshold to view a private issue note</td> </tr> <tr> <td>Change view state of own notes</td> <td>$g_bugnote_user_change_view_state_threshold</td> <td>threshold at which a user can change the view state of issue notes created by themselves</td> </tr> </tbody> </table> <p> </p> </div> <p> </p> </div> <div class="FORMALPARA"> <p><strong><strong>Others.</strong></strong></p> <div class="INFORMALTABLE"> <p> </p> <table class="CALSTABLE" border="1"> <tbody> <tr> <td>View Change Log</td> <td>$g_view_changelog_threshold</td> <td>threshold to view the changelog</td> </tr> <tr> <td>View Assigned To</td> <td>$g_view_handler_threshold</td> <td>threshold to see who is handling an issue</td> </tr> <tr> <td>View Issue History</td> <td>$g_view_history_threshold</td> <td>threshold to view the issue history</td> </tr> <tr> <td>Send Reminders</td> <td>$g_bug_reminder_threshold</td> <td>threshold to send a reminder</td> </tr> </tbody> </table> <p> </p> </div> <p> </p> </div> </div> <div class="SECTION"> <hr> <h4 class="SECTION">Workflow Transitions</h4> <p>This page covers the status workflow. For most of these, the fields are self explanatory and relate to a similarly named setting in the configuration file. At the right of each row is a selector that allows the administrator to lower the access level required to change the particular parameter.The values changeable on this page are:</p> <div class="TABLE"> <p><strong>Table 1. Issues</strong></p> <table class="CALSTABLE" border="1"> <tbody> <tr> <td>Title</td> <td>Variable</td> <td>Description</td> </tr> <tr> <td>Status to which a new issue is set</td> <td>$g_bug_submit_status</td> <td>status issue is set to when submitted</td> </tr> <tr> <td>Status where an issue is considered resolved</td> <td>$g_bug_resolved_status_threshold</td> <td>status where issue is resolved</td> </tr> <tr> <td>Status to which a reopened Issue is set</td> <td>$g_bug_reopen_status</td> <td>status issue is set to when reopened</td> </tr> </tbody> </table> </div> <p>The matrix that follows has checkmarks where the transitions are allowed from the status on the left edge to the status listed across the top. This corresponds to the $g_enum_workflow array.At the bottom, there is a list of access levels that are required to change the status to the value listed across the top. This can be used, for instance, to restrict those who can close an issue to a specific level, say a manager. This corresponds to the $g_set_status_threshold array and the $g_report_bug_threshold setting.</p> </div> <div class="SECTION"> <hr> <h4 class="SECTION">Email Notifications</h4> <p>This page sets the system defaults for sending emails on issue related events. MantisBT uses flags and a threshold system to generate emails on events. For each new event, email is sent to:</p> <p> </p> <ul> <li> <p>the reporter</p> </li> <li> <p>the handler (or Assigned to)</p> </li> <li> <p>anyone monitoring the issue</p> </li> <li> <p>anyone who has ever added a issue note the issue</p> </li> <li> <p>anyone assigned to the project whose access level matches a range</p> </li> </ul> From this list, those recipients who meet the following criteria are eliminated: <p> </p> <ul> <li> <p>the originator of the change, if $g_email_receive_own is OFF</p> </li> <li> <p>the recipient either no longer exists, or is disabled</p> </li> <li> <p>the recipient has turned their email_on_<new status> preference OFF</p> </li> <li> <p>the recipient has no email address extered</p> </li> </ul> The matrix on this page selects who will receive messages for each of the events listed down the left hand side. The first four columns correspond to the first four points listed above. The next columns correspond to the access levels defined. Note that because a minimum and maximum threshold are used, a discontinuous selection is not allowed. <p> </p> </div> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Monitor Issue</h2> <p>The monitor issues feature allows users to subscribe to certain issues and hence get copied on all notification emails that are sent for these issues.Depending on the configuration, sending a reminder to a user about an issue can add this issue to the user's list of monitored issues. Users who reported the issue or are assigned the issue typically don't need to monitor the issue to get the notifications. This is because by default they get notified on changes related to the issue anyway. However, administrators can change the configuration to disable notifications to reporters or handlers in specific scenarios.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Reopen Issue</h2> <p>Re-open issue button is visible in the issue view pages if the user has the appropriate access level and the issue is resolved/closed. Re-opening a issue will allow users to enter issue notes for the re-opening reason. The issue will automatically be put into the Feedback status.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Delete Issue</h2> <p>The delete issues button appears on the issue view pages for the users who have the appropriate access level. This allows you to delete an existing issue. This should only be used on frivolous or test issues. A confirmation screen will prompt you if you really want to delete the issue. Updaters, Developers, Managers, and Administrators can remove issues (you can also configure this).</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Close Issue</h2> <p>This is a button that appears on the issue view pages for users that are authorized to close issues. Depending on the configuration, users may be able to close issues without having to resolve them first, or may be able to only close resolved issues. After the button is clicked, the user is redirected to a page where an issue note maybe added.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Assign to Me</h2> <p>This button appears in the issue view pages in case of users with access level that is equal to handle_bug_threshold or higher. When this button is clicked the issue is assigned to the user.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Resolve Issue</h2> <p>This option on the View Issues page allows you to resolve the issue. It will lead you to a page where you can set the resolution state and a duplicate id (if applicable). After choosing that the user can choose to enter an issue note detailing the reason for the closure. The issue is then set to the Resolved state. The reporter should check off on the issue by using the Close Issue button.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">News Syndication</h2> <p>MantisBT supports news syndication using RSS v2.0 protocol. MantisBT also supports authenticated news feeds for private projects or installations where anonymous access is not enabled. Authenticated feeds takes a user name and a key token that are used to authenticate the user and generate the feed results in the context of the user's access rights (i.e. the same as what the user would see if they were to logged into MantisBT).To get access to the News RSS as anonymous user, visit the following page:�http://www.example.com/mantisbt/news_rss.php�While a user is logged in, the RSS links provided in the UI will always provide links to the authenticated feeds, if no user is logged in (i.e. anonymous), then anonymous links will be provided.</p> </div> </div> <div class="CHAPTER"> <hr> <h1>Customizing MantisBT</h1> <div class="SECTION"> <h2 class="SECTION">Custom Fields</h2> <div class="SECTION"> <h3 class="SECTION">Overview</h3> <p>Different teams typically like to capture different information as users report issues, in some cases, the data required is even different from one project to another. Hence, MantisBT provides the ability for managers and administrators to define custom fields as way to extend MantisBT to deal with information that is specific to their teams or their projects. The aim is for this to keep MantisBT native fields to a minimum. Following are some facts about the implementation of custom fields in MantisBT:</p> <p> </p> <ul> <li> <p>Custom fields are defined system wide.</p> </li> <li> <p>Custom fields can be linked to multiple projects.</p> </li> <li> <p>The sequence of displaying custom fields can be different per project.</p> </li> <li> <p>Custom fields must be defined by users with access level ADMINISTRATOR.</p> </li> <li> <p>Custom fields can be linked to projects by users with access level MANAGER or above (by default, this can be configurable).</p> </li> <li> <p>Number of custom fields is not restricted.</p> </li> <li> <p>Users can define filters that include custom fields.</p> </li> <li> <p>Custom fields can be included in View Issues, Print Issues, and CSV exports.</p> </li> <li> <p>Enumeration custom fields can have a set of static values or values that are calculated dynamically based on a custom function.</p> </li> </ul> <p> </p> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Custom Field Definition</h3> <p>The definition of a custom field includes the following logical attributes:</p> <p> </p> <ul> <li> <p>Caption variable name (eg: This is the value that is supplied to lang_get() API, or displayed as-is if not found in language file). This should not include any space or any character that would be an invalid PHP identifier.</p> </li> <li> <p>Custom field type (string, numeric, float, enumeration, email, checkbox, radio, list, multi-selection list, date).</p> <p>Type 'string' is used for strings of up to 255 characters.</p> <p>Type 'numeric' is used for numerical integer values.</p> <p>Type 'float' is used for real (float / double) numbers.</p> <p>Type 'enumeration' is used when a user selects one entry from a list. The user interface for such type is a combo-box.</p> <p>Type 'email' is used for storing email addresses.</p> <p>Type 'checkbox' is like enumeration but the list is shown as checkboxes and the user is allowed to tick more than one selection. The default value and the possible value can contain multiple values like 'RED|YELLOW|BLUE' (without the single quote).</p> <p>Type 'radio' is like enumeration but the list is shown as radio buttons and th euser is allowed to tick on of the options. The possible values can be 'RED|YELLOW|BLUE', where the default value can be 'YELLOW'. Note that the default value can't contain multiple values.</p> <p>Type 'list' is like enumeration but the list is shown as a list box where the user is only allowed to select one option. The possible values can be 'RED|YELLOW|BLUE', where the default value can be 'YELLOW'. Note that the default value can't contain multiple values.</p> <p>Type 'multi-selection list' is like enumeration but the list is shown as a list box where the user is allowed to select multiple options. The possible values can be 'RED|YELLOW|BLUE', where the default value can be 'RED|BLUE'. Note that in this case the default value contains multiple values.</p> <p>Type 'date' is for date values. The default value can be empty, or {tomorrow}, {yesterday}, {next week}, {last week}, {+3 days}, {-2 days}.</p> </li> <li> <p>Enumeration possible values (eg: RED|YELLOW|BLUE). Use the pipe ('|') character to separate possible values for an enumeration. One of the possible values can be an empty string. The set of possible values can also be calculated at runtime. For example, "=versions" would automatically resolve into all the versions defined for the current project.</p> </li> <li> <p>Default value - see details above for a sample default value for each type.</p> </li> <li> <p>Minimum/maximum length for the custom field value (use 0 to disable). Note that these metrics are not really relevant to custom fields that are based on an enumeration of possible values.</p> </li> <li> <p>Regular expression to use for validating user input (use PCRE syntax).</p> </li> <li> <p>Read Access level: Minimum access level for users to be able to see the value of the custom field.</p> </li> <li> <p>Write Access level: Minimum access level for users to be able to edit the value of the custom field.</p> </li> <li> <p>Display when reporting issues? - If this custom field should be shown on the Report Issue page.</p> </li> <li> <p>Display when updating issues? - If this custom field should be shown on the Update Issue page.</p> </li> <li> <p>Display when resolving issues? - If this custom field should be shown when resolving an issue. For example, a "root cause" custom field would make sense to set when resolving the issue.</p> </li> <li> <p>Display when closing issues? - If this custom field should be shown when closing an issue.</p> </li> <li> <p>Required on Report - If this custom field is a mandatory field on the Report Issue page.</p> </li> <li> <p>Required on Update - If this custom field is a mandatory field on the Update Issue page.</p> </li> <li> <p>Required on Resolve - If this custom field is a mandatory field when resolving an issue.</p> </li> <li> <p>Required on Close - If this custom field is a mandatory field when closing an issue.</p> </li> </ul> <p> </p> <p>All custom fields are currently saved to a field of type VARCHAR(255) in the database. However, in future releases, it is possible to support custom fields of different types (eg: memo, file).</p> <p>If the value of a custom field for a certain defect is not found, the default value is assumed.</p> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Adding/Editing Custom Fields</h3> <p> </p> <p> </p> <ul> <li> <p>The logged in user needs $g_manage_custom_fields_threshold access level.</p> </li> <li> <p>Select "Manage" from the main menu.</p> </li> <li> <p>Select "Manage Custom Fields" from the management menu.</p> </li> <li> <p>In case of edit, click on the name of an existing custom field to edit its information.</p> </li> <li> <p>In case of adding a new one, enter the name of the new custom field then click "New Custom Field".</p> </li> </ul> <p> </p> <div class="NOTE"> <p> </p> <table class="NOTE" style="width: 100%;" border="0"> <tbody> <tr> <td width="25" align="CENTER"></td> <td align="LEFT"> <p>Added custom fields will not show up in any of the issues until the added custom field is linked to the appropriate projects.</p> </td> </tr> </tbody> </table> </div> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Linking/Unlinking/Ordering Existing Custom Fields in Projects</h3> <p> </p> <p> </p> <ul> <li> <p>The logged in user needs to have access level that is greater than or equal to $g_custom_field_link_threshold and $g_manage_project_threshold.</p> </li> <li> <p>Select "Manage" from the main menu.</p> </li> <li> <p>Select "Manage Projects".</p> </li> <li> <p>Select the name of the project to manage.</p> </li> <li> <p>Scroll down to the "Custom Fields" box.</p> </li> <li> <p>Select the field to add from the list, then click "Add This Existing Custom Field".</p> </li> <li> <p>To change the order of the custom fields, edit the "Sequence" value and click update. Custom fields with smaller values are displayed first.</p> </li> <li> <p>To unlink a custom field, click on "Remove" link next to the field. Unlinking a custom field will not delete the values that are associated with the issues for this field. These values are only deleted if the custom field definition is removed (not unlinked!) from the database. This is useful if you decide to re-link the custom field. These values may also re-appear if issues are moved to another project which has this field linked.</p> </li> </ul> <p> </p> <div class="FORMALPARA"> <p><strong><strong>Moving Issues. </strong></strong>When an issue is moved from one project to another, custom fields that are not defined for the new project are not deleted. These fields will re-appear with their correct values if the issue is moved back to the original project, or if these custom fields are linked to the new project.</p> </div> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Localizing Custom Field Names</h3> <p>It is possible to localize the label for the custom fields. This can be as follows:</p> <p> </p> <ul> <li> <p>Give the custom field a valid variable name (i.e. start with an alpha character, no spaces, etc) - For example, we will use "my_start_date" for a custom field of type "Date" which stores the "Start Date" for working on an issue.</p> </li> <li> <p>Add the localized string for "my_start_date" - This can be done by creating custom_strings_inc.php in the MantisBT root folder and adding the following code to it:</p> <pre class="PROGRAMLISTING"><?php if ( lang_get_current() == 'german' ) { $s_my_start_date = 'Start Date XX'; // German translation of Start Date } else { # Default (use your preferred language as the default) $s_my_start_date = 'Start Date'; } ?></pre> <p> </p> </li> </ul> <p> </p> <div class="NOTE"> <p> </p> <table class="NOTE" style="width: 100%;" border="0"> <tbody> <tr> <td width="25" align="CENTER"></td> <td align="LEFT"> <p>If we would have decided to use start_date as the name of the custom field, then we have used an already localized string from MantisBT standard strings. In this case, there is no need to create the custom_strings_inc.php or to add any strings to it. To check for standard strings, inspect lang/strings_english.txt.</p> </td> </tr> </tbody> </table> </div> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Dynamic default values</h3> <div class="SECTION"> <h4 class="SECTION">Dynamic defaults for Date fields</h4> <p>Custom fields of type date can be defaulted to a specific dates or to relative dates. Typically relative dates is the scenario that makes sense in most of the cases. The format for specific dates is an integer which indicates the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT), which is the format consumed by the PHPdate() method. The relative scenario expects default values like {tomorrow}, {yesterday}, {+2 days}, {-3 days}, {next week}, etc. The curly brackets indicate that this is a logical value which is then evaluated using the PHP strtotime() function.</p> </div> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Dynamic values for Enumeration Custom Fields</h3> <p>As discussed earlier, one of the possible types of a custom field is "enumeration". This type of custom field allows the user to select one value from a provided list of possible values. The standard way of defining such custom fields is to provide a '|' separated list of possible values. However, this approach has two limitations: the list is static, and the maximum length of the list must be no longer than 255 characters. Hence, the need for the ability to construct the list of possible values dynamically.</p> <div class="SECTION"> <hr> <h4 class="SECTION">Dynamic possible values included by default</h4> <p>MantisBT ships with some dynamic possible values, these include the following:</p> <p> </p> <ul> <li> <p>=categories - a list of categories defined in the current project (or the project to which the issue belongs).</p> </li> <li> <p>=versions - a list of all versions defined in the current project (or the project to which the issue belongs).</p> </li> <li> <p>=future_versions - a list of all versions that belong to the current project with released flag set to false.</p> </li> <li> <p>=released_versions - a list of all versions that belong to the current project with released flag set to true.</p> </li> </ul> <p> </p> <div class="NOTE"> <p> </p> <table class="NOTE" style="width: 100%;" border="0"> <tbody> <tr> <td width="25" align="CENTER"></td> <td align="LEFT"> <p>The '=' before the name of the dynamic list of options is used to tell MantisBT that this is a dynamic list, rather than a static list with just one option.</p> </td> </tr> </tbody> </table> </div> </div> <div class="SECTION"> <hr> <h4 class="SECTION">Defining Custom Dynamic Possible Values</h4> <p>If the user selects =versions, the actual custom function that is executed is custom_function_*_enum_versions(). The reason why the "enum_" is not included is to have a fixed prefix for all custom functions used for this purpose and protect against users using custom functions that were not intended for this purpose. For example, you don't want the user to use custom_function_*_issue_delete_notify() which may be overridden by the web master to delete associated data in other databases.</p> <p>Following is a sample custom function that is used to populate a field with the categories belonging to the currently selected project:</p> <pre class="PROGRAMLISTING"># -------------------- # Construct an enumeration for all categories for the current project. # The enumeration will be empty if current project is ALL PROJECTS. # Enumerations format is: "abc|lmn|xyz" # To use this in a custom field type "=categories" in the possible values field. function custom_function_override_enum_categories() { $t_categories = category_get_all_rows( helper_get_current_project() ); $t_enum = array(); foreach( $t_categories as $t_category ) { $t_enum[] = $t_category['category']; } $t_possible_values = implode( '|', $t_enum ); return $t_possible_values; }</pre> <p> </p> <p>Notice the following:</p> <p> </p> <ul> <li> <p>The custom function doesn't take any parameters.</p> </li> <li> <p>The custom function returns the possible values in the format (A|B|C).</p> </li> <li> <p>The custom function uses the current project.</p> </li> <li> <p>The custom function builds on top of the already existing APIs.</p> </li> </ul> <p> </p> <p>To define your own function /u201c=mine/u201d, you will have to define it with the following signature:</p> <pre class="PROGRAMLISTING"># -------------------- # To use this in a custom field type "=mine" in the possible values field. function custom_function_override_enum_mine() { $t_enum = array(); : $t_possible_values = implode( '|', $t_enum ); return $t_possible_values; }</pre> <p> </p> <p>Notice "override" in the function name. This is because this method is defined by the MantisBT adminstrator/webmaster and not part of the MantisBT source. It is OK to override a method that doesn't exist.</p> <p>As usual, when MantisBT is upgraded to future releases, the custom functions will not be overwritten. The difference between the "default" implementation and the "override" implementation is explained in more details in the custom functions section.</p> </div> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Enumerations</h2> <p>Enumerations are used in MantisBT to represent a set of possible values for an attribute. Enumerations are used for access levels, severities, priorities, project statuses, project view state, reproducibility, resolution, ETA, and projection. MantisBT provides the administrator with the flexibility of altering the values in these enumerations. The rest of this topic explains how enumerations work, and then how they can be customised.</p> <div class="FORMALPARA"> <p><strong><strong>How enumerations work? </strong></strong><tt class="FILENAME">core/constant_inc.php</tt> defines the constants that correspond to those in the enumeration. These are useful to refer to these enumerations in the configs and the code.</p> <pre class="PROGRAMLISTING"> define( 'VIEWER', 10 ) define( 'REPORTER', 25 ) define( 'UPDATER', 40 ) define( 'DEVELOPER', 55 ) define( 'MANAGER', 70 ) define( 'ADMINISTRATOR', 90 ) </pre> <p> </p> </div> <p><tt class="FILENAME">config_defaults_inc.php</tt> includes the defaults for the enumerations. The configuration options that are defaulted here are used in specifying which enumerations are active and should be used in MantisBT. However, the strings included in the enumerations here are just for documentation purpose, they are not shown to the user (due to the need for localisation). Hence, if an entry in this enumeration is not found in the corresponding localised enumeration (i.e. 70:manager), then it will be printed to the user as @70@.</p> <pre class="PROGRAMLISTING"> $g_access_levels_enum_string = '10:viewer,25:reporter,40:updater,55:developer,70:manager,90:administrator'; </pre> <p> </p> <p><tt class="FILENAME">lang/strings_german.txt</tt> provide the localised strings (in this case, in german) for enumerations. But again, the master list is the enumeration in the configs, the ones in the language files are just used for finding the localised equivalent for an entry. Hence, if a user changes the config to have only two types of users developers and administrators, then only those will be prompted to the users even if the enumerations in the language files still includes the full list.</p> <pre class="PROGRAMLISTING"> $s_access_levels_enum_string = '10:Betrachter,25:Reporter,40:Updater,55:Entwickler,70:Manager,90:Administrator'; </pre> <p> </p> <div class="FORMALPARA"> <p><strong><strong>How can they be customised? </strong></strong>Let say we want to remove access level "Updater" and add access level "Senior Developer".</p> </div> <p>The file <tt class="FILENAME">custom_constants_inc.php</tt> is supported for the exclusive purpose of allowing administrators to define their own constants while maintaining a simple upgrade path for future releases of MantisBT. Note that this file is not distributed with MantisBT and you will need to create it if you need such customisation. In our example, we need to define a constant for the new access level.</p> <pre class="PROGRAMLISTING"> define ( 'SENIOR_DEVELOPER', 60 ); </pre> <p> </p> <p>In <tt class="FILENAME">config_inc.php</tt></p> <pre class="PROGRAMLISTING"> // Remove Updater and add Senior Developer $g_access_levels_enum_string = '10:viewer,25:reporter,55:developer,60:senior_developer,70:manager,90:administrator'; // Give access to Senior developers to create/delete custom field. $g_manage_custom_fields_threshold = SENIOR_DEVELOPER; </pre> <p> </p> <p>The file <tt class="FILENAME">custom_strings_inc.php</tt> is introduced for a similar reason to that of custom_constants_inc.php, which is to define custom strings. The advantage of defining them here is to provide a simple upgrade path, and avoid having to re-do the changes when upgrading to the next MantisBT release. Note that you will need to create this file if you need such customisation. The file is automatically detected and included by MantisBT code.</p> <pre class="PROGRAMLISTING"> # Note that we don't have to remove the Updater entry from the localisation file if ( lang_get_current() === 'english' ) { $s_access_levels_enum_string = '10:Betrachter,25:Reporter,40:Updater,55:Entwickler,60:Senior Developer,70:Manager,90:Administrator'; } </pre> <p> </p> <div class="FORMALPARA"> <p><strong><strong>Conclusion. </strong></strong>We have covered how enumerations work in general, and how to customise one of them. If you are interested in customising other enumerations, a good starting point would be to go to "MantisBT Enum Strings" section in config_defaults_inc.php. This section defines all enumerations that are used by MantisBT. For versions that are older than 0.18.0, custom_*_inc.php files are not supported, and hence you will need to change in the actual constants / language files directly.</p> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Email Notifications</h2> <p>See Email in the Configuration section.</p> <p>Examples:</p> <p> </p> <ul> <li> <p>Notify only managers of new issues.</p> <pre class="PROGRAMLISTING"> $g_notify_flags['new']['threshold_min'] = MANAGER; $g_notify_flags['new']['threshold_max'] = MANAGER; </pre> <p> </p> </li> <li> <p>Notify Developers and managers of all project events, except, exclude developers from the 'closed' events.</p> <pre class="PROGRAMLISTING">$g_default_notify_flags['threshold_min'] = DEVELOPER; $g_default_notify_flags['threshold_max'] = MANAGER; $g_notify_flags['closed']['threshold_max'] = MANAGER; $g_notify_flags['closed']['threshold_max'] = MANAGER; </pre> <p> </p> </li> <li> <p>Exclude those who contributed issue notes from getting messages about other changes in the issue.</p> <pre class="PROGRAMLISTING">$g_default_notify_flags['bugnotes'] = OFF;</pre> <p> </p> </li> <li> <p>Exclude those monitoring issues from seeing the 'closed' message</p> <pre class="PROGRAMLISTING">$g_notify_flags['closed']['monitor'] = OFF;</pre> <p> </p> </li> <li> <p>Only notify developers when issue notes are added.</p> <pre class="PROGRAMLISTING">$g_notify_flags['bugnote']['threshold_min'] = DEVELOPER; $g_notify_flags['bugnote']['threshold_max'] = DEVELOPER; </pre> <p> </p> </li> <li> <p>Notify managers of changes in sponsorship.</p> <pre class="PROGRAMLISTING">$g_notify_flags['sponsor']['threshold_max'] = MANAGER; $g_notify_flags['sponsor']['threshold_max'] = MANAGER; </pre> <p> </p> </li> <li> <p>Notify originator and managers of changes in ownership ("Assigned To:").</p> <pre class="PROGRAMLISTING">$g_notify_flags['owner']['threshold_max'] = MANAGER; $g_notify_flags['owner']['threshold_max'] = MANAGER; $g_notify_flags['owner']['reporter'] = ON; </pre> <p> </p> </li> <li> <p>I'm paranoid about mail. Only send information on issues to those involved in them. Don't send mail people already know about. Also send new issue notifications to managers so they can screen them.</p> <pre class="PROGRAMLISTING">$g_mail_receive_own = OFF; $g_default_notify_flags = array('reporter' => ON, 'handler' => ON, 'monitor' => ON, 'bugnotes' => ON, 'threshold_min' => NOBODY, 'threshold_max' => NOBODY); $g_notify_flags['new']['threshold_min'] = MANAGER; $g_notify_flags['new']['threshold_max'] = MANAGER; </pre> <p> </p> </li> <li> <p>How do I replace the $g_to_email configuration variable to log all messages to an email logger.</p> <p>You will need to create a dummy user with the appropriate access level for the notices you want to log. Once this user is added to projects, they will receive mail using the appropriate rules.</p> </li> </ul> <p> </p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Customizing Status Values</h2> <p>The default is no workflow, where all states are accessible from any others. The following example can be transferred to config_inc.php. The workflow needs to have a path from the statuses greater than or equal to the resolved state back to the feedback state. Otherwise, the re-open operation won't work.</p> <pre class="PROGRAMLISTING">$g_status_enum_workflow[NEW_]= '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved'; $g_status_enum_workflow[FEEDBACK] = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved'; $g_status_enum_workflow[ACKNOWLEDGED] = '20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved'; $g_status_enum_workflow[CONFIRMED] = '20:feedback,40:confirmed,50:assigned,80:resolved'; $g_status_enum_workflow[ASSIGNED] = '20:feedback,50:assigned,80:resolved,90:closed'; $g_status_enum_workflow[RESOLVED] = '50:assigned,80:resolved,90:closed'; $g_status_enum_workflow[CLOSED] = '50:assigned'; </pre> <p> </p> <p>To add a status:</p> <p> </p> <ol type="1"> <li> <p>Define a constant to map the new status to.In a new file custom_constants_inc.php in the main mantisbt directory:</p> <pre class="PROGRAMLISTING"><?php define ( 'TEST', 60 ); ?></pre> <p> </p> </li> <li> <p>Define the language strings required. This may need to be defined in several languages.In a new file custom_strings_inc.php in the main mantisbt directory:</p> <pre class="PROGRAMLISTING"><?php if ( lang_get_current() == 'german' ) { $s_status_enum_string = '10:neu,20:R�ckmeldung,30:anerkannt,40:best‰tigt,50:zugewiesen, 60:zu testen,80:behoben,90:geschlossen'; } else { $s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, 60:to be tested,80:resolved,90:closed'; $s_to_be_tested_bug_button = "Issue Ready to Test"; $s_to_be_tested_bug_title = "Set Issue Ready to Test"; $s_email_notification_title_for_status_bug_to_be_tested = "The following issue is ready TO BE TESTED."; } ?> </pre> <p> </p> </li> <li> <p>Define any configurations required.In the existing file config_inc.php in the main mantisbt directory:</p> <pre class="PROGRAMLISTING">$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, 60:to be tested,80:resolved,90:closed'; # Status color additions $g_status_colors['to be tested'] = '#ACE7AE'; </pre> <p> </p> </li> <li> <p>Add the status to any workflow defined.In config_inc.php:</p> <pre class="PROGRAMLISTING">$g_status_enum_workflow[NEW_]= '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:to be tested'; $g_status_enum_workflow[FEEDBACK] = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:to be tested'; $g_status_enum_workflow[ACKNOWLEDGED] = '20:feedback,30:acknowledged,40:confi rmed,50:assigned,60:to be tested'; $g_status_enum_workflow[CONFIRMED] = '20:feedback,40:confirmed,50:assigned,60:to be tested'; $g_status_enum_workflow[ASSIGNED] = '20:feedback,50:assigned,60:to be tested,90:closed'; $g_status_enum_workflow[TEST] = '10:new,20:feedback,50:assigned,60:to be tested,80:resolved,90:closed'; $g_status_enum_workflow[RESOLVED] = '50:assigned,60:to be tested,80:resolved,90:closed'; $g_status_enum_workflow[CLOSED] = '50:assigned,90:closed'; </pre> <p> </p> </li> </ol> <p> </p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Custom Functions</h2> <p>Custom functions are used to extend the functionality of MantisBT by integrating user writtenfunctions into the issue processing at strategic places. This allows the system administrator to changethe functionality without re-writing parts of the internals of the code.</p> <p>User versions of these functions are placed in a file called custom_functions_inc.php in the root directory of MantisBT. This is the same place that the "config_inc.php" file modifying MantisBT defaults is placed. In normal processing, MantisBT will look for override functions and execute them instead of the provided default functions.</p> <p>Custom functions have names like custom_function_override_descriptive_name where descriptive namedescribed the particular function. The specific functions are described below. The simplest way tocreate a custom function is to copy the default function, named custom_function_default_descriptive_namefrom the core/custom_function_api.php file to your override file (custom_functions_inc.php), andrename it. The specific functionality you need can then be coded into the override function.</p> <div class="SECTION"> <hr> <h3 class="SECTION">Defined Functions</h3> <p>custom_function_default_changelog_include_issue( $p_issue_id ) returns true or false if the issue if to be included in the Changelog. custom_function_default_changelog_print_issue( $p_issue_id ) returns a formatted string to be included for the issue in the Changelog. custom_function_default_issue_update_validate( $p_issue_id, $p_new_bug, $p_bug_note_text ) validate issue field settings before an update occurs. It returns true or fails with an error. custom_function_default_issue_update_notify( $p_issue_id ) notify after an issue has been updated. custom_function_default_issue_create_validate( $p_new_bug ) validate issue field settings before an issue is created. It returns true or fails with an error. custom_function_default_issue_create_notify( $p_issue_id ) notify after an issue has been opened. custom_function_default_issue_delete_validate( $p_issue_id ) validate issue field settings before an issue can be deleted. It returns true or fails with an error. custom_function_default_issue_delete_notify( $p_issue_id ) notify after an issue has been deleted</p> </div> <div class="SECTION"> <hr> <h3 class="SECTION">Example Custom Function</h3> <p>The following function is used to validate an issue before it is resolved.</p> <pre class="PROGRAMLISTING"><?php # -------------------- # Hook to validate Validate field settings before resolving # verify that the resolution is not set to OPEN # verify that the fixed in version is set (if versions of the product exist) function custom_function_override_issue_update_validate( $p_issue_id, $p_bug_data, $p_bugnote_text ) { if ( $p_bug_data->status == RESOLVED ) { if ( $p_bug_data->resolution == OPEN ) { error_parameters( 'the resolution cannot be open to resolve the issue' ); trigger_error( ERROR_BUG_VALIDATE_FAILURE, ERROR ); } $t_version_count = count( version_get_all_rows( $p_bug_data->project_id ) ); if ( ( $t_version_count > 0 ) && ( $p_bug_data->fixed_in_version == '' ) ) { error_parameters( 'fixed in version must be set to resolve the issue' ); trigger_error( ERROR_BUG_VALIDATE_FAILURE, ERROR ); } } } ?> </pre> The errors will also need to be defined by adding the following to  <tt class="FILENAME">custom_constants_inc.php</tt> <pre class="PROGRAMLISTING"> define ( 'ERROR_VALIDATE_FAILURE', 2000 ); To custom_strings_inc.php $MANTIS_ERROR['ERROR_VALIDATE_FAILURE'] = 'This change cannot be made because %s'; </pre> <p> </p> </div> </div> </div> <div class="CHAPTER"> <hr> <h1>Authentication</h1> <p>MantisBT supports several authentication techniques out of the box. In addition, there is work in progress relating to supporting authentication plug-ins. Once authentication plug-ins are implemented, then authentication against any protocol or repository of user names and passwords can be done without having to touch MantisBT core code.</p> <p>Although MantisBT supports multiple authentication techniques, it is important to note that MantisBT doesn't yet support hybrid authentication scenarios. For example, internal staff authentications against LDAP where customer authentications against MantisBT database.</p> <div class="SECTION"> <hr> <h2 class="SECTION">Standard Authentication</h2> <p>Standard, or native, authentication is where MantisBT users are authenticated against user records in the MantisBT database. The passwords are stored in the database in one of several formats:</p> <p> </p> <ul> <li> <p>CRYPT - deprecated.</p> </li> <li> <p>CRYPT_FULL_SALT - deprecated.</p> </li> <li> <p>PLAIN - deprecated.</p> </li> <li> <p>MD5 - This is default and recommended approach. See MD5 topic on Wikipedia for more details.</p> </li> </ul> <p> </p> <p>See $g_login_methods for more details about how to configure MantisBT to use one of the above authentication techniques.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">HTTP_AUTH</h2> <p>When MantisBT is configured to use basic auth, it automatically detects the logged in user and checks if they are already registered in MantisBT, if not, then a new account is automatically created for the username.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">BASIC_AUTH</h2> <p>TODO</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">LDAP</h2> <p>Functionality is provided by using the php-ldap module (/usr/lib/php4/ldap.so). An extra login method is defined within core/user_API.php inside of function is_password_match $f_username, $p_test_password, $p_password ).This has a simple, non encrypted (yet) test of the LDAP directory for that user by asking for an entry with uid=username and password=test_password, if this exists, it is presumed that the user should be granted access.</p> <div class="FORMALPARA"> <p><strong><strong>Configuration basics. </strong></strong>the LDIF format that was tested is as follows:</p> <pre class="PROGRAMLISTING">dn: uid=tests, dc=test, dc=com, dc=au department: testdep organizationname: Testing Organization cn: Test Smith assignedgroup: users givename: Test sn: Smith mail: tests@example.com.au uid: testsuser Password: password objectclass: testPerson </pre> The password may be in clear, taken from the /etc/passwd or /etc/shadow file, or simply encrypted and added using current LDAP tools.There are some specialized software for replicating passwd to LDAP and inversely (eg.  http://freshmeat.net/projects/cpu/ ). <p> </p> </div> <p>Also setup the LDAP parameters explained in the Authentication section. Don't forget to change your $g_login_method to LDAP.</p> <div class="FORMALPARA"> <p><strong><strong>Creating new accounts. </strong></strong>There is still a bit of problem when you want to create a new user to MantisBT using LDAP, you must create the LDIF entry to LDAP, and also sign up for a new account, if both of these line up correctly, authentication will proceed. Email is queried from the LDAP database if the authentication is set to use LDAP instead of the user record in the database entry.</p> </div> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Microsoft Active Directory</h2> <p>TODO</p> </div> </div> <div class="CHAPTER"> <hr> <h1>Project Management</h1> <p>This section covers the project management features of MantisBT. This includes features like change log, roadmap, time tracking, reporting and others.</p> <div class="SECTION"> <hr> <h2 class="SECTION">Change Log</h2> <p>MantisBT doesn't just track the status of issues, it also relates issues to versions. Each project can have several versions, which are marked with attributes like released and obsolete. Users typically report issues against released issues and developers typically fix issues in not released versions. With every new release comes question like: what's new? what has been fixed? Customers wonder if the new release is of interest to them and whether they should take an upgrade. Well, the change log is specifically tailored to answer these kind of questions.</p> <p>In order for an issue to show up in the change log, it has to satisfy certain criteria. The criteria is that the issue has to be resolved with a 'fixed' resolution and has to have the 'fixed_in_version' field set. Users sometimes wonder why resolved or closed issues don't show up in the change log, and the answer is that the 'fixed_in_version' field is not set. Without the 'fixed_in_version', it is not possible for MantisBT to include the issues in the appropriate section of the changelog. Note that it is possible to set the 'fixed_in_version' for multiple issues using the 'Update Fixed in Version' group action on the View Issues page (just below the issues list). This option is only available when the selected project is not 'All Projects'. Once a version is marked as obsolete, it is now longer included in the change log.</p> <p>MantisBT also provides the ability to customize the criteria used for an issue to be included in the change log. For example, for installations that use a custom set of resolutions, it is possible to select multiple resolutions as valid candidates for the change log. This can be done using custom functions (see custom functions documentation for more details). The custom function below overrides the MantisBT default behavior to include issues with both FIXED and IMPLEMENTED (a custom resolution) resolutions in the change log.</p> <pre class="PROGRAMLISTING"># -------------------- # Checks the provided bug and determines whether it should be included in the changelog # or not. # returns true: to include, false: to exclude. function custom_function_override_changelog_include_issue( $p_issue_id ) { $t_issue = bug_get( $p_issue_id ); return ( ( $t_issue->resolution == FIXED || $t_issue->resolution == IMPLEMENTED ) && ( $t_issue->status >= config_get( 'bug_resolved_status_threshold' ) ) ); }</pre> <p> </p> <p>MantisBT also provides the ability to customize the details to include from the issue and in what format. This can be done using the following custom function.</p> <pre class="PROGRAMLISTING"># -------------------- # Prints one entry in the changelog. function custom_function_override_changelog_print_issue( $p_issue_id, $p_issue_level = 0 ) { $t_bug = bug_get( $p_issue_id ); if ( $t_bug->category_id ) { $t_category_name = category_get_name( $t_bug->category_id ); } else { $t_category_name = ''; } $t_category = is_blank( $t_category_name ) ? '' : '<b>[' . $t_category_name . ']</b> '; echo str_pad( '', $p_issue_level * 6, '�' ), '- ', string_get_bug_view_link( $p_issue_id ), ': ', $t_category, string_display_line_links( $t_bug->summary ); if ( $t_bug->handler_id != 0 ) { echo ' (', prepare_user_name( $t_bug->handler_id ), ')'; } echo ' - ', get_enum_element( 'status', $t_bug->status ), '.<br />'; }</pre> <p> </p> <p>By combining both customization features, it is also possible to do more advanced customization scenarios. For example, users can add a 'ChangelogSummary' custom field and include all issues that have such field in the change log. Through customizing what information being included for a qualifying issue, users can also include the 'ChangelogSummary' text rather than the native summary field.</p> <p>In some cases, users know that they fixed an issue and that the fix will be included in the next release, however, they don't know yet the name of the release. In such case, the recommended approach is to always have a version defined that corresponds to the next release, which is typicalled called 'Next Release'. Once the release is cut and has a concrete name, then 'Next Release' can be renamed to the appropriate name and a new 'Next Release' can then be created. For teams that manage releases from multiple branches for the same project, then more than one next release can be possible. For example, 'Next Dev Release' and 'Next Stable Release'.</p> <p>Another common requirement is to be able to link to the change log of a specific project from the project's main website. There is a variety of ways to do that:</p> <p> </p> <ul> <li> <p>To link to the changelog of version "ver1" of project "myproject":</p> <pre class="PROGRAMLISTING"> http://www.example.com/mantisbt/changelog_page.php?project=myproject&version=ver1 </pre> <p> </p> </li> <li> <p>To link to the changelog of all non-obsolete versions of project 'myproject':</p> <pre class="PROGRAMLISTING"> http://www.example.com/mantisbt/changelog_page.php?project=myproject </pre> <p> </p> </li> <li> <p>To link to the changelog of project with id 1. The project id can be figured out by going to the management page for the project and getting the value of project_id field form the URL.</p> <pre class="PROGRAMLISTING"> http://www.example.com/mantisbt/changelog_page.php?project_id=1 </pre> <p> </p> </li> <li> <p>To link to the changelog of version with id 1. The version id is unique accross all projects and hence in this case it is not necessary to include the project id/name. The version id can be figured out by going to the manage project page and editing the required version. The version_id will be included in the URL.</p> <pre class="PROGRAMLISTING"> http://www.example.com/mantisbt/changelog_page.php?version_id=1 </pre> <p> </p> </li> </ul> <p> </p> <p>Another approach is to go to the project page and from there users can get to multiple other locations relating to the project include the change log. This can be done by a URL like the following:</p> <pre class="PROGRAMLISTING">http://www.example.com/mantisbt/project_page.php?project_id=1</pre> <p> </p> <p>It is possible to customize the access level required for viewing the change log page. This can be done using the $g_view_changelog_threshold configuration option.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Roadmap</h2> <p>One of the very important scenarios in project management is where the project managers (or team leads) triage the issues to set their priorities, target version, and possibly assign the issues to specific developers or take other actions on the issue. By setting the target version of an issue to a version that is not yet released, the issue shows up on the project roadmap, providing user with information about when to expect the issues to be resolved. The roadmap page has a section for each release showing information like planned issues, issues done and percentage of issues completed. Issues that are fixed in a specific version, but didn't have the target_version field set, will not show up in the roadmap. This allows the ability to control the issues that are significant enough to show in the roadmap, while all resolved fields can be found in the change log. Note that it is possible to set the 'target_version' for multiple issues using the 'Update Target Version' group action that is available through the View Issues page (below the issues list). This option is only available when the current project is not 'All Projects'. Although it is not a typical scenario, it is worth mentioning that once a version is marked as obsolete, it is not included in the roadmap.</p> <p>Note that the roadmap only includes future versions, once a version is marked as released, it no longer is included in the roadmap. For information about such releases, the change log feature should be used. For an issue to be shown on the roadmap, it has to have the target version set. It does not matter whether the feature is resolved or not. Resolved features will be decorated with a strikethrough and will be counted as done.</p> <p>MantisBT provides the ability to customize the criteria for issues to show up on the roadmap. The default criteria is that the issue has to belong to a version that is not yet released and that the issues is not a duplicate. However, such criteria can be customized by using custom functions as below.</p> <pre class="PROGRAMLISTING"># -------------------- # Checks the provided bug and determines whether it should be included in the roadmap or not. # returns true: to include, false: to exclude. function custom_function_override_roadmap_include_issue( $p_issue_id ) { return ( true ); }</pre> <p> </p> <p>It is also possible to customize the details included about an issues and the presentation of such details. This can be done through the following custom function:</p> <pre class="PROGRAMLISTING"># -------------------- # Prints one entry in the roadmap. function custom_function_override_roadmap_print_issue( $p_issue_id, $p_issue_level = 0 ) { $t_bug = bug_get( $p_issue_id ); if ( bug_is_resolved( $p_issue_id ) ) { $t_strike_start = '<strike>'; $t_strike_end = '</strike>'; } else { $t_strike_start = $t_strike_end = ''; } if ( $t_bug->category_id ) { $t_category_name = category_get_name( $t_bug->category_id ); } else { $t_category_name = ''; } $t_category = is_blank( $t_category_name ) ? '' : '<b>[' . $t_category_name . ']</b> '; echo str_pad( '', $p_issue_level * 6, '�' ), '- ', $t_strike_start, string_get_bug_view_link( $p_issue_id ), ': ', $t_category, string_display_line_links( $t_bug->summary ); if ( $t_bug->handler_id != 0 ) { echo ' (', prepare_user_name( $t_bug->handler_id ), ')'; } echo ' - ', get_enum_element( 'status', $t_bug->status ), $t_strike_end, '.<br />'; }</pre> <p> </p> <p>Some teams manage different branches for each of their projects (e.g. development and maintenance branches). As part of triaging the issue, they may decide that an issue should be targetted to multiple branches. Hence, frequently the request comes up to be able to target a single issue to multiple releases. The current MantisBT approach is that an issues represents an implementation or a fix for an issue on a specific branch. Since sometimes applying and verifying a fix to the two branches does not happen at the same time and in some cases the approach for fixing an issue is different based on the branch. Hence, the way to manage such scenario is to have the main issue for the initial fix and have related issues which capture the work relating to applying the fix to other branches. The issues for porting the fix can contain any discussions relating to progress, reflect the appropriate status and can go through the standard workflow process independent of the original issues.</p> <p>Another common requirement is to be able to link to the roadmap of a specific project from the project's main website. There is a variety of ways to do that:</p> <p> </p> <ul> <li> <p>To link to the roadmap of version "ver1" of project "myproject":</p> <pre class="PROGRAMLISTING"> http://www.example.com/mantisbt/roadmap_page.php?project=myproject&version=ver1 </pre> <p> </p> </li> <li> <p>To link to the roadmap of all non-obsolete versions of project 'myproject':</p> <pre class="PROGRAMLISTING"> http://www.example.com/mantisbt/roadmap_page.php?project=myproject </pre> <p> </p> </li> <li> <p>To link to the roadmap of project with id 1. The project id can be figured out by going to the management page for the project and getting the value of project_id field form the URL.</p> <pre class="PROGRAMLISTING"> http://www.example.com/mantisbt/roadmap_page.php?project_id=1 </pre> <p> </p> </li> <li> <p>To link to the roadmap of version with id 1. The version id is unique accross all projects and hence in this case it is not necessary to include the project id/name. The version id can be figured out by going to the manage project page and editing the required version. The version_id will be included in the URL.</p> <pre class="PROGRAMLISTING"> http://www.example.com/mantisbt/roadmap_page.php?version_id=1 </pre> <p> </p> </li> </ul> <p> </p> <p>Another approach is to go to the project page and from there users can get to multiple other locations relating to the project include the roadmap. This can be done by a URL like the following:</p> <pre class="PROGRAMLISTING">http://www.example.com/mantisbt/project_page.php?project_id=1</pre> <p> </p> <p>The access level required to view and modify the roadmap can be configured through $g_roadmap_view_threshold and $g_roadmap_update_threshold respectively. Modifying the roadmap is the ability to set the target versions for issues. Users who have such access can set the target versions while reporting new issues or by updating existing issues.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Time Tracking</h2> <p> </p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Graphs</h2> <p>Assigned to me: TODO</p> <p>Release Delta: TODO</p> <p>Category: TODO</p> <p>Severity: TODO</p> <p>Severity / Status: TODO</p> <p>Daily Delta: TODO</p> <p>Reported by Me: TODO</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Summary Page</h2> <p>By Status: TODO</p> <p>By Severity: TODO</p> <p>By Category: TODO</p> <p>Time Stats for Resolved Issues (days): TODO</p> <p>Developer Status: TODO</p> <p>Reporter by Resolution: TODO</p> <p>Developer by Resolution: TODO</p> <p>By Date: TODO</p> <p>Most Active: TODO</p> <p>Longest Open: TODO</p> <p>By Resolution: TODO</p> <p>By Priority: TODO</p> <p>Reporter Status: TODO</p> <p>Reporter Effectiveness: TODO</p> </div> </div> <div class="CHAPTER"> <hr> <h1>Contributing to MantisBT</h1> <div class="SECTION"> <h2 class="SECTION">Talent and Time</h2> <p>One of the greatest ways to contribute to MantisBT is to contribute your talent and time. For MantisBT to keep growing we need such support in all areas related to the software development cycle. This includes: business analysts, developers, web designers, graphics designers, technical writers, globalization developers, translators, testers, super users, packagers and active users. If you would like to contribute in any of these capacities please contact us through the "Contact Us" page.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Recommend MantisBT to Others</h2> <p>It feels great when we get feedback from the user community about how MantisBT boosted their productivity, and benefited their organization. A lot of the feedback I get is via email, some on mailing lists, and some on forums. I would encourage such users to blog about it, tell their friends about MantisBT, and recommend MantisBT to other organizations. MantisBT is driven by it's community, the greater the community, the greater the ideas, the greater of a product it becomes.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Blog about MantisBT</h2> <p>If you have a blog, then blog about MantisBT, review it's features and help us spread the word. A lot of users also like to blog about how they customized MantisBT to fit their needs or to integrate with other tools that they use in their work environment.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Integrate with MantisBT</h2> <p>If you have a product that can be integrates with MantisBT to provide a value for MantisBT users, that would be a great place to contribute and benefit both your project's community and the MantisBT community. A great examples in this area are integrations with content management systems (e.g. *Nuke, Xoops), project management (PHPProjekt), and TestLink for Test Management. MantisBT can easily be integrated with projects in any programming language whether it is hosted on the same webserver or anywhere else in the world. This can be achieved through it's SOAP API and MantisConnect client libraries. MantisConnect comes with client libraries and samples in languages like PHP, .NET, Java and Cocoa.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Registered in MantisBT Users Directory</h2> <p>Join the Users Directory by clicking Submit. While entering your company or project details you will be able to write up a testimonial about MantisBT which will then be included in the Testimonials page.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Donate Money</h2> <p>Use the PayPal donate buttons that you will see around the website (e.g. bottom left of the home page). You can donate using your credit card even if you don't have a PayPal account. Donations is a very easy way for the MantisBT community to give back to MantisBT. The donations can be as small as US$1 or as big as you or your organization want it to be.</p> </div> <div class="SECTION"> <hr> <h2 class="SECTION">Sponsor MantisBT</h2> <p>MantisBT Sponsors are organizations that have realized the benefit brought to their business by using MantisBT and would like to protect such investment and always push it forward via sponsorship. Please take a moment to visit our sponsors page and use the "Contact Us" page for further information.</p> </div> </div> <div class="COLOPHON"> <hr> <h1>Acknowledgements</h1> <p><strong>Acknowledgements</strong></p> <p>We would like to thank all the past and present contributors to the project:</p> <p> </p> <ul> <li> <p>name</p> </li> <li> <p>name</p> </li> <li> <p>name</p> </li> <li> <p>name</p> </li> </ul> </div> <p></p> </div> </div> </div> </div> </div> <!--PC和WAP自适应版--> <div id="SOHUCS" sid="1350659280432345088"></div> <script type="text/javascript" src="/views/front/js/chanyan.js"></script> <!-- 文章页-底部 动态广告位 --> <div class="youdao-fixed-ad" id="detail_ad_bottom"></div> </div> <div class="col-md-3"> <div class="row" id="ad"> <!-- 文章页-右侧1 动态广告位 --> <div id="right-1" class="col-lg-12 col-md-12 col-sm-4 col-xs-4 ad"> <div class="youdao-fixed-ad" id="detail_ad_1"> </div> </div> <!-- 文章页-右侧2 动态广告位 --> <div id="right-2" class="col-lg-12 col-md-12 col-sm-4 col-xs-4 ad"> <div class="youdao-fixed-ad" id="detail_ad_2"></div> </div> <!-- 文章页-右侧3 动态广告位 --> <div id="right-3" class="col-lg-12 col-md-12 col-sm-4 col-xs-4 ad"> <div class="youdao-fixed-ad" id="detail_ad_3"></div> </div> </div> </div> </div> </div> </div> <div class="container"> <h4 class="pt20 mb15 mt0 border-top">你可能感兴趣的:(软件项目管理,access,user,workflow,email,notifications,database)</h4> <div id="paradigm-article-related"> <div class="recommend-post mb30"> <ul class="widget-links"> <li><a href="/article/1835509770749046784.htm" title="mysql禁用远程登录" target="_blank">mysql禁用远程登录</a> <span class="text-muted">igotyback</span> <a class="tag" taget="_blank" href="/search/mysql/1.htm">mysql</a> <div>去mysql库中的user表里,将host都改成localhost之后刷新权限FLUSHPRIVILEGES;</div> </li> <li><a href="/article/1835505858444881920.htm" title="git常用命令笔记" target="_blank">git常用命令笔记</a> <span class="text-muted">咩酱-小羊</span> <a class="tag" taget="_blank" href="/search/git/1.htm">git</a><a class="tag" taget="_blank" href="/search/%E7%AC%94%E8%AE%B0/1.htm">笔记</a> <div>###用习惯了idea总是不记得git的一些常见命令,需要用到的时候总是担心旁边站了人~~~记个笔记@_@,告诉自己看笔记不丢人初始化初始化一个新的Git仓库gitinit配置配置用户信息gitconfig--globaluser.name"YourName"gitconfig--globaluser.email"youremail@example.com"基本操作克隆远程仓库gitclone查看</div> </li> <li><a href="/article/1835503965563875328.htm" title="python os.environ_python os.environ 读取和设置环境变量" target="_blank">python os.environ_python os.environ 读取和设置环境变量</a> <span class="text-muted">weixin_39605414</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/os.environ/1.htm">os.environ</a> <div>>>>importos>>>os.environ.keys()['LC_NUMERIC','GOPATH','GOROOT','GOBIN','LESSOPEN','SSH_CLIENT','LOGNAME','USER','HOME','LC_PAPER','PATH','DISPLAY','LANG','TERM','SHELL','J2REDIR','LC_MONETARY','QT_QPA</div> </li> <li><a href="/article/1835490218409553920.htm" title="01-Git初识" target="_blank">01-Git初识</a> <span class="text-muted">Meereen</span> <a class="tag" taget="_blank" href="/search/Git/1.htm">Git</a><a class="tag" taget="_blank" href="/search/git/1.htm">git</a> <div>01-Git初识概念:一个免费开源,分布式的代码版本控制系统,帮助开发团队维护代码作用:记录代码内容。切换代码版本,多人开发时高效合并代码内容如何学:个人本机使用:Git基础命令和概念多人共享使用:团队开发同一个项目的代码版本管理Git配置用户信息配置:用户名和邮箱,应用在每次提交代码版本时表明自己的身份命令:查看git版本号git-v配置用户名gitconfig--globaluser.name</div> </li> <li><a href="/article/1835484293607026688.htm" title="【Git】常见命令(仅笔记)" target="_blank">【Git】常见命令(仅笔记)</a> <span class="text-muted">好想有猫猫</span> <a class="tag" taget="_blank" href="/search/Git/1.htm">Git</a><a class="tag" taget="_blank" href="/search/Linux%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/1.htm">Linux学习笔记</a><a class="tag" taget="_blank" href="/search/git/1.htm">git</a><a class="tag" taget="_blank" href="/search/%E7%AC%94%E8%AE%B0/1.htm">笔记</a><a class="tag" taget="_blank" href="/search/elasticsearch/1.htm">elasticsearch</a><a class="tag" taget="_blank" href="/search/linux/1.htm">linux</a><a class="tag" taget="_blank" href="/search/c%2B%2B/1.htm">c++</a> <div>文章目录创建/初始化本地仓库添加本地仓库配置项提交文件查看仓库状态回退仓库查看日志分支删除文件暂存工作区代码远程仓库使用`.gitigore`文件让git不追踪一些文件标签创建/初始化本地仓库gitinit添加本地仓库配置项gitconfig-l#以列表形式显示配置项gitconfiguser.name"ljh"#配置user.namegitconfiguser.email"123123@qq.c</div> </li> <li><a href="/article/1835472571445899264.htm" title="xilinx vivado PULLMODE 设置思路" target="_blank">xilinx vivado PULLMODE 设置思路</a> <span class="text-muted">坚持每天写程序</span> <a class="tag" taget="_blank" href="/search/fpga%E5%BC%80%E5%8F%91/1.htm">fpga开发</a> <div>1.xilinx引脚分类XilinxIO的分类:以XC7A100TFGG484为例,其引脚分类如下:1.UserIO(用户IO):用户使用的普通IO1.1专用(Dedicated)IO:命名为IO_LXXY_#、IO_XX_#的引脚,有固定的特定用途,多为底层特定功能的直接实现,如差分对信号、关键控制信号等,不能随意变更。1.2多功能(Multi-Function)IO:命名为IO_LXXY_ZZ</div> </li> <li><a href="/article/1835437775344726016.htm" title="博客网站制作教程" target="_blank">博客网站制作教程</a> <span class="text-muted">2401_85194651</span> <a class="tag" taget="_blank" href="/search/java/1.htm">java</a><a class="tag" taget="_blank" href="/search/maven/1.htm">maven</a> <div>首先就是技术框架:后端:Java+SpringBoot数据库:MySQL前端:Vue.js数据库连接:JPA(JavaPersistenceAPI)1.项目结构blog-app/├──backend/│├──src/main/java/com/example/blogapp/││├──BlogApplication.java││├──config/│││└──DatabaseConfig.java</div> </li> <li><a href="/article/1835436390200995840.htm" title="Table列表复现框实现【勾选-搜索-再勾选】" target="_blank">Table列表复现框实现【勾选-搜索-再勾选】</a> <span class="text-muted">~四时春~</span> <a class="tag" taget="_blank" href="/search/java/1.htm">java</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a><a class="tag" taget="_blank" href="/search/elementui/1.htm">elementui</a><a class="tag" taget="_blank" href="/search/vue/1.htm">vue</a> <div>Table列表复现框实现【勾选-搜索-再勾选】概要整体架构流程代码实现技术细节注意参考文献概要最近在开发时遇到一个问题,在进行表单渲染时,正常选中没有问题,单如果需要搜索选中时,一个是已选中的不会回填,二是在搜索的结果中进行选中,没有实现,经过排查,查找资料后实现。例如:整体架构流程具体的实现效果如下:代码实现{{scope.row.userName}}已选区{{userItem.userName</div> </li> <li><a href="/article/1835418735435935744.htm" title="02-Cesium聚合分析EntityCluster完整代码" target="_blank">02-Cesium聚合分析EntityCluster完整代码</a> <span class="text-muted">fxshy</span> <a class="tag" taget="_blank" href="/search/html/1.htm">html</a><a class="tag" taget="_blank" href="/search/css/1.htm">css</a><a class="tag" taget="_blank" href="/search/javascript/1.htm">javascript</a> <div>1.完整代码Document-->-->Cesium.Ion.defaultAccessToken='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJhZjZkZDAwZC1mNTFhLTRhOTEtOGExNi00MzRhNGIzMDdlNDQiLCJpZCI6MTA1MTUzLCJpYXQiOjE2NjA4MDg0Njd9.qajeJtc4-kp</div> </li> <li><a href="/article/1835418736027332608.htm" title="03-Cesium自定义着色器完整代码以及注释" target="_blank">03-Cesium自定义着色器完整代码以及注释</a> <span class="text-muted">fxshy</span> <a class="tag" taget="_blank" href="/search/%E7%9D%80%E8%89%B2%E5%99%A8/1.htm">着色器</a><a class="tag" taget="_blank" href="/search/javascript/1.htm">javascript</a> <div>1.效果展示2.完整代码自定义着色器完整代码#map{position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;}Cesium.Ion.defaultAccessToken='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJhZjZkZDAwZC1mNTFhLTRhO</div> </li> <li><a href="/article/1835397938482868224.htm" title="golang获取用户输入的几种方式" target="_blank">golang获取用户输入的几种方式</a> <span class="text-muted">余生逆风飞翔</span> <a class="tag" taget="_blank" href="/search/golang/1.htm">golang</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a><a class="tag" taget="_blank" href="/search/%E5%90%8E%E7%AB%AF/1.htm">后端</a> <div>一、定义结构体typeUserInfostruct{Namestring`json:"name"`Ageint`json:"age"`Addstring`json:"add"`}typeReturnDatastruct{Messagestring`json:"message"`Statusstring`json:"status"`DataUserInfo`json:"data"`}二、get请求的</div> </li> <li><a href="/article/1835396299915096064.htm" title="mysql学习教程,从入门到精通,TOP 和MySQL LIMIT 子句(15)" target="_blank">mysql学习教程,从入门到精通,TOP 和MySQL LIMIT 子句(15)</a> <span class="text-muted">知识分享小能手</span> <a class="tag" taget="_blank" href="/search/%E5%A4%A7%E6%95%B0%E6%8D%AE/1.htm">大数据</a><a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E5%BA%93/1.htm">数据库</a><a class="tag" taget="_blank" href="/search/MySQL/1.htm">MySQL</a><a class="tag" taget="_blank" href="/search/mysql/1.htm">mysql</a><a class="tag" taget="_blank" href="/search/%E5%AD%A6%E4%B9%A0/1.htm">学习</a><a class="tag" taget="_blank" href="/search/oracle/1.htm">oracle</a><a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E5%BA%93/1.htm">数据库</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a><a class="tag" taget="_blank" href="/search/adb/1.htm">adb</a><a class="tag" taget="_blank" href="/search/%E5%A4%A7%E6%95%B0%E6%8D%AE/1.htm">大数据</a> <div>1、TOP和MySQLLIMIT子句内容在SQL中,不同的数据库系统对于限制查询结果的数量有不同的实现方式。TOP关键字主要用于SQLServer和Access数据库中,而LIMIT子句则主要用于MySQL、PostgreSQL(通过LIMIT/OFFSET语法)、SQLite等数据库中。下面将分别详细介绍这两个功能的语法、语句以及案例。1.1、TOP子句(SQLServer和Access)1.1</div> </li> <li><a href="/article/1835390122640633856.htm" title="使用selenium调用firefox提示Profile Missing的问题解决" target="_blank">使用selenium调用firefox提示Profile Missing的问题解决</a> <span class="text-muted">歪歪的酒壶</span> <a class="tag" taget="_blank" href="/search/selenium/1.htm">selenium</a><a class="tag" taget="_blank" href="/search/%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7/1.htm">测试工具</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a> <div>在Ubuntu22.04环境中,使用python3运行selenium提示ProfileMissing,具体信息为:YourFirefoxprofilecannotbeloaded.Itmaybemissingorinaccessible在这个问题的环境中firefox浏览器工作正常。排查中,手动在命令行执行firefox可以打开浏览器,但是出现如下提示Gtk-Message:15:32:09.9</div> </li> <li><a href="/article/1835382812061036544.htm" title="golang实现从服务器下载文件到本地指定目录" target="_blank">golang实现从服务器下载文件到本地指定目录</a> <span class="text-muted">余生逆风飞翔</span> <a class="tag" taget="_blank" href="/search/golang/1.htm">golang</a><a class="tag" taget="_blank" href="/search/%E6%9C%8D%E5%8A%A1%E5%99%A8/1.htm">服务器</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>一、连接服务器,采用sftp连接模式packagemiddlewaresimport("fmt""time""github.com/pkg/sftp""golang.org/x/crypto/ssh")//建立服务器连接funcConnect(user,password,hoststring,portint)(*sftp.Client,error){var(auth[]ssh.AuthMethod</div> </li> <li><a href="/article/1835379153730367488.htm" title="spring mvc @RequestBody String类型参数" target="_blank">spring mvc @RequestBody String类型参数</a> <span class="text-muted">zoyation</span> <a class="tag" taget="_blank" href="/search/spring-mvc/1.htm">spring-mvc</a><a class="tag" taget="_blank" href="/search/spring/1.htm">spring</a><a class="tag" taget="_blank" href="/search/mvc/1.htm">mvc</a> <div>通过如下配置:text/html;charset=UTF-8application/json;charset=UTF-8在springmvc的Controller层使用@RequestBody接收Content-Type为application/json的数据时,默认支持Map方式和对象方式参数@RequestMapping(value="/{code}/saveUser",method=Requ</div> </li> <li><a href="/article/1835378018781065216.htm" title="使用python抽取post接口数据示例" target="_blank">使用python抽取post接口数据示例</a> <span class="text-muted">中台小A</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>postman调用接口post接口https://inner-XXXXX.XXXXX.com/wXX/api/XXXXXctoryLake?user_key=XXXXXXXXXXXX,在boday的row里输入Jason格式的{"wasStartDay":"2024-09-03"}importrequestsurl='https://inner-XXXXX.XXXXX.com/wXX/api/XX</div> </li> <li><a href="/article/1835305217382510592.htm" title="静态常量(static const)|| 日志记录器" target="_blank">静态常量(static const)|| 日志记录器</a> <span class="text-muted">课堂随想</span> <a class="tag" taget="_blank" href="/search/moveit2/1.htm">moveit2</a><a class="tag" taget="_blank" href="/search/%E6%9C%BA%E5%99%A8%E4%BA%BA/1.htm">机器人</a> <div>//AllsourcefilesthatuseROSloggingshoulddefineafile-specific//staticconstrclcpp::LoggernamedLOGGER,locatedatthetopofthefile//andinsidethenamespacewiththenarrowestscope(ifthereisone)staticconstrclcpp::L</div> </li> <li><a href="/article/1835296775422963712.htm" title="由于直接在一个回答中提供完整且多语言的游戏商城代码是不现实的(因为每种语言都有其独特的语法和库),我将为你概述一个游戏商城的核心概念,并提供几种不同编程语言的基本框架或示例代码段。" target="_blank">由于直接在一个回答中提供完整且多语言的游戏商城代码是不现实的(因为每种语言都有其独特的语法和库),我将为你概述一个游戏商城的核心概念,并提供几种不同编程语言的基本框架或示例代码段。</a> <span class="text-muted">uthRaman</span> <a class="tag" taget="_blank" href="/search/%E6%B8%B8%E6%88%8F/1.htm">游戏</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>商城系统概述hailiangwang.com游戏商城系统通常包含以下部分:用户系统(登录、注册、用户信息)商品列表(游戏、DLC、虚拟货币等)购物车系统支付系统订单系统2.示例框架(伪代码)首先,我们给出一个伪代码框架,描述商城的核心逻辑。plaintextclassUser:deflogin(username,password):#验证用户登录passdefregister(username,p</div> </li> <li><a href="/article/1835284370089406464.htm" title="2018-08-16【Swift 4.1】 关于Swift4.0以后调用MJExtension无法模型转换问题" target="_blank">2018-08-16【Swift 4.1】 关于Swift4.0以后调用MJExtension无法模型转换问题</a> <span class="text-muted">码农happy</span> <div>1、本人使用swift4.1,弄了一晚上才弄好,结果还是一个小问题真是尴尬,要在model中每个属性前面加上@objcimportUIKitclassUserModel:NSObject{@objcvardix=String()}letdic=["dix":"ffffff"]asNSDictionaryletmodel=UserModel.mj_object(withKeyValues:dic)!</div> </li> <li><a href="/article/1835270819060740096.htm" title="白嫖Gitee实现远程公告功能和小型文件上传下载" target="_blank">白嫖Gitee实现远程公告功能和小型文件上传下载</a> <span class="text-muted">xu-jssy</span> <a class="tag" taget="_blank" href="/search/Python%E8%87%AA%E5%8A%A8%E5%8C%96%E8%84%9A%E6%9C%AC/1.htm">Python自动化脚本</a><a class="tag" taget="_blank" href="/search/gitee/1.htm">gitee</a> <div>备注:20240527更新:新增私人令牌下载模式一、准备工作1、打开Gitee网站:Gitee.comhttps://gitee.com/2、获取access_token,用于身份验证登录后点击右上角头像,在下拉菜单中进入个人主页点击左边的个人设置点击左边菜单中的安全设置->私人令牌点击右上角生成新令牌根据提示填写信息,点击提交在弹出的页面复制令牌,注意备份保存3、创建一个仓库用来存放文件可以把远</div> </li> <li><a href="/article/1835263643080552448.htm" title="Tomcat 中 catalina.out、catalina.log、localhost.log 和 access_log 的区别" target="_blank">Tomcat 中 catalina.out、catalina.log、localhost.log 和 access_log 的区别</a> <span class="text-muted">金色888</span> <div>打开Tomcat安装目录中的log文件夹,我们可以看到很多日志文件,这篇文章就来介绍下这些日记文件的具体区别。catalina.out日志#catalina.out日志文件是Tomcat的标准输出(stdout)和标准出错(stderr)输出的“目的地”。我们在应用里使用System.out打印的内容都会输出到这个日志文件中。另外,如果我们在应用里使用其他的日志框架,配置了向Console输出日志</div> </li> <li><a href="/article/1835257575277424640.htm" title="【Python爬虫】百度百科词条内容" target="_blank">【Python爬虫】百度百科词条内容</a> <span class="text-muted">PokiFighting</span> <a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E5%A4%84%E7%90%86/1.htm">数据处理</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>词条内容我这里随便选取了一个链接,用的是FBI的词条importurllib.requestimporturllib.parsefromlxmlimportetreedefquery(url):headers={'user-agent':'Mozilla/5.0(WindowsNT6.1;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/80.</div> </li> <li><a href="/article/1835245226927681536.htm" title="华为坤灵路由器初始化开局的注意事项,含NAT配置" target="_blank">华为坤灵路由器初始化开局的注意事项,含NAT配置</a> <span class="text-muted">redmond88</span> <a class="tag" taget="_blank" href="/search/%E7%BD%91%E7%BB%9C%E6%8A%80%E6%9C%AF/1.htm">网络技术</a><a class="tag" taget="_blank" href="/search/%E5%8D%8E%E4%B8%BA/1.htm">华为</a><a class="tag" taget="_blank" href="/search/%E6%9C%8D%E5%8A%A1%E5%99%A8/1.htm">服务器</a><a class="tag" taget="_blank" href="/search/%E8%BF%90%E7%BB%B4/1.htm">运维</a> <div>坤灵路由器比较坑,无web界面,全程命令行配置,但是版本更新导致和华为企业路由器配置很多不一样的地方,今天介绍下1、aaa密码复杂度修改:#使能设备对密码进行四选三复杂度检查功能。system-view[HUAWEI]aaa[HUAWEI-aaa]local-aaa-userpasswordpolicyadministrator[HUAWEI-aaa-lupp-admin]passwordcomp</div> </li> <li><a href="/article/1835244971544899584.htm" title="Jooq 框架介绍及其核心要点" target="_blank">Jooq 框架介绍及其核心要点</a> <span class="text-muted">木南曌</span> <a class="tag" taget="_blank" href="/search/Java/1.htm">Java</a><a class="tag" taget="_blank" href="/search/java/1.htm">java</a> <div>一、引言Jooq(JavaPersistenceforRelationalDatabases)是一个强大的类型安全的SQL查询构建器和ORM(Object-RelationalMapping)框架,专为Java和Kotlin设计。它为开发者提供了一种优雅的方式来编写SQL代码,同时还能享受到静态类型检查带来的好处。本文将详细介绍Jooq的核心功能,并通过一系列的代码示例来展示如何使用Jooq。二、</div> </li> <li><a href="/article/1835243963024502784.htm" title="MyBatis批量插入大量数据" target="_blank">MyBatis批量插入大量数据</a> <span class="text-muted">小黑屋说YYDS</span> <a class="tag" taget="_blank" href="/search/MyBatis/1.htm">MyBatis</a><a class="tag" taget="_blank" href="/search/java/1.htm">java</a> <div>1.思路分析批量插入这个问题,我们用JDBC操作,其实就是两种思路吧:用一个for循环,把数据一条一条的插入(这种需要开启批处理)。生成一条插入sql,类似这种insertintouser(username,address)values(‘aa’,‘bb’),(‘cc’,‘dd’)…。到底哪种快呢?我们从两方面来考虑这个问题:插入SQL本身执行的效率。网络I/O。先说第一种方案,就是用for循环循</div> </li> <li><a href="/article/1835243963653648384.htm" title="Spring Security定义多个过滤器链(10)" target="_blank">Spring Security定义多个过滤器链(10)</a> <span class="text-muted">小黑屋说YYDS</span> <a class="tag" taget="_blank" href="/search/spring/1.htm">spring</a> <div>在SpringSecurity中可以同时存在多个过滤器链,一个WebSecurityConfigurerAdapter的实例就可以配置一条过滤器链。我们来看如下一个案例:@ConfigurationpublicclassSecurityConfig{@BeanUserDetailsServiceus(){InMemoryUserDetailsManagerusers=newInMemoryUser</div> </li> <li><a href="/article/1835216361375232000.htm" title="大数据真实面试题---SQL" target="_blank">大数据真实面试题---SQL</a> <span class="text-muted">The博宇</span> <a class="tag" taget="_blank" href="/search/%E5%A4%A7%E6%95%B0%E6%8D%AE%E9%9D%A2%E8%AF%95%E9%A2%98%E2%80%94%E2%80%94SQL/1.htm">大数据面试题——SQL</a><a class="tag" taget="_blank" href="/search/%E5%A4%A7%E6%95%B0%E6%8D%AE/1.htm">大数据</a><a class="tag" taget="_blank" href="/search/mysql/1.htm">mysql</a><a class="tag" taget="_blank" href="/search/sql/1.htm">sql</a><a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E5%BA%93/1.htm">数据库</a><a class="tag" taget="_blank" href="/search/big/1.htm">big</a><a class="tag" taget="_blank" href="/search/data/1.htm">data</a> <div>视频号数据分析组外包招聘笔试题时间限时45分钟完成。题目根据3张表表结构,写出具体求解的SQL代码(搞笑品类定义:视频分类或者视频创建者分类为“搞笑”)1、表创建语句:createtablet_user_video_action_d(dsint,user_idstring,video_idstring,action_typeint,`timestamp`bigint)rowformatdelimi</div> </li> <li><a href="/article/1835195686212169728.htm" title="5-【JavaWeb】JUnit 单元测试及JUL 日志系统" target="_blank">5-【JavaWeb】JUnit 单元测试及JUL 日志系统</a> <span class="text-muted">weixin_44329069</span> <a class="tag" taget="_blank" href="/search/JavaWeb/1.htm">JavaWeb</a><a class="tag" taget="_blank" href="/search/junit/1.htm">junit</a><a class="tag" taget="_blank" href="/search/%E5%8D%95%E5%85%83%E6%B5%8B%E8%AF%95/1.htm">单元测试</a> <div>1.使用JUnit进行单元测试JUnit是Java中非常流行的单元测试框架,MyBatis与JUnit可以很好地结合,来测试持久层代码的正确性。1.1添加JUnit依赖在使用JUnit之前,需要在pom.xml中引入JUnit依赖。junitjunit4.13.2test1.2单元测试基本结构假设我们要测试UserMapper中的getUserById方法,测试代码如下:importorg.apa</div> </li> <li><a href="/article/1835190389838016512.htm" title="GEO数据的下载和处理|GEO数据转换为Gene symbol|GEO注释文件提取symbol|查看样本标签|查看GEO数据疾病或正常|生物信息基础" target="_blank">GEO数据的下载和处理|GEO数据转换为Gene symbol|GEO注释文件提取symbol|查看样本标签|查看GEO数据疾病或正常|生物信息基础</a> <span class="text-muted">Red Red</span> <a class="tag" taget="_blank" href="/search/%E7%94%9F%E4%BF%A1%E5%B0%8F%E6%8A%80%E5%B7%A7/1.htm">生信小技巧</a><a class="tag" taget="_blank" href="/search/%E5%AD%A6%E4%B9%A0/1.htm">学习</a><a class="tag" taget="_blank" href="/search/%E7%AC%94%E8%AE%B0/1.htm">笔记</a><a class="tag" taget="_blank" href="/search/%E7%94%9F%E7%89%A9%E4%BF%A1%E6%81%AF/1.htm">生物信息</a><a class="tag" taget="_blank" href="/search/r%E8%AF%AD%E8%A8%80/1.htm">r语言</a><a class="tag" taget="_blank" href="/search/GEO%E6%95%B0%E6%8D%AE%E5%BA%93/1.htm">GEO数据库</a><a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E5%BA%93/1.htm">数据库</a> <div>GEO数据的下载和处理|GEO数据转换为Genesymbol|GEO注释文件提取symbol|查看样本标签|查看GEO数据疾病或正常|生物信息基础数据的下载和处理首先在GEO数据库中通过GSEID找到相关数据,然后下载txt文件。数据读取与处理。#设置工作路径,也就是你的分析数据存放以及要保存到地方setwd(dir="C:\\Users\\LiaoMinzhen\\PycharmProjects</div> </li> <li><a href="/article/1835182528177205248.htm" title="解决mysql漏洞 Oracle MySQL Server远程安全漏洞(CVE-2015-0411)" target="_blank">解决mysql漏洞 Oracle MySQL Server远程安全漏洞(CVE-2015-0411)</a> <span class="text-muted">dieweidong5625</span> <a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E5%BA%93/1.htm">数据库</a><a class="tag" taget="_blank" href="/search/%E8%BF%90%E7%BB%B4/1.htm">运维</a><a class="tag" taget="_blank" href="/search/java/1.htm">java</a> <div>有时候会检测到服务器有很多漏洞,而大部分漏洞都是由于服务的版本过低的原因,因为官网出现漏洞就会发布新版本来修复这个漏洞,所以一般情况下,我们只需要对相应的软件包进行升级到安全版本即可。通过查阅官网信息,OracleMySQLServer远程安全漏洞(CVE-2015-0411),受影响系统:OracleMySQLServer/usr/databases.sql//先备份原有所有数据,防止数据丢失。</div> </li> <li><a href="/article/117.htm" title="Algorithm" target="_blank">Algorithm</a> <span class="text-muted">香水浓</span> <a class="tag" taget="_blank" href="/search/java/1.htm">java</a><a class="tag" taget="_blank" href="/search/Algorithm/1.htm">Algorithm</a> <div>冒泡排序 public static void sort(Integer[] param) { for (int i = param.length - 1; i > 0; i--) { for (int j = 0; j < i; j++) { int current = param[j]; int next = param[j + 1];</div> </li> <li><a href="/article/244.htm" title="mongoDB 复杂查询表达式" target="_blank">mongoDB 复杂查询表达式</a> <span class="text-muted">开窍的石头</span> <a class="tag" taget="_blank" href="/search/mongodb/1.htm">mongodb</a> <div>1:count    Pg: db.user.find().count();    统计多少条数据 2:不等于$ne    Pg: db.user.find({_id:{$ne:3}},{name:1,sex:1,_id:0});    查询id不等于3的数据。 3:大于$gt $gte(大于等于) &n</div> </li> <li><a href="/article/371.htm" title="Jboss Java heap space异常解决方法, jboss OutOfMemoryError : PermGen space" target="_blank">Jboss Java heap space异常解决方法, jboss OutOfMemoryError : PermGen space</a> <span class="text-muted">0624chenhong</span> <a class="tag" taget="_blank" href="/search/jvm/1.htm">jvm</a><a class="tag" taget="_blank" href="/search/jboss/1.htm">jboss</a> <div>转自 http://blog.csdn.net/zou274/article/details/5552630 解决办法: window->preferences->java->installed jres->edit jre 把default vm arguments 的参数设为-Xms64m -Xmx512m ----------------</div> </li> <li><a href="/article/498.htm" title="文件上传 下载 解析 相对路径" target="_blank">文件上传 下载 解析 相对路径</a> <span class="text-muted">不懂事的小屁孩</span> <a class="tag" taget="_blank" href="/search/%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0/1.htm">文件上传</a> <div>有点坑吧,弄这么一个简单的东西弄了一天多,身边还有大神指导着,网上各种百度着。 下面总结一下遇到的问题: 文件上传,在页面上传的时候,不要想着去操作绝对路径,浏览器会对客户端的信息进行保护,避免用户信息收到攻击。 在上传图片,或者文件时,使用form表单来操作。 前台通过form表单传输一个流到后台,而不是ajax传递参数到后台,代码如下: <form action=&</div> </li> <li><a href="/article/625.htm" title="怎么实现qq空间批量点赞" target="_blank">怎么实现qq空间批量点赞</a> <span class="text-muted">换个号韩国红果果</span> <a class="tag" taget="_blank" href="/search/qq/1.htm">qq</a> <div>纯粹为了好玩!! 逻辑很简单 1 打开浏览器console;输入以下代码。 先上添加赞的代码 var tools={}; //添加所有赞 function init(){ document.body.scrollTop=10000; setTimeout(function(){document.body.scrollTop=0;},2000);//加</div> </li> <li><a href="/article/752.htm" title="判断是否为中文" target="_blank">判断是否为中文</a> <span class="text-muted">灵静志远</span> <a class="tag" taget="_blank" href="/search/%E4%B8%AD%E6%96%87/1.htm">中文</a> <div>方法一: public class Zhidao { public static void main(String args[]) { String s = "sdf灭礌 kjl d{';\fdsjlk是"; int n=0; for(int i=0; i<s.length(); i++) { n = (int)s.charAt(i); if((</div> </li> <li><a href="/article/879.htm" title="一个电话面试后总结" target="_blank">一个电话面试后总结</a> <span class="text-muted">a-john</span> <a class="tag" taget="_blank" href="/search/%E9%9D%A2%E8%AF%95/1.htm">面试</a> <div>今天,接了一个电话面试,对于还是初学者的我来说,紧张了半天。 面试的问题分了层次,对于一类问题,由简到难。自己觉得回答不好的地方作了一下总结:   在谈到集合类的时候,举几个常用的集合类,想都没想,直接说了list,map。   然后对list和map分别举几个类型:   list方面:ArrayList,LinkedList。在谈到他们的区别时,愣住了</div> </li> <li><a href="/article/1006.htm" title="MSSQL中Escape转义的使用" target="_blank">MSSQL中Escape转义的使用</a> <span class="text-muted">aijuans</span> <a class="tag" taget="_blank" href="/search/MSSQL/1.htm">MSSQL</a> <div>IF OBJECT_ID('tempdb..#ABC') is not null drop table tempdb..#ABC create table #ABC ( PATHNAME NVARCHAR(50) ) insert into #ABC SELECT N'/ABCDEFGHI' UNION ALL SELECT N'/ABCDGAFGASASSDFA' UNION ALL</div> </li> <li><a href="/article/1133.htm" title="一个简单的存储过程" target="_blank">一个简单的存储过程</a> <span class="text-muted">asialee</span> <a class="tag" taget="_blank" href="/search/mysql/1.htm">mysql</a><a class="tag" taget="_blank" href="/search/%E5%AD%98%E5%82%A8%E8%BF%87%E7%A8%8B/1.htm">存储过程</a><a class="tag" taget="_blank" href="/search/%E6%9E%84%E9%80%A0%E6%95%B0%E6%8D%AE/1.htm">构造数据</a><a class="tag" taget="_blank" href="/search/%E6%89%B9%E9%87%8F%E6%8F%92%E5%85%A5/1.htm">批量插入</a> <div>           今天要批量的生成一批测试数据,其中中间有部分数据是变化的,本来想写个程序来生成的,后来想到存储过程就可以搞定,所以随手写了一个,记录在此:            DELIMITER $$ DROP PROCEDURE IF EXISTS inse</div> </li> <li><a href="/article/1260.htm" title="annot convert from HomeFragment_1 to Fragment" target="_blank">annot convert from HomeFragment_1 to Fragment</a> <span class="text-muted">百合不是茶</span> <a class="tag" taget="_blank" href="/search/android/1.htm">android</a><a class="tag" taget="_blank" href="/search/%E5%AF%BC%E5%8C%85%E9%94%99%E8%AF%AF/1.htm">导包错误</a> <div>创建了几个类继承Fragment, 需要将创建的类存储在ArrayList<Fragment>中; 出现不能将new 出来的对象放到队列中,原因很简单;     创建类时引入包是:import android.app.Fragment;      创建队列和对象时使用的包是:import android.support.v4.ap</div> </li> <li><a href="/article/1387.htm" title="Weblogic10两种修改端口的方法" target="_blank">Weblogic10两种修改端口的方法</a> <span class="text-muted">bijian1013</span> <a class="tag" taget="_blank" href="/search/weblogic/1.htm">weblogic</a><a class="tag" taget="_blank" href="/search/%E7%AB%AF%E5%8F%A3%E5%8F%B7/1.htm">端口号</a><a class="tag" taget="_blank" href="/search/%E9%85%8D%E7%BD%AE%E7%AE%A1%E7%90%86/1.htm">配置管理</a><a class="tag" taget="_blank" href="/search/config.xml/1.htm">config.xml</a> <div>一.进入控制台进行修改    1.进入控制台:  http://127.0.0.1:7001/console     2.展开左边树菜单         域结构->环境->服务器-->点击AdminServer(管理) &</div> </li> <li><a href="/article/1514.htm" title="mysql 操作指令" target="_blank">mysql 操作指令</a> <span class="text-muted">征客丶</span> <a class="tag" taget="_blank" href="/search/mysql/1.htm">mysql</a> <div>一、连接mysql 进入 mysql 的安装目录; $ bin/mysql -p [host IP 如果是登录本地的mysql 可以不写 -p 直接 -u] -u [userName] -p 输入密码,回车,接连; 二、权限操作[如果你很了解mysql数据库后,你可以直接去修改系统表,然后用 mysql> flush privileges; 指令让权限生效] 1、赋权 mys</div> </li> <li><a href="/article/1641.htm" title="【Hive一】Hive入门" target="_blank">【Hive一】Hive入门</a> <span class="text-muted">bit1129</span> <a class="tag" taget="_blank" href="/search/hive/1.htm">hive</a> <div>Hive安装与配置 Hive的运行需要依赖于Hadoop,因此需要首先安装Hadoop2.5.2,并且Hive的启动前需要首先启动Hadoop。   Hive安装和配置的步骤   1. 从如下地址下载Hive0.14.0   http://mirror.bit.edu.cn/apache/hive/    2.解压hive,在系统变</div> </li> <li><a href="/article/1768.htm" title="ajax 三种提交请求的方法" target="_blank">ajax 三种提交请求的方法</a> <span class="text-muted">BlueSkator</span> <a class="tag" taget="_blank" href="/search/Ajax/1.htm">Ajax</a><a class="tag" taget="_blank" href="/search/jqery/1.htm">jqery</a> <div>1、ajax 提交请求 $.ajax({ type:"post", url : "${ctx}/front/Hotel/getAllHotelByAjax.do", dataType : "json", success : function(result) { try { for(v</div> </li> <li><a href="/article/1895.htm" title="mongodb开发环境下的搭建入门" target="_blank">mongodb开发环境下的搭建入门</a> <span class="text-muted">braveCS</span> <a class="tag" taget="_blank" href="/search/%E8%BF%90%E7%BB%B4/1.htm">运维</a> <div>  linux下安装mongodb 1)官网下载mongodb-linux-x86_64-rhel62-3.0.4.gz 2)linux 解压  gzip -d mongodb-linux-x86_64-rhel62-3.0.4.gz; mv mongodb-linux-x86_64-rhel62-3.0.4 mongodb-linux-x86_64-rhel62-</div> </li> <li><a href="/article/2022.htm" title="编程之美-最短摘要的生成" target="_blank">编程之美-最短摘要的生成</a> <span class="text-muted">bylijinnan</span> <a class="tag" taget="_blank" href="/search/java/1.htm">java</a><a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/1.htm">数据结构</a><a class="tag" taget="_blank" href="/search/%E7%AE%97%E6%B3%95/1.htm">算法</a><a class="tag" taget="_blank" href="/search/%E7%BC%96%E7%A8%8B%E4%B9%8B%E7%BE%8E/1.htm">编程之美</a> <div> import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; public class ShortestAbstract { /** * 编程之美 最短摘要的生成 * 扫描过程始终保持一个[pBegin,pEnd]的range,初始化确保[pBegin,pEnd]的ran</div> </li> <li><a href="/article/2149.htm" title="json数据解析及typeof" target="_blank">json数据解析及typeof</a> <span class="text-muted">chengxuyuancsdn</span> <a class="tag" taget="_blank" href="/search/js/1.htm">js</a><a class="tag" taget="_blank" href="/search/typeof/1.htm">typeof</a><a class="tag" taget="_blank" href="/search/json%E8%A7%A3%E6%9E%90/1.htm">json解析</a> <div> // json格式 var people='{"authors": [{"firstName": "AAA","lastName": "BBB"},' +' {"firstName": "CCC&</div> </li> <li><a href="/article/2276.htm" title="流程系统设计的层次和目标" target="_blank">流程系统设计的层次和目标</a> <span class="text-muted">comsci</span> <a class="tag" taget="_blank" href="/search/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/1.htm">设计模式</a><a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/1.htm">数据结构</a><a class="tag" taget="_blank" href="/search/sql/1.htm">sql</a><a class="tag" taget="_blank" href="/search/%E6%A1%86%E6%9E%B6/1.htm">框架</a><a class="tag" taget="_blank" href="/search/%E8%84%9A%E6%9C%AC/1.htm">脚本</a> <div>                               流程系统设计的层次和目标  </div> </li> <li><a href="/article/2403.htm" title="RMAN List和report 命令" target="_blank">RMAN List和report 命令</a> <span class="text-muted">daizj</span> <a class="tag" taget="_blank" href="/search/oracle/1.htm">oracle</a><a class="tag" taget="_blank" href="/search/list/1.htm">list</a><a class="tag" taget="_blank" href="/search/report/1.htm">report</a><a class="tag" taget="_blank" href="/search/rman/1.htm">rman</a> <div>LIST 命令 使用RMAN LIST 命令显示有关资料档案库中记录的备份集、代理副本和映像副本的 信息。使用此命令可列出: • RMAN 资料档案库中状态不是AVAILABLE 的备份和副本 • 可用的且可以用于还原操作的数据文件备份和副本 • 备份集和副本,其中包含指定数据文件列表或指定表空间的备份 • 包含指定名称或范围的所有归档日志备份的备份集和副本 • 由标记、完成时间、可</div> </li> <li><a href="/article/2530.htm" title="二叉树:红黑树" target="_blank">二叉树:红黑树</a> <span class="text-muted">dieslrae</span> <a class="tag" taget="_blank" href="/search/%E4%BA%8C%E5%8F%89%E6%A0%91/1.htm">二叉树</a> <div>    红黑树是一种自平衡的二叉树,它的查找,插入,删除操作时间复杂度皆为O(logN),不会出现普通二叉搜索树在最差情况时时间复杂度会变为O(N)的问题.     红黑树必须遵循红黑规则,规则如下     1、每个节点不是红就是黑。     2、根总是黑的  &</div> </li> <li><a href="/article/2657.htm" title="C语言homework3,7个小题目的代码" target="_blank">C语言homework3,7个小题目的代码</a> <span class="text-muted">dcj3sjt126com</span> <a class="tag" taget="_blank" href="/search/c/1.htm">c</a> <div>1、打印100以内的所有奇数。 # include <stdio.h> int main(void) { int i; for (i=1; i<=100; i++) { if (i%2 != 0) printf("%d ", i); } return 0; }  2、从键盘上输入10个整数,</div> </li> <li><a href="/article/2784.htm" title="自定义按钮, 图片在上, 文字在下, 居中显示" target="_blank">自定义按钮, 图片在上, 文字在下, 居中显示</a> <span class="text-muted">dcj3sjt126com</span> <a class="tag" taget="_blank" href="/search/%E8%87%AA%E5%AE%9A%E4%B9%89/1.htm">自定义</a> <div>#import <UIKit/UIKit.h> @interface MyButton : UIButton -(void)setFrame:(CGRect)frame ImageName:(NSString*)imageName Target:(id)target Action:(SEL)action Title:(NSString*)title Font:(CGFloa</div> </li> <li><a href="/article/2911.htm" title="MySQL查询语句练习题,测试足够用了" target="_blank">MySQL查询语句练习题,测试足够用了</a> <span class="text-muted">flyvszhb</span> <a class="tag" taget="_blank" href="/search/sql/1.htm">sql</a><a class="tag" taget="_blank" href="/search/mysql/1.htm">mysql</a> <div>http://blog.sina.com.cn/s/blog_767d65530101861c.html 1.创建student和score表 CREATE  TABLE  student ( id  INT(10)  NOT NULL  UNIQUE  PRIMARY KEY  , name  VARCHAR</div> </li> <li><a href="/article/3038.htm" title="转:MyBatis Generator 详解" target="_blank">转:MyBatis Generator 详解</a> <span class="text-muted">happyqing</span> <a class="tag" taget="_blank" href="/search/mybatis/1.htm">mybatis</a> <div>  MyBatis Generator 详解 http://blog.csdn.net/isea533/article/details/42102297   MyBatis Generator详解 http://git.oschina.net/free/Mybatis_Utils/blob/master/MybatisGeneator/MybatisGeneator.</div> </li> <li><a href="/article/3165.htm" title="让程序员少走弯路的14个忠告" target="_blank">让程序员少走弯路的14个忠告</a> <span class="text-muted">jingjing0907</span> <a class="tag" taget="_blank" href="/search/%E5%B7%A5%E4%BD%9C/1.htm">工作</a><a class="tag" taget="_blank" href="/search/%E8%AE%A1%E5%88%92/1.htm">计划</a><a class="tag" taget="_blank" href="/search/%E5%AD%A6%E4%B9%A0/1.htm">学习</a> <div>  无论是谁,在刚进入某个领域之时,有再大的雄心壮志也敌不过眼前的迷茫:不知道应该怎么做,不知道应该做什么。下面是一名软件开发人员所学到的经验,希望能对大家有所帮助   1.不要害怕在工作中学习。 只要有电脑,就可以通过电子阅读器阅读报纸和大多数书籍。如果你只是做好自己的本职工作以及分配的任务,那是学不到很多东西的。如果你盲目地要求更多的工作,也是不可能提升自己的。放</div> </li> <li><a href="/article/3292.htm" title="nginx和NetScaler区别" target="_blank">nginx和NetScaler区别</a> <span class="text-muted">流浪鱼</span> <a class="tag" taget="_blank" href="/search/nginx/1.htm">nginx</a> <div>NetScaler是一个完整的包含操作系统和应用交付功能的产品,Nginx并不包含操作系统,在处理连接方面,需要依赖于操作系统,所以在并发连接数方面和防DoS攻击方面,Nginx不具备优势。 2.易用性方面差别也比较大。Nginx对管理员的水平要求比较高,参数比较多,不确定性给运营带来隐患。在NetScaler常见的配置如健康检查,HA等,在Nginx上的配置的实现相对复杂。 3.策略灵活度方</div> </li> <li><a href="/article/3419.htm" title="第11章 动画效果(下)" target="_blank">第11章 动画效果(下)</a> <span class="text-muted">onestopweb</span> <a class="tag" taget="_blank" href="/search/%E5%8A%A8%E7%94%BB/1.htm">动画</a> <div>index.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/</div> </li> <li><a href="/article/3546.htm" title="FAQ - SAP BW BO roadmap" target="_blank">FAQ - SAP BW BO roadmap</a> <span class="text-muted">blueoxygen</span> <a class="tag" taget="_blank" href="/search/BO/1.htm">BO</a><a class="tag" taget="_blank" href="/search/BW/1.htm">BW</a> <div>http://www.sdn.sap.com/irj/boc/business-objects-for-sap-faq   Besides, I care that how to integrate tightly.   By the way, for BW consultants, please just focus on Query Designer which i</div> </li> <li><a href="/article/3673.htm" title="关于java堆内存溢出的几种情况" target="_blank">关于java堆内存溢出的几种情况</a> <span class="text-muted">tomcat_oracle</span> <a class="tag" taget="_blank" href="/search/java/1.htm">java</a><a class="tag" taget="_blank" href="/search/jvm/1.htm">jvm</a><a class="tag" taget="_blank" href="/search/jdk/1.htm">jdk</a><a class="tag" taget="_blank" href="/search/thread/1.htm">thread</a> <div>【情况一】:    java.lang.OutOfMemoryError: Java heap space:这种是java堆内存不够,一个原因是真不够,另一个原因是程序中有死循环;   如果是java堆内存不够的话,可以通过调整JVM下面的配置来解决:   <jvm-arg>-Xms3062m</jvm-arg>   <jvm-arg>-Xmx</div> </li> <li><a href="/article/3800.htm" title="Manifest.permission_group权限组" target="_blank">Manifest.permission_group权限组</a> <span class="text-muted">阿尔萨斯</span> <a class="tag" taget="_blank" href="/search/Permission/1.htm">Permission</a> <div>结构 继承关系 public static final class Manifest.permission_group extends Object java.lang.Object android. Manifest.permission_group 常量 ACCOUNTS 直接通过统计管理器访问管理的统计 COST_MONEY可以用来让用户花钱但不需要通过与他们直接牵涉的权限 D</div> </li> </ul> </div> </div> </div> <div> <div class="container"> <div class="indexes"> <strong>按字母分类:</strong> <a href="/tags/A/1.htm" target="_blank">A</a><a href="/tags/B/1.htm" target="_blank">B</a><a href="/tags/C/1.htm" target="_blank">C</a><a href="/tags/D/1.htm" target="_blank">D</a><a href="/tags/E/1.htm" target="_blank">E</a><a href="/tags/F/1.htm" target="_blank">F</a><a href="/tags/G/1.htm" target="_blank">G</a><a href="/tags/H/1.htm" target="_blank">H</a><a href="/tags/I/1.htm" target="_blank">I</a><a href="/tags/J/1.htm" target="_blank">J</a><a href="/tags/K/1.htm" target="_blank">K</a><a href="/tags/L/1.htm" target="_blank">L</a><a href="/tags/M/1.htm" target="_blank">M</a><a href="/tags/N/1.htm" target="_blank">N</a><a href="/tags/O/1.htm" target="_blank">O</a><a href="/tags/P/1.htm" target="_blank">P</a><a href="/tags/Q/1.htm" target="_blank">Q</a><a href="/tags/R/1.htm" target="_blank">R</a><a href="/tags/S/1.htm" target="_blank">S</a><a href="/tags/T/1.htm" target="_blank">T</a><a href="/tags/U/1.htm" target="_blank">U</a><a href="/tags/V/1.htm" target="_blank">V</a><a href="/tags/W/1.htm" target="_blank">W</a><a href="/tags/X/1.htm" target="_blank">X</a><a href="/tags/Y/1.htm" target="_blank">Y</a><a href="/tags/Z/1.htm" target="_blank">Z</a><a href="/tags/0/1.htm" target="_blank">其他</a> </div> </div> </div> <footer id="footer" class="mb30 mt30"> <div class="container"> <div class="footBglm"> <a target="_blank" href="/">首页</a> - <a target="_blank" href="/custom/about.htm">关于我们</a> - <a target="_blank" href="/search/Java/1.htm">站内搜索</a> - <a target="_blank" href="/sitemap.txt">Sitemap</a> - <a target="_blank" href="/custom/delete.htm">侵权投诉</a> </div> <div class="copyright">版权所有 IT知识库 CopyRight © 2000-2050 E-COM-NET.COM , All Rights Reserved. <!-- <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">京ICP备09083238号</a><br>--> </div> </div> </footer> <!-- 代码高亮 --> <script type="text/javascript" src="/static/syntaxhighlighter/scripts/shCore.js"></script> <script type="text/javascript" src="/static/syntaxhighlighter/scripts/shLegacy.js"></script> <script type="text/javascript" src="/static/syntaxhighlighter/scripts/shAutoloader.js"></script> <link type="text/css" rel="stylesheet" href="/static/syntaxhighlighter/styles/shCoreDefault.css"/> <script type="text/javascript" src="/static/syntaxhighlighter/src/my_start_1.js"></script> </body> </html><script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script>