hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ssrungar...@apache.org
Subject hbase git commit: HBASE-13436 Include user name in ADE for scans
Date Fri, 10 Apr 2015 21:11:58 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.0 978538fe5 -> c9a40c33c


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/c9a40c33
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c9a40c33
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c9a40c33

Branch: refs/heads/branch-1.0
Commit: c9a40c33cb7b77b9b865ff834f47478f6ffcad06
Parents: 978538f
Author: Srikanth Srungarapu <ssrungarapu@cloudera.com>
Authored: Fri Apr 10 13:44:19 2015 -0700
Committer: Srikanth Srungarapu <ssrungarapu@cloudera.com>
Committed: Fri Apr 10 14:11:32 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/c9a40c33/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 6d83d7c..4d3407e 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
@@ -1476,8 +1476,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)");
     }
   }
 


Mime
View raw message