View Issue Details

IDProjectCategoryView StatusLast Update
0026891mantisbtapi restpublic2021-03-07 18:29
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
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 12:20

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