1ssqq1lxr opened a new issue, #10907:
URL: https://github.com/apache/ignite/issues/10907
version: Ignite 2.15.0
source code:
This code runs fine in 2.14.0
@Override
public <R> Collection<R> callBroadcast(JobCaller<R> callable) {
try {
IgniteCallable<R> igniteCallable = callable::call;
return igniteCompute.broadcast(igniteCallable);
} catch (Exception e) {
return Collections.emptySet();
}
}
debug:
GridTaskWorker:
private void authorizeSystemTaskJob(ComputeJob job) {
if (!ctx.security().isSystemType(task.getClass()))
return;
Object executable = unwrap(job);
if (!ctx.security().isSystemType(executable.getClass())) {
assert opts.isPublicRequest();
ctx.security().authorize(executable.getClass().getName(),
TASK_EXECUTE);
}
else if (executable instanceof PlatformSecurityAwareJob)
ctx.security().authorize(((PlatformSecurityAwareJob)executable).name(),
TASK_EXECUTE);
else if (opts.isPublicRequest()) {
if (executable instanceof PublicAccessJob)
authorizeAll(ctx.security(),
((PublicAccessJob)executable).requiredPermissions());
else {
// We do not allow to execute internal tasks via public API
for security reasons.
throw new SecurityException("Access to Ignite Internal tasks
is restricted" +
" [task=" + task.getClass().getName() + ", job=" +
job.getClass() + "]");
}
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]