[ 
https://issues.apache.org/jira/browse/RANGER-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nitin Galave updated RANGER-2008:
---------------------------------
    Attachment: RANGER-2008.patch

> 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)

Reply via email to