You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2024/03/11 06:17:03 UTC
(ranger) branch master updated: RANGER-4719: fix incorrect handling of policy condition expressions in Ranger UI
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 <hm...@wm-xhxq4x543t.visa.com>
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 <ma...@apache.org>
---
.../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);