You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem?
Now SQL plugin is the extension of job scheduler plugin. And SQL plugin is now trying to implement the calcite engine. During the implementation, even though the sql plugin already add the security policy , and the code is also wrapped by the access controller, e.g. here, we still get security error.
One local temporal solution is to add security policy to job scheduler like #736 and publish it to maven local. Then we could pass the IT.
This enable the calcite.
Then run ./gradlew integTest :integ-test:integTest --tests "org.opensearch.sql.ppl.StatsCommandIT.testStatsAvg"
You can see the log like
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getClassLoader")
» at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:488) ~[?:?]
» at java.base/java.security.AccessController.checkPermission(AccessController.java:1071) ~[?:?]
» at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:411) ~[?:?]
» at java.base/java.lang.ClassLoader.checkClassLoaderPermission(ClassLoader.java:2084) ~[?:?]
» at java.base/java.lang.Thread.getContextClassLoader(Thread.java:2346) ~[?:?]
» at org.codehaus.janino.SimpleCompiler.<init>(SimpleCompiler.java:72) ~[janino-3.1.11.jar:?]
» at org.codehaus.janino.CompilerFactory.newSimpleCompiler(CompilerFactory.java:65) ~[janino-3.1.11.jar:?]
By adding security policy to job scheduler can skip this issue.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Now SQL plugin is the extension of job scheduler plugin. And SQL plugin is now trying to implement the calcite engine. During the implementation, even though the sql plugin already add the security policy , and the code is also wrapped by the access controller, e.g. here, we still get security error.
One local temporal solution is to add security policy to job scheduler like #736 and publish it to maven local. Then we could pass the IT.
** The way to reproduce **
Clone the sql plugin repo from https://github.com/LantaoJin/search-plugins-sql/tree/pr/issues/3330, switch to branch pr/issues/3330.
Go to class StatsCommandIT and add this two line to init()
This enable the calcite.
Then run
./gradlew integTest :integ-test:integTest --tests "org.opensearch.sql.ppl.StatsCommandIT.testStatsAvg"
You can see the log like
By adding security policy to job scheduler can skip this issue.
The text was updated successfully, but these errors were encountered: