sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject sqoop git commit: SQOOP-2167: Sqoop2: Change getUserName to getShortUserName in AuthorizationEngine.java
Date Thu, 05 Mar 2015 01:21:54 GMT
Repository: sqoop
Updated Branches:
  refs/heads/sqoop2 3ba01bcf8 -> 6872bebc1


SQOOP-2167: Sqoop2: Change getUserName to getShortUserName in AuthorizationEngine.java

(Richard Zhou via Abraham Elmahrek)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/6872bebc
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/6872bebc
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/6872bebc

Branch: refs/heads/sqoop2
Commit: 6872bebc17909e3361cf3d88645193e5832719fc
Parents: 3ba01bc
Author: Abraham Elmahrek <abe@apache.org>
Authored: Wed Mar 4 17:09:24 2015 -0800
Committer: Abraham Elmahrek <abe@apache.org>
Committed: Wed Mar 4 17:09:24 2015 -0800

----------------------------------------------------------------------
 .../apache/sqoop/security/Authorization/AuthorizationEngine.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/6872bebc/security/src/main/java/org/apache/sqoop/security/Authorization/AuthorizationEngine.java
----------------------------------------------------------------------
diff --git a/security/src/main/java/org/apache/sqoop/security/Authorization/AuthorizationEngine.java
b/security/src/main/java/org/apache/sqoop/security/Authorization/AuthorizationEngine.java
index b84c79b..09a9f38 100644
--- a/security/src/main/java/org/apache/sqoop/security/Authorization/AuthorizationEngine.java
+++ b/security/src/main/java/org/apache/sqoop/security/Authorization/AuthorizationEngine.java
@@ -170,7 +170,7 @@ public class AuthorizationEngine {
   private static void checkPrivilege(MPrivilege... privileges) {
     AuthorizationHandler handler = AuthorizationManager.getAuthorizationHandler();
     UserGroupInformation user = HttpUserGroupInformation.get();
-    String user_name = user == null ? StringUtils.EMPTY : user.getUserName();
+    String user_name = user == null ? StringUtils.EMPTY : user.getShortUserName();
     MPrincipal principal = new MPrincipal(user_name, RoleType.USER.name());
     handler.checkPrivileges(principal, Arrays.asList(privileges));
   }


Mime
View raw message