Check for negatives groups id (returned for a not existing group) added. Solves issue #24831

This commit is contained in:
Mauro Mugnaini 2023-03-23 12:54:43 +01:00
parent b27d62a862
commit 512aa043db
1 changed files with 2 additions and 2 deletions

View File

@ -122,11 +122,11 @@ public class UserSitesToGroupsAndRolesMapper {
}
actualSiteGroupId = groupManager.getGroupId(actualSite.getName());
} catch (UserManagementSystemException | GroupRetrievalFault e) {
log.error("Cannot retrieve group for site: " + actualSite.getName(), e);
log.warn("Cannot retrieve group for site: " + actualSite.getName(), e);
return;
}
if (actualSiteGroupId < 0) {
log.info("Retrieved group id is not valid for the site: " + actualSite.getName());
log.warn("Retrieved group id is not valid for the site: " + actualSite.getName());
return;
}
try {