You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Nitin Galave (JIRA)" <ji...@apache.org> on 2018/03/07 05:48:00 UTC
[jira] [Commented] (RANGER-2008) Policy evaluation is failing for
multiline policy conditions.
[ https://issues.apache.org/jira/browse/RANGER-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16389052#comment-16389052 ]
Nitin Galave commented on RANGER-2008:
--------------------------------------
Committed to apache [master|https://github.com/apache/ranger/commit/2109fe04db224ae91cd9aa98c66cef0af4116d63] branch.
> Policy evaluation is failing for multiline policy conditions.
> -------------------------------------------------------------
>
> Key: RANGER-2008
> URL: https://issues.apache.org/jira/browse/RANGER-2008
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Reporter: Nitin Galave
> Assignee: Nitin Galave
> Priority: Major
> Fix For: 1.0.0
>
> Attachments: RANGER-2008.patch
>
>
> Policy evaluation is failing for multi-line policy conditions.
> To Reproduce :
> Create tag-based policy with multi-line policy condition and also policy condition should contain *comma* in it.
> eg ctx.getAttributeValue("DATA_ATR", "name").equals("data_val");
> Expression entered in policy-condition is broken into 2 values as follow:
> {code:java}
> "conditions": [
> {
> "type": "expression",
> "values": [
> "ctx.getAttributeValue(\u0027DATA_ATR\u0027",
> " \u0027name\u0027).equals(\u0027data_val\u0027)"
> ]
> }
> ],{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)