Changesets: MantisBT

master-2.8 732ebc16

2017-11-30 07:58

vboctor


Details Diff
Fix SOAP API standard filters

Fixes 0023561
Affected Issues
0023561
mod - api/soap/mc_project_api.php Diff File

master dc4031fe

2017-11-29 21:44

translatewiki.net


Details Diff
Localisation updates from https://translatewiki.net.
mod - lang/strings_belarusian_tarask.txt Diff File
mod - lang/strings_polish.txt Diff File

master 6633280c

2017-11-28 16:22

vboctor


Details Diff
Support standard filters in REST API

The standard filters supported are:

- `assigned` - issues assigned to me.
- `unassigned` - unassigned issues.
- `reported` - issues reported by me.
- `monitored` - issues monitored by me.

Fixes 0022790
Affected Issues
0022790
mod - api/rest/restcore/issues_rest.php Diff File
mod - api/soap/mc_filter_api.php Diff File
mod - core/constant_inc.php Diff File
mod - core/filter_api.php Diff File

master 751b3d35

2017-11-27 18:22

vboctor


Details Diff
Fix the call to `custom_field_set_value()`

Fixes 0023594
Affected Issues
0023594
mod - bug_report.php Diff File

master 7e7c6501

2017-11-26 21:05

translatewiki.net


Details Diff
Localisation updates from https://translatewiki.net.
mod - lang/strings_belarusian_tarask.txt Diff File
mod - lang/strings_chinese_simplified.txt Diff File
mod - plugins/MantisCoreFormatting/lang/strings_french.txt Diff File

master 8c573f63

2017-11-26 04:52

atrol


Details Diff
Minor performance and code enhancements of config functions

Fixes 0023969
Affected Issues
0023969
mod - core/config_api.php Diff File

master 3b3bcb1b

2017-11-24 14:24

vboctor


Details Diff
Use `If-Match` instead of `If-None-Match` for update/delete
mod - api/rest/restcore/issues_rest.php Diff File
mod - core/constant_inc.php Diff File

master 27102c48

2017-11-22 20:42

translatewiki.net


Details Diff
Localisation updates from https://translatewiki.net.
mod - lang/strings_belarusian_tarask.txt Diff File
mod - lang/strings_german.txt Diff File

master 8fbf5e59

2017-11-21 21:59

atrol

Committer: vboctor


Details Diff
Correct access checks for readonly issues

Fixes 0023657
Affected Issues
0023657
mod - core/bug_api.php Diff File

master 54783df6

2017-11-20 08:55

atrol


Details Diff
Fix Manage Plugins UI for protected plugins

Fixes 0023658
Affected Issues
0023658
mod - manage_plugin_page.php Diff File

master 4e764084

2017-11-19 22:21

translatewiki.net


Details Diff
Localisation updates from https://translatewiki.net.
mod - lang/strings_belarusian_tarask.txt Diff File
mod - lang/strings_chinese_traditional.txt Diff File
mod - lang/strings_czech.txt Diff File
mod - lang/strings_french.txt Diff File
mod - lang/strings_urdu.txt Diff File
mod - plugins/MantisCoreFormatting/lang/strings_czech.txt Diff File
mod - plugins/MantisGraph/lang/strings_chinese_simplified.txt Diff File
mod - plugins/MantisGraph/lang/strings_czech.txt Diff File

master 4bd8891f

2017-11-18 22:58

vboctor


Details Diff
Remove `bug_hash` which is no longer used
mod - core/bug_api.php Diff File

master 7aa72aa6

2017-11-18 22:57

vboctor


Details Diff
Update hash calculation when updating issues

- Base etag calculation of hashing of output for get issue.

Fixes 0023653
Affected Issues
0023653
mod - api/rest/restcore/issues_rest.php Diff File

master c3729274

2017-11-18 22:34

vboctor


Details Diff
Update hash calculation for deletion of issues

Base calculation of hash for etag on output of get issues and compare with provided `If-None-Match`.

Fixes 0023650
Affected Issues
0023650
mod - api/rest/restcore/issues_rest.php Diff File

master 731be88f

2017-11-18 22:08

vboctor


Details Diff
Hash get issue output for etag

- Base the etag hash calculation on hash of the result json.
- Apply etag to get single issue or paginated output of multiple issues.

Fixes 0023648
Affected Issues
0023648
mod - api/rest/restcore/issues_rest.php Diff File
mod - api/soap/mc_api.php Diff File
mod - api/soap/mc_issue_api.php Diff File

