X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.core%2Fsrc%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FProcessThread.java;h=b17e478f7a172fe458afa2b47d173b9400cdb743;hb=c4282a516108d936112fbd4b91291563ec30a5e4;hp=9b8f9cc3f2cdbb530a7c6b54b0df06de938580d7;hpb=a922e3cb35c6182dbbb40c29eee42f7320c298ee;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.core/src/org/argeo/slc/core/execution/ProcessThread.java b/org.argeo.slc.core/src/org/argeo/slc/core/execution/ProcessThread.java index 9b8f9cc3f..b17e478f7 100644 --- a/org.argeo.slc.core/src/org/argeo/slc/core/execution/ProcessThread.java +++ b/org.argeo.slc.core/src/org/argeo/slc/core/execution/ProcessThread.java @@ -23,13 +23,10 @@ import java.util.Set; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.argeo.slc.SlcException; import org.argeo.slc.execution.ExecutionModulesManager; import org.argeo.slc.execution.ExecutionProcess; import org.argeo.slc.execution.ExecutionStep; import org.argeo.slc.execution.RealizedFlow; -import org.springframework.security.core.Authentication; -import org.springframework.security.core.context.SecurityContextHolder; /** * Main thread coordinating an {@link ExecutionProcess}, launching parallel or @@ -59,11 +56,11 @@ public class ProcessThread extends Thread { public final void run() { // authenticate thread - Authentication authentication = getProcessThreadGroup() - .getAuthentication(); - if (authentication == null) - throw new SlcException("Can only execute authenticated threads"); - SecurityContextHolder.getContext().setAuthentication(authentication); +// Authentication authentication = getProcessThreadGroup() +// .getAuthentication(); +// if (authentication == null) +// throw new SlcException("Can only execute authenticated threads"); +// SecurityContextHolder.getContext().setAuthentication(authentication); log.info("\n##\n## SLC Process #" + process.getUuid() + " STARTED\n##\n");