Changesets: MantisBT

master 0e2c6b46

2013-01-17 07:16

dregad


Details Diff
Make log_event() calls print to stdout when running from CLI

This simple modification to the logging_api allows command-line scripts
such as send_emails.php to easily provide detailed information about
their operations, provided that the appropriate log_level is set in
config_inc.php.

This output can then be redirected to log files, etc.

Fixes 0015382
Affected Issues
0015382
mod - core/logging_api.php Diff File

master-1.2.x 42a6aa36

2013-01-17 06:57

dregad


Details Diff
Improve logging when sending e-mails

The email_api email_send() and email_send_all() functions have been
modified to provide a better log trace in case of errors.

A log entry is now printed in the following situations
- a message as already been sent
- the server is not responding and the batch sending is aborted
- whenever a phpMailer exception is thrown in email_send()

In addition, the log message gets the detailed error from phpMailer's
ErrorInfo property instead of the exception's getMessage(), as in some
cases (particularly when using PHPMAILER_METHOD_SMTP), the latter only
contains partial information instead of the full error text.

$t_emails_recipients_failed variable initialization has been removed as
it was not used in the code.

Fixes 0015382
Affected Issues
0015382
mod - core/email_api.php Diff File

master ad5f2f7f

2013-01-17 06:57

dregad


Details Diff
Improve logging when sending e-mails

The email_api email_send() and email_send_all() functions have been
modified to provide a better log trace in case of errors.

A log entry is now printed in the following situations
- a message as already been sent
- the server is not responding and the batch sending is aborted
- whenever a phpMailer exception is thrown in email_send()

In addition, the log message gets the detailed error from phpMailer's
ErrorInfo property instead of the exception's getMessage(), as in some
cases (particularly when using PHPMAILER_METHOD_SMTP), the latter only
contains partial information instead of the full error text.

$t_emails_recipients_failed variable initialization has been removed as
it was not used in the code.

Fixes 0015382
Affected Issues
0015382
mod - core/email_api.php Diff File

master-1.2.x e86be8dc

2013-01-13 10:02

siebrand


Details Diff
Localisation updates from http://translatewiki.net.
mod - lang/strings_german.txt Diff File
mod - lang/strings_korean.txt Diff File
mod - lang/strings_portuguese_brazil.txt Diff File
mod - lang/strings_serbian.txt Diff File
mod - lang/strings_slovene.txt Diff File
add - plugins/MantisCoreFormatting/lang/strings_korean.txt Diff File
add - plugins/MantisGraph/lang/strings_korean.txt Diff File
add - plugins/XmlImportExport/lang/strings_korean.txt Diff File
mod - plugins/XmlImportExport/lang/strings_portuguese_brazil.txt Diff File

master a83d43fe

2013-01-13 08:35

rombert


Details Diff
bug_report.php: Use NO_USER instead of magic constant
mod - bug_report.php Diff File

master-1.2.x a07f75ee

2013-01-13 08:35

rombert


Details Diff
bug_report.php: Use NO_USER instead of magic constant
mod - bug_report.php Diff File

master 150e9f79

2013-01-12 16:06

rombert


Details Diff
Fix 0015370: When a bug is resolved on report, default the handler to the
current user
Affected Issues
0015370
mod - bug_report.php Diff File

master-1.2.x e20564d6

2013-01-12 16:03

rombert


Details Diff
Fix 0015370: When a bug is resolved on report, default the handler to the
current user
Affected Issues
0015370
mod - bug_report.php Diff File

master-1.2.x 1e70c3cb

2013-01-11 04:56

jeckyll

Committer: rombert


Details Diff
fix 0015356 [SOAP Api] Check errors raised by mci_issue_set_custom_field Affected Issues
0015356
mod - api/soap/mc_issue_api.php Diff File

master 4d907078

2013-01-11 04:56

jeckyll

Committer: rombert


