Re: Review Request 65639: SENTRY-1242 Enable getting all privileges on a hive object

2018-03-09 Thread Steve Moist via Review Board

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

(Updated March 9, 2018, 6:40 p.m.)


Review request for sentry.


Repository: sentry


Description
---

Enabled use of show grant on table and show grant on database for the current 
user.


Diffs (updated)
-

  
sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/SentryHiveAuthorizationTaskFactoryImpl.java
 23246c90 
  
sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/DefaultSentryAccessController.java
 3ac49fa6 
  
sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java
 2e3fd7f3 


Diff: https://reviews.apache.org/r/65639/diff/3/

Changes: https://reviews.apache.org/r/65639/diff/2-3/


Testing
---

Added unit tests, mvn clean package on sentry-binding/sentry-binding-hive


Thanks,

Steve Moist



Re: Review Request 65639: SENTRY-1242 Enable getting all privileges on a hive object

2018-03-06 Thread Na Li via Review Board

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


Ship it!




Ship It!

- Na Li


On March 5, 2018, 9:40 p.m., Steve Moist wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/65639/
> ---
> 
> (Updated March 5, 2018, 9:40 p.m.)
> 
> 
> Review request for sentry.
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> Enabled use of show grant on table and show grant on database for the current 
> user.
> 
> 
> Diffs
> -
> 
>   
> sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/SentryHiveAuthorizationTaskFactoryImpl.java
>  23246c90 
>   
> sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/DefaultSentryAccessController.java
>  3ac49fa6 
>   
> sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java
>  2e3fd7f3 
> 
> 
> Diff: https://reviews.apache.org/r/65639/diff/2/
> 
> 
> Testing
> ---
> 
> Added unit tests, mvn clean package on sentry-binding/sentry-binding-hive
> 
> 
> Thanks,
> 
> Steve Moist
> 
>



Re: Review Request 65639: SENTRY-1242 Enable getting all privileges on a hive object

2018-03-05 Thread Steve Moist via Review Board

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

(Updated March 5, 2018, 9:40 p.m.)


Review request for sentry.


Repository: sentry


Description
---

Enabled use of show grant on table and show grant on database for the current 
user.


Diffs (updated)
-

  
sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/SentryHiveAuthorizationTaskFactoryImpl.java
 23246c90 
  
sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/DefaultSentryAccessController.java
 3ac49fa6 
  
sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java
 2e3fd7f3 


Diff: https://reviews.apache.org/r/65639/diff/2/

Changes: https://reviews.apache.org/r/65639/diff/1-2/


Testing
---

Added unit tests, mvn clean package on sentry-binding/sentry-binding-hive


Thanks,

Steve Moist



Re: Review Request 65639: SENTRY-1242 Enable getting all privileges on a hive object

2018-02-13 Thread Na Li via Review Board

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




sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/SentryHiveAuthorizationTaskFactoryImpl.java
Line 206 (original), 206 (patched)


It is not clear why if it is group, you throw exception.

if ((type != PrincipalType.Role) && (type != PrincipalType.User))
 
 would be more clear what is supported. It also works if more type is added 
into PrincipalType



sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/DefaultSentryAccessController.java
Line 203 (original), 208 (patched)


same here


- Na Li


On Feb. 13, 2018, 8:21 p.m., Steve Moist wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/65639/
> ---
> 
> (Updated Feb. 13, 2018, 8:21 p.m.)
> 
> 
> Review request for sentry.
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> Enabled use of show grant on table and show grant on database for the current 
> user.
> 
> 
> Diffs
> -
> 
>   
> sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/SentryHiveAuthorizationTaskFactoryImpl.java
>  1e520c0b 
>   
> sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/DefaultSentryAccessController.java
>  14a96191 
>   
> sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java
>  c75f57d6 
> 
> 
> Diff: https://reviews.apache.org/r/65639/diff/1/
> 
> 
> Testing
> ---
> 
> Added unit tests, mvn clean package on sentry-binding/sentry-binding-hive
> 
> 
> Thanks,
> 
> Steve Moist
> 
>