Hi all,
Recently I realised that SUSPEND and REACTIVATE bulk operations on User are
not propagated. This happen because of in AbstractAnyService
case SUSPEND:
if (logic instanceof UserLogic) {
for (String key : bulkAction.getTargets()) {
StatusPatch statusPatch = new
StatusPatch.Builder().key(key).
type(StatusPatchType.SUSPEND).
onSyncope(true).
build();
try {
result.getResults().put(
((UserLogic) logic).
status(statusPatch,
isNullPriorityAsync()).getEntity().getKey(),
BulkActionResult.Status.SUCCESS);
} catch (Exception e) {
LOG.error("Error performing suspend for user
{}", key, e);
result.getResults().put(key,
BulkActionResult.Status.FAILURE);
}
}
} else {
throw new BadRequestException();
}
break;
when we create StatusPatch, we don't set Resources to it.
Questions:
1. Is there any way to propagate SUSPEND and REACTIVATE bulk operations?
2. Was it implemented intentionally or I should create a bug for this in
jira?
Best Regards,
Alexander Tsvetkov