sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject sqoop git commit: SQOOP-2116: Sqoop2: RequestContext should use user short name
Date Wed, 18 Feb 2015 01:55:18 GMT
Repository: sqoop
Updated Branches:
  refs/heads/sqoop2 170ab67bb -> f0033ebe5


SQOOP-2116: Sqoop2: RequestContext should use user short name

(Abraham Elmahrek via Jarek Jarcec Cecho)


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

Branch: refs/heads/sqoop2
Commit: f0033ebe534fda439ad7dbfb57ad8f847f7bd898
Parents: 170ab67
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Tue Feb 17 17:54:27 2015 -0800
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Tue Feb 17 17:55:14 2015 -0800

----------------------------------------------------------------------
 server/src/main/java/org/apache/sqoop/server/RequestContext.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/f0033ebe/server/src/main/java/org/apache/sqoop/server/RequestContext.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/sqoop/server/RequestContext.java b/server/src/main/java/org/apache/sqoop/server/RequestContext.java
index c661b71..fe738fc 100644
--- a/server/src/main/java/org/apache/sqoop/server/RequestContext.java
+++ b/server/src/main/java/org/apache/sqoop/server/RequestContext.java
@@ -122,7 +122,7 @@ public class RequestContext {
    */
   public String getUserName() {
     if (AuthenticationManager.getAuthenticationHandler().isSecurityEnabled()) {
-      return HttpUserGroupInformation.get().getUserName();
+      return HttpUserGroupInformation.get().getShortUserName();
     } else {
       return request.getParameter(PseudoAuthenticator.USER_NAME);
     }


Mime
View raw message