----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19560/#review38296 -----------------------------------------------------------
Nice work! LGTM, just two comments. I see grant/revoke for URI are using scope=server. I think we should change that to URI? sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java <https://reviews.apache.org/r/19560/#comment70340> I see I used "SERVER" on the left, but I think this should be URI? sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyStoreProcessor.java <https://reviews.apache.org/r/19560/#comment70339> tailing ws - Brock Noland On March 22, 2014, 5:52 a.m., Prasad Mujumdar wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/19560/ > ----------------------------------------------------------- > > (Updated March 22, 2014, 5:52 a.m.) > > > Review request for sentry, Brock Noland and Shreepadma Venugopalan. > > > Bugs: SENTRY-137 > https://issues.apache.org/jira/browse/SENTRY-137 > > > Repository: sentry > > > Description > ------- > > Put privilege scopes in SentryConstants [SERVER, DB, TABLE, URI] > Ensure the SentryPolicyStoreClient client is setting this properties. > Validate this property when on the grant/revoke privilege commands in > SentryStore > > > Diffs > ----- > > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java > 464569c > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyStoreProcessor.java > 9562783 > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/ServiceConstants.java > 1b36690 > > Diff: https://reviews.apache.org/r/19560/diff/ > > > Testing > ------- > > sentry-provider-db tests pass with the patch. > > > Thanks, > > Prasad Mujumdar > >
