[
https://issues.apache.org/jira/browse/RANGER-4795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17850024#comment-17850024
]
Vishal Bhavsar commented on RANGER-4795:
----------------------------------------
We are able to create Mask & Row level policy with empty value i.e "" for
user/group/role.
Steps to reproduce:
# From Postman hit Post api :
[http://10.140.31.0:6080/service/plugins/policies] ; use below json as payload
> Add validation in API to check emptyness on policyitem while creating policy.
> -----------------------------------------------------------------------------
>
> Key: RANGER-4795
> URL: https://issues.apache.org/jira/browse/RANGER-4795
> Project: Ranger
> Issue Type: Task
> Components: Ranger
> Reporter: Rakesh Gupta
> Assignee: Rakesh Gupta
> Priority: Major
>
> There is an inconsistency between Ranger API and UI not doing the same
> validation for Policy creation.
> Policy creation API should fail when a policy with all empty values and along
> with [""] or ["null"] in policyItem --> users, groups and roles.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)