Changesets: MantisBT

master cb2343b4

2019-08-24 18:13

dregad


Details Diff
Add missing PHPUnit tests to Travis CI

This also fixes and improves RestIssueAddTest, which were not correct
but nobody noticed since they were never executed.

Merge PR https://github.com/mantisbt/mantisbt/pull/1540
mod - core/api_token_api.php Diff File
mod - core/tag_api.php Diff File
mod - scripts/travis_before_script.sh Diff File
mod - tests/AllTests.php Diff File
mod - tests/rest/RestBase.php Diff File
mod - tests/rest/RestIssueAddTest.php Diff File
mod - tests/soap/AllTests.php Diff File
mod - tests/soap/IssueHistoryTest.php Diff File
mod - tests/soap/VersionTest.php Diff File
add - tests/travis_create_api_token.php Diff File

master 6b774eac

2019-08-24 17:58

dregad


Details Diff
IssueAddCommand fixes

This addresses several issues with the Command and the REST API:

- 0025996 - Missing tag name in error message when creating issue via
REST API
- 0025997 - Invalid JSON response when creating issue with tag by name
via REST API
- 0026076 - Adding issue via REST API should fail if requested tags can't
be attached
- 0026077 - create tag specified by name if they do not exist

Additionally, this also fixes 0024441.

Merge PR https://github.com/mantisbt/mantisbt/pull/1542
Affected Issues
0024441
mod - api/soap/mc_tag_api.php Diff File
mod - bug_report.php Diff File
mod - core/commands/IssueAddCommand.php Diff File

master 1e5e25a8

2019-08-24 17:35

dregad


Details Diff
TODO: replace mci_tag_set_for_issue() with TagAttachCommand

As suggested in issue 0024441
Affected Issues
0024441
mod - core/commands/IssueAddCommand.php Diff File

master 38a067f2

2019-08-24 17:32

dregad


Details Diff
Print 'separate by' on tag attach form

Issue 0024441
Affected Issues
0024441
mod - core/print_api.php Diff File

master 399f65c3

2019-08-24 16:32

dregad


Details Diff
New test to create issue with Existing tag

The tag should be attached to the issue.
mod - tests/rest/RestIssueAddTest.php Diff File

master 819a912c

2019-08-24 16:30

dregad


Details Diff
New test to create issue with non-existing tag

The tag should be created together with the issue.
mod - tests/rest/RestIssueAddTest.php Diff File

master fa726228

2019-08-24 15:28

dregad


Details Diff
Improve tag error messages by adding tag name

Fixes 0026075
Affected Issues
0026075
mod - core/commands/IssueAddCommand.php Diff File
mod - core/tag_api.php Diff File
mod - lang/strings_english.txt Diff File

master c6727a81

2019-08-24 13:59

dregad


Details Diff
Throw error when attempting to create invalid tag

Fixes 0026074
Affected Issues
0026074
mod - tag_create.php Diff File

master 380fc710

2019-08-23 02:08

dregad


Details Diff
Break long lines
mod - api/soap/mc_api.php Diff File
mod - core/bug_api.php Diff File

master 7ab90f60

2019-08-23 02:07

dregad


Details Diff
PHP 7.4: remove deprecated usage of implode()

Passing parameters to implode() in reverse order is deprecated

Fixes 0026063
Affected Issues
0026063
mod - api/soap/mc_api.php Diff File
mod - api/soap/mc_file_api.php Diff File
mod - core/error_api.php Diff File
mod - core/file_api.php Diff File
mod - core/filter_api.php Diff File
mod - core/install_helper_functions_api.php Diff File
mod - core/layout_api.php Diff File
mod - core/news_api.php Diff File
mod - core/print_api.php Diff File
mod - manage_plugin_page.php Diff File

master 9f9852ca

2019-08-23 01:34

dregad


Details Diff
Replace join() by implode()
mod - core/category_api.php Diff File
mod - core/graphviz_api.php Diff File
mod - core/helper_api.php Diff File
mod - core/layout_api.php Diff File
mod - core/news_api.php Diff File
mod - core/print_api.php Diff File
mod - core/string_api.php Diff File

master ea33699b

2019-08-23 00:40

dregad


Details Diff
EVENT_BUGNOTE_DATA: document bug_id param and return value

Follow-up on 7ad44858570d598e9c64ca03817e3fa89d46d019.

Fixes 0025914
Affected Issues
0025914
mod - docbook/Developers_Guide/en-US/Events_Reference_Bug.xml Diff File

master f1c84e19

2019-08-22 11:42

atrol

Committer: dregad


Details Diff
Use plugin_lang_get() to get description of Gravatar plugin

Fixes 0026066
Affected Issues
0026066
mod - plugins/Gravatar/Gravatar.php Diff File

master 1ad7975a

2019-08-20 21:45

dependabot-preview[bot]

Committer: vboctor


Details Diff
Bump slim/slim from 3.12.1 to 3.12.2

