Skip to content

Commit

Permalink
Merge pull request #1996 from scireum/ili/OX-11008
Browse files Browse the repository at this point in the history
Detaches tenant scripting from sandbox
  • Loading branch information
idlira authored May 16, 2024
2 parents 87eec8c + c4b3513 commit be4c138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private Optional<ScriptableEventDispatcher> compileAndLoad(MongoCustomScript scr
}

CompilationContext compilationContext =
new CompilationContext(SourceCodeInfo.forInlineCode(script.getScript(), SandboxMode.WARN_ONLY));
new CompilationContext(SourceCodeInfo.forInlineCode(script.getScript(), SandboxMode.DISABLED));

compilationContext.getVariableScoper()
.defineVariable(Position.UNKNOWN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void compile(WebContext webContext, JSONStructuredOutput output) {
if (webContext.isSafePOST()) {
String script = webContext.get(PARAM_SCRIPT).asString();
CompilationContext compilationContext =
new CompilationContext(SourceCodeInfo.forInlineCode(script, SandboxMode.WARN_ONLY));
new CompilationContext(SourceCodeInfo.forInlineCode(script, SandboxMode.DISABLED));
compilationContext.getVariableScoper()
.defineVariable(Position.UNKNOWN,
MongoCustomEventDispatcherRepository.SCRIPT_PARAMETER_REGISTRY,
Expand Down

0 comments on commit be4c138

Please sign in to comment.