HBASE-12811 [AccessController] NPE while scanning a table with user not having READ permission on the namespace (Ashish)
This commit is contained in:
parent
165bbb9e8d
commit
e0f706999a
|
@ -508,8 +508,8 @@ public class TableAuthManager {
|
||||||
}
|
}
|
||||||
if (table == null) table = AccessControlLists.ACL_TABLE_NAME;
|
if (table == null) table = AccessControlLists.ACL_TABLE_NAME;
|
||||||
// Namespace authorization supercedes table level
|
// Namespace authorization supercedes table level
|
||||||
if (authorize(getNamespacePermissions(table.getNamespaceAsString()).getGroup(groupName),
|
String namespace = table.getNamespaceAsString();
|
||||||
table, family, action)) {
|
if (authorize(getNamespacePermissions(namespace).getGroup(groupName), namespace, action)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Check table level
|
// Check table level
|
||||||
|
|
Loading…
Reference in New Issue