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:05:55 -08:00
parent 165bbb9e8d
commit e0f706999a
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