View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0028927 | mantisbt | api rest | public | 2021-07-19 06:37 | 2022-04-13 12:10 |
Reporter | scopen-marc | Assigned To | community | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.24.4 | ||||
Target Version | 2.25.3 | Fixed in Version | 2.25.3 | ||
Summary | 0028927: Slim Application Error when RestFault generated | ||||
Description | When calling ApiObjectFactory::throwIfFault() to check whether an API call returned a fault (RestFault or SoapFault depending of the API type), if that is indeed the case, a LegacyApiFaultException is created by getting the message and code from the fault object. This is done by calling getCode() and getMessage() on the fault. Yet, RestFault implements none of those methods (contrary to SoapFault, which extends PHP's standard Exception class). This causes a Slim Application Error page in HTML instead of the exected JSON error response. | ||||
Additional Information | Following my own Github pull request 0001762 : https://github.com/mantisbt/mantisbt/pull/1762 | ||||
Tags | No tags attached. | ||||
MantisBT: master-2.25 702a0b85 2021-06-30 02:25 Committer: dregad Details Diff |
Fix call to undefined methods when handling RestFault Fixes 0028927, PR https://github.com/mantisbt/mantisbt/pull/1762 Signed-off-by: Damien Regad <dregad@mantisbt.org> Original commit amended to fix whitespace. |
Affected Issues 0028927 |
|
mod - api/soap/mc_api.php | Diff File |