View Issue Details

IDProjectCategoryView StatusLast Update
0024623mantisbtapi restpublic2018-10-12 02:16
Reporterarune Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version2.15.0 
Summary0024623: Getter functions missing in RestFault
Description

mc_api.php:
static function throwIfFault( $p_maybe_fault ) {
if( ApiObjectFactory::isFault( $p_maybe_fault ) ) {
throw new LegacyApiFaultException( $p_maybe_fault->getMessage(), $p_maybe_fault->getCode() );
}
}

Functions getMessage and getCode are used in ApiObjectFactory::throwIfFault but non-existing in class RestFault, so currently a lot of errors in REST API returns Internal Server Error instead of the correct error.

TagsNo tags attached.

Activities

arune

arune

2018-07-22 08:54

reporter   ~0060296

PR: https://github.com/mantisbt/mantisbt/pull/1368

vboctor

vboctor

2018-09-30 17:48

manager   ~0060716

Closing since there isn't repro information.