Check for negatives groups id (returned for a not existing group) added. Solves issue #24831
This commit is contained in:
parent
b27d62a862
commit
512aa043db
|
@ -122,11 +122,11 @@ public class UserSitesToGroupsAndRolesMapper {
|
||||||
}
|
}
|
||||||
actualSiteGroupId = groupManager.getGroupId(actualSite.getName());
|
actualSiteGroupId = groupManager.getGroupId(actualSite.getName());
|
||||||
} catch (UserManagementSystemException | GroupRetrievalFault e) {
|
} 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;
|
return;
|
||||||
}
|
}
|
||||||
if (actualSiteGroupId < 0) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue