View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034493 | mantisbt | api rest | public | 2024-07-01 11:42 | 2024-08-25 04:31 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.5.0 | ||||
Target Version | 2.26.3 | Fixed in Version | 2.26.3 | ||
Summary | 0034493: REST API GET /issues endpoint returns HTML if given filter_id is not found | ||||
Description | The response is an HTTP 200 with an HTML error page. The endpoint should return HTTP 404 instead. GET http://example.com/mantis/api/rest/issues?filter_id=8888 | ||||
Tags | No tags attached. | ||||
related to | 0032249 | closed | vboctor | Get Project Issues returns html if user doesn't have access to project |
related to | 0026195 | closed | cproensa | Error requesting issues using saved filter |
related to | 0022768 | closed | vboctor | Support retrieving issues based on filter or a project |
related to | 0034586 | closed | dregad | REST API GET /filters/{ID} returns empty array when ID does not exist |
MantisBT: master-2.26 96903c1e 2024-08-17 07:01 Details Diff |
Throw ClientException instead of trigger_error() Use of trigger_error() caused the REST API to return an HTTP 200 code with an HTML error page. With the Exception, the endpoint now returns 404 as expected. Fixes 0034493 |
Affected Issues 0034493 |
|
mod - core/filter_api.php | Diff File |