[jira] [Updated] (RANGER-1175) Create policy fails for updated servicedef

2016-09-19 Thread Mehul Parikh (JIRA)

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

Mehul Parikh updated RANGER-1175:
-
Description: Create policy page breaks on save policy action, if service 
definition is updated and is having a newly added resource attributes at same 
level.  (was: Create policy page breaks on save policy action, if service def 
of Hive updated and is having a newly added resource attribute.)

> Create policy fails for updated servicedef
> --
>
> Key: RANGER-1175
> URL: https://issues.apache.org/jira/browse/RANGER-1175
> Project: Ranger
>  Issue Type: Bug
>  Components: admin
>Affects Versions: 0.6.1
>Reporter: Mehul Parikh
>Assignee: Mehul Parikh
> Fix For: 0.6.1
>
> Attachments: RANGER-1175.patch
>
>
> Create policy page breaks on save policy action, if service definition is 
> updated and is having a newly added resource attributes at same level.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: Review Request 51943: RANGER-1175 : Create policy fails for updated servicedef

2016-09-19 Thread Gautam Borad

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51943/#review149614
---


Ship it!




Ship It!

- Gautam Borad


On Sept. 16, 2016, 8:21 a.m., Mehul Parikh wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51943/
> ---
> 
> (Updated Sept. 16, 2016, 8:21 a.m.)
> 
> 
> Review request for ranger, Gautam Borad, Madhan Neethiraj, Ramesh Mani, and 
> Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1175
> https://issues.apache.org/jira/browse/RANGER-1175
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> Patch contains null value check for resource attributes in servicedef
> 
> 
> Diffs
> -
> 
>   security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js 
> aae9c70 
> 
> Diff: https://reviews.apache.org/r/51943/diff/
> 
> 
> Testing
> ---
> 
> Verified Create policy on normal servicedef and also with service def having 
> newly added resource attribute.
> 
> 
> Thanks,
> 
> Mehul Parikh
> 
>



[jira] [Created] (RANGER-1176) Ranger admin does not allow to create / update a policy with only delegate admin permission

2016-09-19 Thread Vipin Rathor (JIRA)
Vipin Rathor created RANGER-1176:


 Summary: Ranger admin does not allow to create / update a policy 
with only delegate admin permission
 Key: RANGER-1176
 URL: https://issues.apache.org/jira/browse/RANGER-1176
 Project: Ranger
  Issue Type: Bug
  Components: admin
Affects Versions: 0.5.0
Reporter: Vipin Rathor
Priority: Minor


As of RANGER-436, a policy with empty access list is valid if delegated admin 
is true. But the Ranger Admin UI doesn't allow user to create / update a policy 
with only the 'delegate admin' permission for a user / group.

Expected Result:
Create / update policy with only 'delegate admin' permission should be allowed 
via Ranger Admin UI 

Actual Result:
Upon saving, the create page throws this error for user:
"Please add permission(s) for the selected User, else User will not be added."
And similar error for group:
"Please add permission(s) for the selected Group, else Group will not be added."

Workaround:
As of now, the workaround is to create / update the policy via REST API. But 
the only caveat is user will not be able to edit the policy again via Admin UI.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)