This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new 02c074887 RANGER-4719: fix incorrect handling of policy condition 
expressions in Ranger UI
02c074887 is described below

commit 02c0748870b52f91a5eba9ac4ef8b85d1f6c52bd
Author: Himanshu Maurya <[email protected]>
AuthorDate: Tue Feb 20 17:02:02 2024 +0530

    RANGER-4719: fix incorrect handling of policy condition expressions in 
Ranger UI
    
    Signed-off-by: Madhan Neethiraj <[email protected]>
---
 .../src/main/java/org/apache/ranger/plugin/util/ServiceDefUtil.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/util/ServiceDefUtil.java 
b/agents-common/src/main/java/org/apache/ranger/plugin/util/ServiceDefUtil.java
index ea76e6c33..f9816546a 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/util/ServiceDefUtil.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/util/ServiceDefUtil.java
@@ -716,6 +716,7 @@ public class ServiceDefUtil {
     public static RangerPolicyConditionDef 
createImplicitExpressionConditionDef(Long itemId) {
         RangerPolicyConditionDef ret = new RangerPolicyConditionDef(itemId, 
IMPLICIT_CONDITION_EXPRESSION_NAME, IMPLICIT_CONDITION_EXPRESSION_EVALUATOR, 
new HashMap<>());
 
+        ret.getEvaluatorOptions().put("engineName", "JavaScript");
         ret.getEvaluatorOptions().put("ui.isMultiline", "true");
         ret.setLabel(IMPLICIT_CONDITION_EXPRESSION_LABEL);
         ret.setDescription(IMPLICIT_CONDITION_EXPRESSION_DESC);

Reply via email to