View Issue Details

IDProjectCategoryView StatusLast Update
0023301mantisbtapi restpublic2017-10-08 23:53
Reporterelmarculino Assigned Tocommunity  
Status closedResolutionfixed 
Product Version2.5.1 
Target Version2.7.0Fixed in Version2.7.0 
Summary0023301: Request an issue in the REST API fail without warning if an enumeration is missing.

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.

TagsNo tags attached.




2017-09-01 18:07

developer   ~0057595




2017-09-04 08:14

developer   ~0057607

Last edited: 2017-09-04 08:14

View 2 revisions

Problem can be reproduced in latest master (:mantisbt:5fd83b658c697596fc6dae6d48aa714d65c6c03b:)

Related Changesets

MantisBT: master b380aee1

2017-09-08 04:13:45


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
mod - api/soap/mc_enum_api.php Diff File

Issue History

Date Modified Username Field Change
2017-09-01 18:00 elmarculino New Issue
2017-09-01 18:07 atrol Note Added: 0057595
2017-09-04 08:14 dregad Status new => confirmed
2017-09-04 08:14 dregad Note Added: 0057607
2017-09-04 08:14 dregad Note Edited: 0057607 View Revisions
2017-09-08 04:13 dregad Changeset attached => MantisBT master b380aee1
2017-09-08 04:13 dregad Assigned To => dregad
2017-09-08 04:13 dregad Status confirmed => resolved
2017-09-08 04:13 dregad Resolution open => fixed
2017-09-08 04:13 dregad Fixed in Version => 2.7.0
2017-09-08 04:14 dregad Target Version => 2.7.0
2017-09-10 05:41 atrol Assigned To dregad => community
2017-10-08 23:53 vboctor Status resolved => closed