View Issue Details

IDProjectCategoryView StatusLast Update
0026891mantisbtapi restpublic2020-04-26 00:00
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.24.0 
Target Version2.25.0Fixed in Version2.25.0 
Summary0026891: /config REST API endpoint reports users as not found when they exist
Description

The error is in the code below (api/rest/restcore/config_rest.php) :

if( $t_user_id != ALL_USERS && user_exists( $t_user_id ) ) {
    return $p_response->withStatus( HTTP_STATUS_NOT_FOUND, "User with id '$t_user_id' not found" );
}

Note that there is a missing ! before the user exists check.

TagsNo tags attached.

Activities

Related Changesets

MantisBT: master 29e0d6db

2020-04-18 16:20:22

vboctor

Details Diff
Config API falsely reports users as not found

Fixes 0026891

Signed-off-by: Victor Boctor <victor@mantishub.net>
Affected Issues
0026891
mod - api/rest/restcore/config_rest.php Diff File