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:03:44 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 bbf8bf436 -> 188b7d611


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

Branch: refs/heads/0.98
Commit: 188b7d611c644497ff603989e6ba2bb78076738c
Parents: bbf8bf4
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:59:12 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/188b7d61/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 6fd16cd..644425f 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
@@ -1498,8 +1498,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