View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023301 | mantisbt | api rest | public | 2017-09-01 18:00 | 2017-10-08 23:53 |
Reporter | elmarculino | Assigned To | community | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.5.1 | ||||
Target Version | 2.7.0 | Fixed in Version | 2.7.0 | ||
Summary | 0023301: Request an issue in the REST API fail without warning if an enumeration is missing. | ||||
Description | When requesting an issue in the REST API if an enumeration is missing the request will simple fail. | ||||
Steps To Reproduce | Change the value of an enumeration ('status' or status custom color, 'reproducibility' etc. ) to a value that is not properly configured. Try to get that issue with the REST API. The issue request will fail with a Slim default error. | ||||
Tags | No tags attached. | ||||
MantisBT: master b380aee1 2017-09-08 00:13 Committer: dregad Details Diff |
Fix REST API failing silently in case of missing enum value The API call fails silently if the issue being retrieved references an enum value or status color that does not exist in the config. - Use MantisEnum::getLabel() method to handle unknown enum values. - Set color to 'currentcolor' for unknown status Fixes 0023301 |
Affected Issues 0023301 |
|
mod - api/soap/mc_enum_api.php | Diff File |