View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0026542 | mantisbt | api rest | public | 2019-12-30 13:11 | 2020-03-15 15:23 |
Reporter | mnewnham | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.22.1 | ||||
Target Version | 2.24.0 | Fixed in Version | 2.24.0 | ||
Summary | 0026542: Passing out of range custom field id causes multiple PHP warnings / incorrect response | ||||
Description | Passing an out of range custom field id through the API causes multiple PHP warnings and an incorrect error response: Rest ErrorCustom field '' not found Apache Log[Mon Dec 30 10:57:00 2019] [error] [client 192.168.10.35] PHP Notice: Undefined index: name in /home/mantisbt/mantisbt-2.22.1/api/soap/mc_custom_field_api.php on line 41 | ||||
Steps To Reproduce | $c = new stdClass; $jsonData = json_encode($c); ---------------------------> PUSH TO API | ||||
Tags | No tags attached. | ||||