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