You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sentry.apache.org by Na Li via Review Board <no...@reviews.apache.org> on 2018/08/15 22:23:03 UTC

Review Request 68367: SENTRY-2354: Beeline error message only shows first required permission that failed access check

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

Review request for sentry, Arjun Mishra, kalyan kumar kalvagadda, and Sergio Pena.


Bugs: sentry-2354
    https://issues.apache.org/jira/browse/sentry-2354


Repository: sentry


Description
-------

When multiple privileges are required on a Hive operation, return the privilege that failed access check and the required privileges not checked yet (they may fail the access check, or may not. We don't check those privileges to avoid unnecessary overhead)


Diffs
-----

  sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java 6a1556f 
  sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java 3bbf6fb 
  sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java aecfe5b 
  sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/NoAuthorizationProvider.java 61400ca 
  sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/ResourceAuthorizationProvider.java 1e1aa63 


Diff: https://reviews.apache.org/r/68367/diff/1/


Testing
-------

Add test case that verifies the behavior stated above. All test cases in TestHiveAuthzBindings passed


Thanks,

Na Li


Re: Review Request 68367: SENTRY-2354: Beeline error message only shows first required permission that failed access check

Posted by Na Li via Review Board <no...@reviews.apache.org>.

> On Aug. 16, 2018, 7:57 p.m., Sergio Pena wrote:
> > sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java
> > Lines 74-80 (patched)
> > <https://reviews.apache.org/r/68367/diff/1/?file=2073209#file2073209line74>
> >
> >     Why do we need to bring this thread local here? is there another way to get a list of the privileges without this variable? Why is it trhead local btw?
> 
> Na Li wrote:
>     The same function can be called be multiple threads. Without thread local, the error experienced by thread1 will be returned to thread 2. It will be a mess.
> 
> kalyan kumar kalvagadda wrote:
>     All local variables are thread safe as each thread maitain their own stacks. local variable to authorize method would server the same purpose, right. Why do we need a thread local varable.

Kalyan, what made you think this is local variable? It is a static thread-local variable of the class HiveAuthzBinding. Its value is set in HiveAuthzBinding.authorize() function, and returned in HiveAuthzBinding.getLastQueryPrivilegeErrors(), which is called by HiveAuthzBindingHook.postAnalyze. There is no way to make is a local variable without change the code path significently.


- Na


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


On Aug. 17, 2018, 2:56 a.m., Na Li wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68367/
> -----------------------------------------------------------
> 
> (Updated Aug. 17, 2018, 2:56 a.m.)
> 
> 
> Review request for sentry, Arjun Mishra, kalyan kumar kalvagadda, and Sergio Pena.
> 
> 
> Bugs: sentry-2354
>     https://issues.apache.org/jira/browse/sentry-2354
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> When multiple privileges are required on a Hive operation, return the privilege that failed access check and the required privileges not checked yet (they may fail the access check, or may not. We don't check those privileges to avoid unnecessary overhead)
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java 6a1556f 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java 3bbf6fb 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java aecfe5b 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/NoAuthorizationProvider.java 61400ca 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/ResourceAuthorizationProvider.java 1e1aa63 
> 
> 
> Diff: https://reviews.apache.org/r/68367/diff/2/
> 
> 
> Testing
> -------
> 
> Add test case that verifies the behavior stated above. All test cases in TestHiveAuthzBindings passed
> 
> 
> Thanks,
> 
> Na Li
> 
>


Re: Review Request 68367: SENTRY-2354: Beeline error message only shows first required permission that failed access check

Posted by Na Li via Review Board <no...@reviews.apache.org>.

> On Aug. 16, 2018, 7:57 p.m., Sergio Pena wrote:
> > sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java
> > Lines 74-80 (patched)
> > <https://reviews.apache.org/r/68367/diff/1/?file=2073209#file2073209line74>
> >
> >     Why do we need to bring this thread local here? is there another way to get a list of the privileges without this variable? Why is it trhead local btw?

The same function can be called be multiple threads. Without thread local, the error experienced by thread1 will be returned to thread 2. It will be a mess.


> On Aug. 16, 2018, 7:57 p.m., Sergio Pena wrote:
> > sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java
> > Lines 429 (patched)
> > <https://reviews.apache.org/r/68367/diff/1/?file=2073209#file2073209line429>
> >
> >     Is there an example of the message that will be printed? I think it would be useful to get some examples and ask a technical writer feedback about it. I feel we'll have unorganized information in the output.

I can change it to just contain the first exception message. It will be the same as before.


> On Aug. 16, 2018, 7:57 p.m., Sergio Pena wrote:
> > sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java
> > Lines 464 (patched)
> > <https://reviews.apache.org/r/68367/diff/1/?file=2073210#file2073210line464>
> >
> >     That hard-coded value looks like one of our server names. Can we use a fake name?

will change it. It is still faked one as the original is "hdfs://rogue-4.gce.cloudera.com:8020/tmp"


> On Aug. 16, 2018, 7:57 p.m., Sergio Pena wrote:
> > sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java
> > Lines 78-79 (patched)
> > <https://reviews.apache.org/r/68367/diff/1/?file=2073211#file2073211line78>
> >
> >     Is it necessary to expose this to the interface?

Yes. So we can return the following privileges required after encounting the failure in access check, and avoid the overhead of calling privilege.implies() (which goes through each privileges and check if it implies the required privileges).


- Na


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


On Aug. 15, 2018, 10:23 p.m., Na Li wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68367/
> -----------------------------------------------------------
> 
> (Updated Aug. 15, 2018, 10:23 p.m.)
> 
> 
> Review request for sentry, Arjun Mishra, kalyan kumar kalvagadda, and Sergio Pena.
> 
> 
> Bugs: sentry-2354
>     https://issues.apache.org/jira/browse/sentry-2354
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> When multiple privileges are required on a Hive operation, return the privilege that failed access check and the required privileges not checked yet (they may fail the access check, or may not. We don't check those privileges to avoid unnecessary overhead)
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java 6a1556f 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java 3bbf6fb 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java aecfe5b 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/NoAuthorizationProvider.java 61400ca 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/ResourceAuthorizationProvider.java 1e1aa63 
> 
> 
> Diff: https://reviews.apache.org/r/68367/diff/1/
> 
> 
> Testing
> -------
> 
> Add test case that verifies the behavior stated above. All test cases in TestHiveAuthzBindings passed
> 
> 
> Thanks,
> 
> Na Li
> 
>


Re: Review Request 68367: SENTRY-2354: Beeline error message only shows first required permission that failed access check

Posted by kalyan kumar kalvagadda via Review Board <no...@reviews.apache.org>.

> On Aug. 16, 2018, 7:57 p.m., Sergio Pena wrote:
> > sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java
> > Lines 74-80 (patched)
> > <https://reviews.apache.org/r/68367/diff/1/?file=2073209#file2073209line74>
> >
> >     Why do we need to bring this thread local here? is there another way to get a list of the privileges without this variable? Why is it trhead local btw?
> 
> Na Li wrote:
>     The same function can be called be multiple threads. Without thread local, the error experienced by thread1 will be returned to thread 2. It will be a mess.

All local variables are thread safe as each thread maitain their own stacks. local variable to authorize method would server the same purpose, right. Why do we need a thread local varable.


- kalyan kumar


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


On Aug. 17, 2018, 2:56 a.m., Na Li wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68367/
> -----------------------------------------------------------
> 
> (Updated Aug. 17, 2018, 2:56 a.m.)
> 
> 
> Review request for sentry, Arjun Mishra, kalyan kumar kalvagadda, and Sergio Pena.
> 
> 
> Bugs: sentry-2354
>     https://issues.apache.org/jira/browse/sentry-2354
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> When multiple privileges are required on a Hive operation, return the privilege that failed access check and the required privileges not checked yet (they may fail the access check, or may not. We don't check those privileges to avoid unnecessary overhead)
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java 6a1556f 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java 3bbf6fb 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java aecfe5b 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/NoAuthorizationProvider.java 61400ca 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/ResourceAuthorizationProvider.java 1e1aa63 
> 
> 
> Diff: https://reviews.apache.org/r/68367/diff/2/
> 
> 
> Testing
> -------
> 
> Add test case that verifies the behavior stated above. All test cases in TestHiveAuthzBindings passed
> 
> 
> Thanks,
> 
> Na Li
> 
>


Re: Review Request 68367: SENTRY-2354: Beeline error message only shows first required permission that failed access check

Posted by Sergio Pena via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68367/#review207428
-----------------------------------------------------------




sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java
Lines 74-80 (patched)
<https://reviews.apache.org/r/68367/#comment290814>

    Why do we need to bring this thread local here? is there another way to get a list of the privileges without this variable? Why is it trhead local btw?



sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java
Lines 429 (patched)
<https://reviews.apache.org/r/68367/#comment290815>

    Is there an example of the message that will be printed? I think it would be useful to get some examples and ask a technical writer feedback about it. I feel we'll have unorganized information in the output.



sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java
Lines 464 (patched)
<https://reviews.apache.org/r/68367/#comment290817>

    That hard-coded value looks like one of our server names. Can we use a fake name?



sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java
Lines 78-79 (patched)
<https://reviews.apache.org/r/68367/#comment290816>

    Is it necessary to expose this to the interface?


- Sergio Pena


On Aug. 15, 2018, 10:23 p.m., Na Li wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68367/
> -----------------------------------------------------------
> 
> (Updated Aug. 15, 2018, 10:23 p.m.)
> 
> 
> Review request for sentry, Arjun Mishra, kalyan kumar kalvagadda, and Sergio Pena.
> 
> 
> Bugs: sentry-2354
>     https://issues.apache.org/jira/browse/sentry-2354
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> When multiple privileges are required on a Hive operation, return the privilege that failed access check and the required privileges not checked yet (they may fail the access check, or may not. We don't check those privileges to avoid unnecessary overhead)
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java 6a1556f 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java 3bbf6fb 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java aecfe5b 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/NoAuthorizationProvider.java 61400ca 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/ResourceAuthorizationProvider.java 1e1aa63 
> 
> 
> Diff: https://reviews.apache.org/r/68367/diff/1/
> 
> 
> Testing
> -------
> 
> Add test case that verifies the behavior stated above. All test cases in TestHiveAuthzBindings passed
> 
> 
> Thanks,
> 
> Na Li
> 
>


Re: Review Request 68367: SENTRY-2354: Beeline error message only shows first required permission that failed access check

Posted by kalyan kumar kalvagadda via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68367/#review207526
-----------------------------------------------------------



I left a comment in jira as well.

- kalyan kumar kalvagadda


On Aug. 17, 2018, 2:56 a.m., Na Li wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68367/
> -----------------------------------------------------------
> 
> (Updated Aug. 17, 2018, 2:56 a.m.)
> 
> 
> Review request for sentry, Arjun Mishra, kalyan kumar kalvagadda, and Sergio Pena.
> 
> 
> Bugs: sentry-2354
>     https://issues.apache.org/jira/browse/sentry-2354
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> When multiple privileges are required on a Hive operation, return the privilege that failed access check and the required privileges not checked yet (they may fail the access check, or may not. We don't check those privileges to avoid unnecessary overhead)
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java 6a1556f 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java 3bbf6fb 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java aecfe5b 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/NoAuthorizationProvider.java 61400ca 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/ResourceAuthorizationProvider.java 1e1aa63 
> 
> 
> Diff: https://reviews.apache.org/r/68367/diff/2/
> 
> 
> Testing
> -------
> 
> Add test case that verifies the behavior stated above. All test cases in TestHiveAuthzBindings passed
> 
> 
> Thanks,
> 
> Na Li
> 
>


Re: Review Request 68367: SENTRY-2354: Beeline error message only shows first required permission that failed access check

Posted by Na Li via Review Board <no...@reviews.apache.org>.

> On Aug. 17, 2018, 4:12 p.m., kalyan kumar kalvagadda wrote:
> > Why can we just return the requiredInputPrivileges and requiredOutputPrivileges combined when there is an autorization failure?
> > What is the difference between this and the "lastFailedPrivileges" leanrt in your patch?

in HiveAuthzPrivilegesMap, the required input privileges and out privileges only specify the level of the privilege and the actions. It is not specific enough to be useful for end user.

We need to call buildPermissions() to combine the input authorizable hierarchy from user query with required input privileges from HiveAuthzPrivilegesMap to construct the specific input privileges required for access check, such as "Server=server1->Db=db_7efca->Table=tbl_hzq8l->Column=fname->action=select". If we don't call buildPermissions(), we can only reture "Column level select"


- Na


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


On Aug. 17, 2018, 2:56 a.m., Na Li wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68367/
> -----------------------------------------------------------
> 
> (Updated Aug. 17, 2018, 2:56 a.m.)
> 
> 
> Review request for sentry, Arjun Mishra, kalyan kumar kalvagadda, and Sergio Pena.
> 
> 
> Bugs: sentry-2354
>     https://issues.apache.org/jira/browse/sentry-2354
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> When multiple privileges are required on a Hive operation, return the privilege that failed access check and the required privileges not checked yet (they may fail the access check, or may not. We don't check those privileges to avoid unnecessary overhead)
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java 6a1556f 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java 3bbf6fb 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java aecfe5b 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/NoAuthorizationProvider.java 61400ca 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/ResourceAuthorizationProvider.java 1e1aa63 
> 
> 
> Diff: https://reviews.apache.org/r/68367/diff/2/
> 
> 
> Testing
> -------
> 
> Add test case that verifies the behavior stated above. All test cases in TestHiveAuthzBindings passed
> 
> 
> Thanks,
> 
> Na Li
> 
>


Re: Review Request 68367: SENTRY-2354: Beeline error message only shows first required permission that failed access check

Posted by kalyan kumar kalvagadda via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68367/#review207508
-----------------------------------------------------------



Why can we just return the requiredInputPrivileges and requiredOutputPrivileges combined when there is an autorization failure?
What is the difference between this and the "lastFailedPrivileges" leanrt in your patch?

- kalyan kumar kalvagadda


On Aug. 17, 2018, 2:56 a.m., Na Li wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68367/
> -----------------------------------------------------------
> 
> (Updated Aug. 17, 2018, 2:56 a.m.)
> 
> 
> Review request for sentry, Arjun Mishra, kalyan kumar kalvagadda, and Sergio Pena.
> 
> 
> Bugs: sentry-2354
>     https://issues.apache.org/jira/browse/sentry-2354
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> When multiple privileges are required on a Hive operation, return the privilege that failed access check and the required privileges not checked yet (they may fail the access check, or may not. We don't check those privileges to avoid unnecessary overhead)
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java 6a1556f 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java 3bbf6fb 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java aecfe5b 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/NoAuthorizationProvider.java 61400ca 
>   sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/ResourceAuthorizationProvider.java 1e1aa63 
> 
> 
> Diff: https://reviews.apache.org/r/68367/diff/2/
> 
> 
> Testing
> -------
> 
> Add test case that verifies the behavior stated above. All test cases in TestHiveAuthzBindings passed
> 
> 
> Thanks,
> 
> Na Li
> 
>


Re: Review Request 68367: SENTRY-2354: Beeline error message only shows first required permission that failed access check

Posted by Na Li via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68367/
-----------------------------------------------------------

(Updated Aug. 17, 2018, 2:56 a.m.)


Review request for sentry, Arjun Mishra, kalyan kumar kalvagadda, and Sergio Pena.


Bugs: sentry-2354
    https://issues.apache.org/jira/browse/sentry-2354


Repository: sentry


Description
-------

When multiple privileges are required on a Hive operation, return the privilege that failed access check and the required privileges not checked yet (they may fail the access check, or may not. We don't check those privileges to avoid unnecessary overhead)


Diffs (updated)
-----

  sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBinding.java 6a1556f 
  sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestHiveAuthzBindings.java 3bbf6fb 
  sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/AuthorizationProvider.java aecfe5b 
  sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/NoAuthorizationProvider.java 61400ca 
  sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/ResourceAuthorizationProvider.java 1e1aa63 


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

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


Testing
-------

Add test case that verifies the behavior stated above. All test cases in TestHiveAuthzBindings passed


Thanks,

Na Li