Dependency Graph
View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0025429 | mantisbt | api rest | public | 2019-02-01 11:02 | 2019-03-16 20:20 |
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.11.0 | ||||
| Target Version | 2.20.0 | Fixed in Version | 2.20.0 | ||
| Summary | 0025429: Undefined variable t_show_detailed_errors in API REST | ||||
| Description | When a called API endpoint triggers an unhandled exception, it is caught by the REST API's default handler in | ||||
| Steps To Reproduce | Trigger an exception in an API route callback function. | ||||
| Additional Information | | ||||
| Tags | No tags attached. | ||||
|
This is a regression introduced when fixing issue 0023925 (see PR https://github.com/mantisbt/mantisbt/pull/1280, MantisBT master b2119ce0 ) Proposed fix https://github.com/mantisbt/mantisbt/pull/1455 |
|
|
MantisBT: master b2119ce0 2018-02-05 20:24 Details Diff |
Show PHP exception in REST only if detailed errors is ON |
Affected Issues 0023925, 0025429 |
|
| mod - api/rest/index.php | Diff File | ||
|
MantisBT: master af72555a 2019-02-01 06:03 Details Diff |
Fix 'Undefined variable' PHP notice in API REST Since the Slim Container's 'displayErrorDetails' setting is set to true according to $t_show_detailed_errors's value, instead of referencing the variable directly within the closure via a 'use' statement, we retrieve the Container's settings to determine whether PHP exception details should be shown or not. Remove $t_show_detailed_errors variable as it is no longer needed. Regression introduced by b2119ce0dc944f1db13813e863471e2bc3ae64f0. Fixes 0025429 |
Affected Issues 0025429 |
|
| mod - api/rest/index.php | Diff File | ||
related to
child of
duplicate of