You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by jm...@apache.org on 2015/05/01 17:28:13 UTC

[27/50] [abbrv] hbase git commit: HBASE-13436 Include user name in ADE for scans

HBASE-13436 Include user name in ADE for scans


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/1890bffc
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1890bffc
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1890bffc

Branch: refs/heads/hbase-11339
Commit: 1890bffce3919bfd6fbe143eae99bd3c0bd3b829
Parents: f651206
Author: Srikanth Srungarapu <ss...@cloudera.com>
Authored: Fri Apr 10 13:44:19 2015 -0700
Committer: Srikanth Srungarapu <ss...@cloudera.com>
Committed: Fri Apr 10 13:44:19 2015 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/security/access/AccessController.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/1890bffc/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java
index 7b306c0..03b5e39 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java
@@ -1546,8 +1546,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)");
     }
   }