master 46bbf31e

2017-11-17 22:14

vboctor


Details Diff
Remove unnecessary calculation of hash

Fixes 0023653
Affected Issues
0023653
mod - api/rest/restcore/issues_rest.php Diff File

master 00dec0b1

2017-11-17 21:55

vboctor


Details Diff
Validate `handler` only when being updated

Fixes 0023654
Affected Issues
0023654
mod - api/soap/mc_issue_api.php Diff File

master d7ec37d2

2017-11-17 21:52

vboctor


Details Diff
Return etag when getting issue that doesn’t exist

Fixes 0023648
Affected Issues
0023648
mod - api/rest/restcore/issues_rest.php Diff File

master cb2a453f

2017-11-17 21:52

vboctor


Details Diff
Leverage `If-None-Match` when updating issues

If `If-None-Match` is specified and it doesn’t match latest hash, then fail with `412 Precondition failed`.

Always return the updated `ETag` header.

Fixes 0023653
Affected Issues
0023653
mod - api/rest/restcore/issues_rest.php Diff File
mod - core/bug_api.php Diff File

master 4aec7f9a

2017-11-17 21:17

vboctor


Details Diff
Leverage If-None-Match when deleting issues

If client attempts to delete an issue that doesn’t exist or that was modified since issue was retrieved,
then fail with error `412 Precondition failed`.

Fixes 0023650
Affected Issues
0023650
mod - api/rest/restcore/issues_rest.php Diff File
mod - core/constant_inc.php Diff File

master df983732

2017-11-17 20:53

vboctor


Details Diff
Use `ETag` and `If-None-Match` when getting issues

When getting an issue, return an `ETag`, even if the issue doesn’t exist.

When request contains `If-None-Match` and hash matches, then return `304 Not Modified`.
The 304 response will be returned whether issue exists or not.

The hash depends on:
- a hasing version
- user id
- issue id
- issue last updated

Fixes 0023648
Affected Issues
0023648
mod - api/rest/restcore/issues_rest.php Diff File
mod - core/bug_api.php Diff File
mod - core/constant_inc.php Diff File

master 2fd81a3e

2017-11-17 03:46

atrol


Details Diff
Fix preview of non UTF-8 text attachments

Functionality of function htmlspecialchars depends on PHP version [1].

The change ensures that
- UTF-8 is used in any case
- Single non UTF-8 characters are replaced in the string
instead of replacing the whole string by an empty string

[1] www.php.net/manual/en/function.htmlspecialchars.php

Fixes 0023645
Affected Issues
0023645
mod - core/print_api.php Diff File

master c5868132

2017-11-16 20:35

vboctor


Details Diff
Command Pattern

Use Command Pattern to achieve the following:

- Re-using of business logic across Web UI, REST API, and SOAP API.
- Having commands that execute a specific intent e.g. assign, close, monitor rather than just update.
- Enable core code to hook into such commands to handle side effects like email messages.
- Enable plugins code to hook in such commands to modify changes, block the change, post to slack, etc.
- Use exceptions that can be surfaced to APIs or Web UI.
- Enable having a clean model using ADODB or some higher level ORM library that is used by commands.
add - core/commands/Command.php Diff File
add - core/commands/CommandException.php Diff File
add - core/commands/CommandFactory.php Diff File
add - core/commands/Context.php Diff File
add - core/commands/MonitorCommand.php Diff File

master 03cb5da8

2017-11-16 00:02

translatewiki.net


Details Diff
Localisation updates from https://translatewiki.net.
mod - lang/strings_belarusian_tarask.txt Diff File
mod - lang/strings_breton.txt Diff File

master-1.3.x d4a28e53

2017-11-15 12:08

atrol

Committer: dregad


Details Diff
Remove usage of deprecated each() function

each() has been deprecated as of PHP 7.2.0 [1]

[1] http://php.net/manual/en/function.each.php

Fixes 0023640
Backported from 053dd6becdeb29599fdf5fa1b48f82a6664a95f1

Conflicts:
my_view_page.php
Affected Issues
0023640
mod - admin/check/check_php_inc.php Diff File
mod - core/config_api.php Diff File
mod - core/html_api.php Diff File
mod - core/print_api.php Diff File
mod - my_view_page.php Diff File
 First  Prev  1 2 3 ... 70 ... 140 ... 149 150 151 152 153 154 155 ... 210 ... 280 ... 350 ... 420 ... 490 ... 560 ... 630 ... 700 ... 729 730 731  Next  Last