vyommani commented on code in PR #872:
URL: https://github.com/apache/ranger/pull/872#discussion_r3146582614
##########
plugin-nestedstructure/src/main/java/org/apache/ranger/authorization/nestedstructure/authorizer/RecordFilterJavaScript.java:
##########
@@ -78,25 +145,89 @@ public static boolean filterRow(String user, String
filterExpr, String jsonStrin
}
}
+ private static ScriptEngine resolveJavaScriptEngine(ScriptEngineManager
mgr) {
+ String[] tryNames = {"graal.js", "nashorn", "js", "JavaScript",
"javascript"};
Review Comment:
or may be like this
private static final List<String> SUPPORTED_JS_ENGINE_NAMES = List.of(
"graal.js", // GraalVM JavaScript
"nashorn", // JDK 8-14 Nashorn
"js", // Short alias
"JavaScript", // Standard name
"javascript" // Lowercase variant
);
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]