There is a problem when deleting a user or a group that is still attached to a role.
The user or the group is properly deleted but its not deleted from the role XML file.
In order to correct the bug you need to upgrade SITools to the last version available on Github or follow the steps below :
Remove the final of the doInit() method in the class AbstractRoleResource
Add the following lines in the createInboutRoot createInboundRoot method of RoleApplication just before NotifierFilter filter = new NotifierFilter(getContext());
Add the following lines in the GroupTrigger class just before realm.removeGroup(groupName);
// remove group from the rolesStringurl=settings.getString(Consts.APP_ROLES_URL)+"/groups/notify/"+groupName;RIAPUtils.handle(url,newEmptyRepresentation(),Method.PUT,MediaType.APPLICATION_JAVA_OBJECT,getContext());
Add in the UserTrigger class just before realm.removeUser(userId);
// remove user from the rolesStringurl=settings.getString(Consts.APP_ROLES_URL)+"/users/notify/"+userId;RIAPUtils.handle(url,newEmptyRepresentation(),Method.PUT,MediaType.APPLICATION_JAVA_OBJECT,getContext());
In order to correct the bug you need to upgrade SITools to the last version available on Github or follow the steps below :
Remove the final of the doInit() method in the class AbstractRoleResource
Add the following lines in the createInboutRoot createInboundRoot method of RoleApplication just before NotifierFilter filter = new NotifierFilter(getContext());
Add 2 new classes RoleNotifyUserResource et RoleNotifyGroupResource (in attached zip file)
Add the following lines In the Starter class after appManager.attachApplication(roleApplication);
Add the following lines in the GroupTrigger class just before realm.removeGroup(groupName);
Add in the UserTrigger class just before realm.removeUser(userId);