HBASE-13436 Include user name in ADE for scans
This commit is contained in:
parent
3ecd02cb4a
commit
f3b6cc84f2
@ -1535,8 +1535,9 @@ public class AccessController extends BaseMasterAndRegionObserver
|
||||
|
||||
logResult(authResult);
|
||||
if (authorizationEnabled && !authResult.isAllowed()) {
|
||||
throw new AccessDeniedException("Insufficient permissions (table=" + table +
|
||||
", action=READ)");
|
||||
throw new AccessDeniedException("Insufficient permissions for user '"
|
||||
+ (user != null ? user.getShortName() : "null")
|
||||
+ "' (table=" + table + ", action=READ)");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user