HBASE-12811 [AccessController] NPE while scanning a table with user not having READ permission on the namespace (Ashish)

This commit is contained in:
tedyu 2015-01-08 09:06:12 -08:00
parent ee32eebeab
commit 4ea490b63a
1 changed files with 2 additions and 2 deletions

View File

@ -508,8 +508,8 @@ public class TableAuthManager {
}
if (table == null) table = AccessControlLists.ACL_TABLE_NAME;
// Namespace authorization supercedes table level
if (authorize(getNamespacePermissions(table.getNamespaceAsString()).getGroup(groupName),
table, family, action)) {
String namespace = table.getNamespaceAsString();
if (authorize(getNamespacePermissions(namespace).getGroup(groupName), namespace, action)) {
return true;
}
// Check table level