MantisBT: master-2.26 96903c1e

Author Committer Branch Timestamp Parent
dregad dregad master-2.26 2024-08-17 07:01 master-2.26 eb44bcb0
Affected Issues  0034493: REST API GET /issues endpoint returns HTML if given filter_id is not found
Changeset

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

mod - core/filter_api.php Diff File