MantisBT: master f2756da0

Author Committer Branch Timestamp Parent
dregad dregad master 2019-08-14 07:19:14 master f1c84e19
Affected Issues  0025996: Missing tag name in error message when creating issue via REST API
Changeset

Add missing tag name in error message

When creating a new issue via REST API with a non-existing tag name,
the error message generated by mci_tag_set_for_issue() did not include
the tag's name.

This was caused by reusing the $t_tag variable to store the return value
of tag_get_by_name(), so the original data is no longer available when
the exception is thrown.

Same problem in IssueAddCommand::validate() if the user attempting to
create the issue does not have the required privileges to create tags,
this time due to usage of an uninitialized variable.

Fixes 0025996

mod - api/soap/mc_tag_api.php Diff File
mod - core/commands/IssueAddCommand.php Diff File