Fix issue with username case in LDAP
[lgpl/argeo-commons.git] / security / runtime / org.argeo.security.core / src / main / java / org / argeo / security / core / KeyBasedSystemExecutionService.java
index 07ae046539c93ca5dd8f2deddf9c6ee62db4b7c6..b5791c587f00ec2dd9ea021c4c06172cf3be7527 100644 (file)
@@ -17,6 +17,8 @@ public class KeyBasedSystemExecutionService extends AbstractSystemExecution
        public void execute(Runnable runnable) {
                try {
                        wrapWithSystemAuthentication(Executors.callable(runnable)).call();
+               } catch (RuntimeException e) {
+                       throw e;
                } catch (Exception e) {
                        throw new ArgeoException(
                                        "Exception when running system authenticated task", e);