View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0025996 | mantisbt | api rest | public | 2019-08-14 07:09 | 2019-08-25 12:36 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.5.0 | ||||
Target Version | 2.22.0 | Fixed in Version | 2.22.0 | ||
Summary | 0025996: Missing tag name in error message when creating issue via REST API | ||||
Description | When creating a new issue via REST API with a non-existing tag name, the error message does not include the tag name, which makes it harder to troubleshoot the problem in the payload. | ||||
Steps To Reproduce |
Yields
| ||||
Additional Information | This problem was also identified by @vboctor in https://github.com/mantisbt/mantisbt/pull/1391#issuecomment-426497674
| ||||
Tags | No tags attached. | ||||
The same problem occurs if the user attempting to create the issue does not have the required privileges to create tags, as the code references an undefined |
|
MantisBT: master f2756da0 2019-08-14 07:19:14 Details Diff |
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 |
Affected Issues 0025996 |
|
mod - api/soap/mc_tag_api.php | Diff File | ||
mod - core/commands/IssueAddCommand.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-08-14 07:09 | dregad | New Issue | |
2019-08-14 07:09 | dregad | Status | new => assigned |
2019-08-14 07:09 | dregad | Assigned To | => dregad |
2019-08-14 08:37 | dregad | Description Updated | View Revisions |
2019-08-14 08:37 | dregad | Additional Information Updated | View Revisions |
2019-08-14 09:00 | dregad | Note Added: 0062567 | |
2019-08-14 09:01 | dregad | Relationship added | related to 0024774 |
2019-08-14 09:02 | dregad | Note Edited: 0062567 | View Revisions |
2019-08-14 09:02 | dregad | Note Edited: 0062567 | View Revisions |
2019-08-14 10:24 | dregad | Note Added: 0062569 | |
2019-08-24 19:29 | dregad | Relationship added | related to 0026075 |
2019-08-24 22:09 | dregad | Changeset attached | => MantisBT master f2756da0 |
2019-08-24 22:09 | dregad | Status | assigned => resolved |
2019-08-24 22:09 | dregad | Resolution | open => fixed |
2019-08-24 22:09 | dregad | Fixed in Version | => 2.22.0 |
2019-08-25 12:36 | vboctor | Status | resolved => closed |