Bumps [slim/slim](https://github.com/slimphp/Slim) from 3.12.1 to 3.12.2.
- [Release notes](https://github.com/slimphp/Slim/releases)
- [Changelog](https://github.com/slimphp/Slim/blob/4.x/CHANGELOG.md)
- [Commits](https://github.com/slimphp/Slim/compare/3.12.1...3.12.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Affected Issues
0026086
mod - composer.lock Diff File

dependabot/composer/slim/slim-3.12.2 34c4b3a4

2019-08-20 21:45

dependabot-preview[bot]

Committer: GitHub


Details Diff
Bump slim/slim from 3.12.1 to 3.12.2

Bumps [slim/slim](https://github.com/slimphp/Slim) from 3.12.1 to 3.12.2.
- [Release notes](https://github.com/slimphp/Slim/releases)
- [Changelog](https://github.com/slimphp/Slim/blob/4.x/CHANGELOG.md)
- [Commits](https://github.com/slimphp/Slim/compare/3.12.1...3.12.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
mod - composer.lock Diff File

master 1c376741

2019-08-20 17:26

cproensa

Committer: vboctor


Details Diff
Fix filtering for "none" in multivalued custom fields

- Allows to use the value "none" in custom fields of type multiselection list
- Fix the filter query for searching "none" in mutivalued custom fields
that can be empty. Those are: checkbox and multiselection list.

Fixes: 0021712, 0026030
Affected Issues
0021712, 0026030
mod - core/classes/BugFilterQuery.class.php Diff File
mod - core/filter_form_api.php Diff File

master 41222b36

2019-08-20 08:06

dregad


Details Diff
PHPDoc: more accurate return type
mod - core/tag_api.php Diff File

master ef00dc18

2019-08-20 02:31

dregad


Details Diff
Remove special handling of '-1'

As discussed with @vboctor on Gitter [1], the Command should create the
tag if specified by name and it does not exist (and user is allowed to
do so).

IssueAddCommand now processes each provided tag as follows:

- if *ID* (or ID + name) is provided, check for existing tag and attach
it to the issue, return 404 (ERROR_TAG_NOT_FOUND) if not found.
- if *name* is provided, check its validity (tag_name_is_valid()) and
return 400 bad request (ERROR_TAG_NAME_INVALID) if not.
- if neither *ID* nor *name* are given, return 400 bad request
(ERROR_TAG_NAME_INVALID).
- if the provided name does not exist, create the tag; return 404
(ERROR_TAG_NOT_FOUND) if user is not allowed to.

If all tags pass the above checks, create the issue and attach the tags
to it.

Fixes 0026077

This commits includes an adjustment to bug_report.php: the payload for
the issue's tags no longer includes the id, as negative values would
now cause the Command to throw an exception.

[1]: https://gitter.im/mantisbt?at=5d5bad020eff7d2dfee2ce73
Affected Issues
0026077
mod - bug_report.php Diff File
mod - core/commands/IssueAddCommand.php Diff File

master 8bdbfa7d

2019-08-19 22:11

vboctor


Details Diff
Add Postman collection and environment

Fixes 0025998
Affected Issues
0025998
add - api/rest/api.postman_collection.json Diff File
add - api/rest/env.postman_environment.json Diff File

master 0dff1150

2019-08-19 18:21

syncguru


Details Diff
Improve UX & consistency for inline action icons
mod - bug_monitor_list_view_inc.php Diff File
mod - core/collapse_api.php Diff File
mod - core/prepare_api.php Diff File
mod - core/print_api.php Diff File
mod - core/tag_api.php Diff File
mod - css/ace-mantis.css Diff File

master-2.21 b39d8720

2019-08-19 17:53

vboctor


Details Diff
Update release to 2.21.2
mod - core/constant_inc.php Diff File
mod - docbook/Admin_Guide/en-US/Revision_History.xml Diff File
mod - docbook/Developers_Guide/en-US/Revision_History.xml Diff File

master b3a10d8b

2019-08-19 08:00

dregad


Details Diff
New method IssueAddCommand::get_tag_id()

The new method throws ClientException if the given Tag element is
invalid, thus preventing issue creation via REST API in this case.

Previously the issue would be created even though the API call was
failing with a 404 error caused by the invalid tag.

Fixes 0026076
Affected Issues
0026076
mod - core/commands/IssueAddCommand.php Diff File

master 8364f6e0

2019-08-19 07:18

dregad


Details Diff
RestBase::post() fix PHPDoc type for $p_payload

In addition to string (json), it can also be array or object.
mod - tests/rest/RestBase.php Diff File

master f34df1df

2019-08-19 07:17

dregad


Details Diff
New Invalid Tags test (with data provider)

The following tests have been removed, as they are now covered by the
new testCreateIssueWithTagInvalid:
- testCreateIssueWithTagNameNotFound
- testCreateIssueWithTagIdNotFound
mod - tests/rest/RestIssueAddTest.php Diff File

master 83bc60fb

2019-08-19 03:40

dregad


Details Diff
PHPDoc add missing @throws tags
mod - core/commands/IssueAddCommand.php Diff File
 First  Prev  1 2 3 ... 70 ... 123 124 125 126 127 128 129 ... 140 ... 210 ... 280 ... 350 ... 420 ... 490 ... 560 ... 630 ... 700 ... 745 746 747  Next  Last