ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhay Kulkarni (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RANGER-2008) Policy evaluation is failing for multiline policy conditions.
Date Thu, 27 Sep 2018 00:25:00 GMT

    [ https://issues.apache.org/jira/browse/RANGER-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16629564#comment-16629564
] 

Abhay Kulkarni commented on RANGER-2008:
----------------------------------------

Committed to ranger-0.7:

https://git-wip-us.apache.org/repos/asf?p=ranger.git;a=commit;h=3d430201d2e90708da3bae8ee0034f32e1c925f7

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

Mime
View raw message