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 20:45:05 GMT
Repository: hbase
Updated Branches:
  refs/heads/master f6512065c -> 1890bffce


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/master
Commit: 1890bffce3919bfd6fbe143eae99bd3c0bd3b829
Parents: f651206
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 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)");
     }
   }
 


Mime
View raw message