From: Bruno Sinou Date: Thu, 29 Jan 2015 15:41:19 +0000 (+0000) Subject: Centralize the call to setUser(true) that must be done *before* the... X-Git-Tag: argeo-commons-2.1.30~420 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=5277f95708da66ef5e1791f0301056506768daf7;p=lgpl%2Fargeo-commons.git Centralize the call to setUser(true) that must be done *before* the job is scheduled. It is required for the progress window to appear git-svn-id: https://svn.argeo.org/commons/trunk@7730 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/org.argeo.security.ui/src/org/argeo/security/ui/PrivilegedJob.java b/org.argeo.security.ui/src/org/argeo/security/ui/PrivilegedJob.java index f66ef2b60..33ee4a6c9 100644 --- a/org.argeo.security.ui/src/org/argeo/security/ui/PrivilegedJob.java +++ b/org.argeo.security.ui/src/org/argeo/security/ui/PrivilegedJob.java @@ -24,6 +24,10 @@ public abstract class PrivilegedJob extends Job { super(jobName); authentication = SecurityContextHolder.getContext().getAuthentication(); subject = Subject.getSubject(AccessController.getContext()); + + // Must be called *before* the job is scheduled, + // it is required for the progress window to appear + setUser(true); } @Override