1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-21 23:38:50 -05:00

access denied ("groovy.security.GroovyCodeSourcePermission" "/groovy/shell")

This commit is contained in:
Reinhard Pointner 2019-05-24 17:02:39 +07:00
parent dc0c1f1cea
commit 49596efa67

View File

@ -23,6 +23,7 @@ import javax.script.ScriptContext;
import javax.script.ScriptEngine;
import javax.script.ScriptException;
import groovy.security.GroovyCodeSourcePermission;
import net.filebot.ApplicationFolder;
import net.filebot.util.ExceptionUtilities;
@ -57,6 +58,7 @@ public class SecureCompiledScript extends CompiledScript {
permissions.add(new ManagementPermission("monitor"));
permissions.add(new ReflectPermission("suppressAccessChecks"));
permissions.add(new ReflectPermission("newProxyInPackage.*"));
permissions.add(new GroovyCodeSourcePermission("*"));
// write permissions for cache and temp folders
for (ApplicationFolder it : ApplicationFolder.values()) {