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:56:21 GMT
Repository: sqoop
Updated Branches:
  refs/heads/branch-1.99.5 da542488f -> 747c8f832


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

Branch: refs/heads/branch-1.99.5
Commit: 747c8f832224d8163a859dd723b1918bcfb8b96a
Parents: da54248
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:56:07 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/747c8f83/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