Details Diff
fix 0015356 [SOAP Api] Check errors raised by mci_issue_set_custom_field Affected Issues
0015356
mod - api/soap/mc_issue_api.php Diff File

master-1.2.x d000c4d7

2013-01-09 08:37

dregad


Details Diff
admin_config_set: Revised process_complex_value() function

The new code features an improved regex, which deals more efficiently
with the parsing of multi-dimensional and associative arrays.

Regex are defined as static variables for better performance with
repeated and recursive calls

Known issue: an invalid definition like 'array(array(1,2)=>array(3,4))'
is not properly parsed.

Fixes 0013298
Affected Issues
0013298
mod - adm_config_set.php Diff File

master 0719f32d

2013-01-09 08:37

dregad


Details Diff
admin_config_set: Revised process_complex_value() function

The new code features an improved regex, which deals more efficiently
with the parsing of multi-dimensional and associative arrays.

Regex are defined as static variables for better performance with
repeated and recursive calls

Known issue: an invalid definition like 'array(array(1,2)=>array(3,4))'
is not properly parsed.

Fixes 0013298
Affected Issues
0013298
mod - adm_config_set.php Diff File

master-1.2.x ca6f6677

2013-01-07 05:19

siebrand


Details Diff
Localisation updates from http://translatewiki.net.
mod - lang/strings_belarusian_tarask.txt Diff File
mod - lang/strings_danish.txt Diff File
mod - lang/strings_dutch.txt Diff File
mod - lang/strings_french.txt Diff File
mod - lang/strings_galician.txt Diff File
mod - lang/strings_german.txt Diff File
mod - lang/strings_hebrew.txt Diff File
mod - lang/strings_italian.txt Diff File
mod - lang/strings_japanese.txt Diff File
mod - lang/strings_korean.txt Diff File
mod - lang/strings_polish.txt Diff File
mod - lang/strings_ripoarisch.txt Diff File
mod - lang/strings_serbian.txt Diff File
mod - lang/strings_serbian_latin.txt Diff File
mod - plugins/MantisCoreFormatting/lang/strings_dutch.txt Diff File
mod - plugins/XmlImportExport/lang/strings_belarusian_tarask.txt Diff File
mod - plugins/XmlImportExport/lang/strings_dutch.txt Diff File

master e70513f0

2013-01-06 10:15

atrol


Details Diff
Remove typos in name of default configuration file
mod - docbook/Admin_Guide/en-US/Installation.xml Diff File

master-1.2.x 8756bb46

2013-01-06 10:14

atrol


Details Diff
Remove typos in name of default configuration file
mod - docbook/administration_guide/en/installation.sgml Diff File

master f39ff7be

2013-01-04 16:57

rombert


Details Diff
filter_api: apply all project_where_clauses first

where_clauses and project_where_clauses must not be mixed, since the
where_params are expected to be held in order - first for the
project_where_clauses and then for the where_clauses.

Fixes 0015320: Date filters broken since 1.2.12
Affected Issues
0015320
mod - core/filter_api.php Diff File

master-1.2.x 1338525b

2013-01-04 16:57

rombert


Details Diff
filter_api: apply all project_where_clauses first

where_clauses and project_where_clauses must not be mixed, since the
where_params are expected to be held in order - first for the
project_where_clauses and then for the where_clauses.

Fixes 0015320: Date filters broken since 1.2.12
Affected Issues
0015320
mod - core/filter_api.php Diff File

master-1.2.x 5b2116d4

2013-01-02 17:09

dregad


Details Diff
Added NetBeans IDE metadata directory to .gitignore
mod - .gitignore Diff File

master aadfbcb6

2013-01-02 17:09

dregad


Details Diff
Added NetBeans IDE metadata directory to .gitignore
mod - .gitignore Diff File

master-1.2.x db0e3d3b

2013-01-02 08:13

dregad


Details Diff
Fix performance issue on adm_config_report.php

