> On 十二月 2, 2014, 3:11 p.m., Lenni Kuff wrote:
> > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java,
> >  line 596
> > <https://reviews.apache.org/r/28547/diff/4/?file=779937#file779937line596>
> >
> >     This might accidently include privileges that don't actualy imply the 
> > parent. It's probably safest to always call implies to perform the scope 
> > checks after setting the action:
> >     
> >     if (isActionAll(childPriv.getAction())) childPriv.setAction(...);
> >     if (!parent.implies(childPriv)) continue;

Thanks, good suggestion!


> On 十二月 2, 2014, 3:11 p.m., Lenni Kuff wrote:
> > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java,
> >  line 609
> > <https://reviews.apache.org/r/28547/diff/4/?file=779937#file779937line609>
> >
> >     Thanks for adding this. Should this be an instance method on 
> > MSentryPrivilege?

Good suggestion!


- Dapeng


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


On 十二月 2, 2014, 1:09 p.m., Dapeng Sun wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/28547/
> -----------------------------------------------------------
> 
> (Updated 十二月 2, 2014, 1:09 p.m.)
> 
> 
> Review request for sentry and Lenni Kuff.
> 
> 
> Bugs: SENTRY-552
>     https://issues.apache.org/jira/browse/SENTRY-552
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> Updated the patch accroding Lenni's feedback
> 
> 
> Diffs
> -----
> 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
>  073bb33 
>   
> sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStore.java
>  5bb00f5 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestDatabaseProvider.java
>  3189955 
> 
> Diff: https://reviews.apache.org/r/28547/diff/
> 
> 
> Testing
> -------
> 
> UnitTests in local
> 
> 
> Thanks,
> 
> Dapeng Sun
> 
>

Reply via email to