ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nitin Galave (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (RANGER-2008) Policy evaluation is failing for multiline policy conditions.
Date Wed, 07 Mar 2018 06:57:00 GMT

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

Nitin Galave edited comment on RANGER-2008 at 3/7/18 6:56 AM:
--------------------------------------------------------------

Committed to apache [master|https://github.com/apache/ranger/commit/2109fe04db224ae91cd9aa98c66cef0af4116d63]
and [ranger-1.0|https://github.com/apache/ranger/commit/58d1fa472bb1d7f6d5c98188f5f5631295825e02]
branch.


was (Author: nitin.galave):
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)

Mime
View raw message