In systems with large numbers of config items in mantis_config_table, the
Configuration Report page can take a very long time to load.

This behavior is due to each of the 'Delete' buttons being printed with
its own form, each one having a security token. The performance
bottleneck is actually the serialize/unserialize calls executed while
storing/retrieving the token from the PHP session.

To avoid this problem, the print_button() and form_security_field()
functions have been modified to accept a security token as an optional
parameter. This allows the calling page to generate a single token,
which is shared by all buttons.

Furthermore, print_button() also allows the security token parameter to
be 'OFF', which prevents the function from displaying a security field.
This is useful for buttons not resulting in modifications (i.e. not
requiring CSRF protection).

Fixes 0013680
Affected Issues
0013680
mod - adm_config_report.php Diff File
mod - core/form_api.php Diff File
mod - core/print_api.php Diff File

master 5c3ac412

2013-01-02 08:13

dregad


Details Diff
Fix performance issue on adm_config_report.php

In systems with large numbers of config items in mantis_config_table, the
Configuration Report page can take a very long time to load.

This behavior is due to each of the 'Delete' buttons being printed with
its own form, each one having a security token. The performance
bottleneck is actually the serialize/unserialize calls executed while
storing/retrieving the token from the PHP session.

To avoid this problem, the print_button() and form_security_field()
functions have been modified to accept a security token as an optional
parameter. This allows the calling page to generate a single token,
which is shared by all buttons.

Furthermore, print_button() also allows the security token parameter to
be 'OFF', which prevents the function from displaying a security field.
This is useful for buttons not resulting in modifications (i.e. not
requiring CSRF protection).

Fixes 0013680
Affected Issues
0013680
mod - adm_config_report.php Diff File
mod - core/form_api.php Diff File
mod - core/print_api.php Diff File

master-1.2.x d76a2106

2013-01-02 06:46

dregad


Details Diff
Config report filter: added buttons to clear and reset default filter

This provides the user with a single-click way to

- reset the filter to default settings
(i.e. ALL_USERS, ALL_PROJECTS, [any] config).
- clear the filter to display all configs
(i.e. [any] user, [any] project, [any] config)

Issue 0014559
Affected Issues
0014559
mod - adm_config_report.php Diff File
mod - lang/strings_english.txt Diff File

master-1.2.x 8b426cfc

2013-01-01 18:54

dregad


Details Diff
Config report: preset the edit form to the current filter

The 'Username', 'Project Name' and 'Configuration Option' fields in the
'Set Configuration Option' form are now preset to the corresponding
value from the filter or defaulting to ALL_USERS, ALL_PROJECTS and blank
respectively if the filter is not defined or set to '[any]'.

This allows easier definition of related config, e.g. for a given
project or user.
mod - adm_config_report.php Diff File

master-1.2.x b6f03b73

2013-01-01 18:22

dregad


Details Diff
Config report filter: added handling for invalid values in cookie

In some cases, the cookie could contain values which are no longer
applicable as filter criteria, e.g.
- a project id which has been deleted
- a user id for whom there are no config options
- a config id for which there are no config options

The code now correctly handles these, by making sure that either the
filter criteria is dynamically updated to a valid value (ALL_PROJECTS
for projects), or the filter's selection list effectively includes the
invalid value (user id, config id), so that the displayed filter
reflects the actual data listed in the Database Configuration table.

Fixes the bug reported by atrol in issue 0014559's bugnote 34648
Affected Issues
0014559
mod - adm_config_report.php Diff File

master-1.2.x 65696fbf

2013-01-01 18:19

dregad


Details Diff
Whitespace: remove unnecessary code indentation
mod - adm_config_report.php Diff File
 First  Prev  1 2 3 ... 80 ... 160 ... 240 ... 320 ... 366 367 368 369 370 371 372 ... 400 ... 480 ... 560 ... 640 ... 720 ... 762 763 764  Next  Last