Forráskód Böngészése

commit 9c7253728ac65d93352fccbe6e6e03650dca11a7
Author: Jitendra Nath Pandey <jitendra@sufferhome-lm.(none)>
Date: Thu Mar 11 20:17:52 2010 -0800

HDFS-1038 from https://issues.apache.org/jira/secure/attachment/12438570/HDFS-1038-y20.1.patch

+++ b/YAHOO-CHANGES.txt
+ HDFS-1038. In nn_browsedfscontent.jsp fetch delegation token only if
+ security is enabled. (jitendra)
+


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077316 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 éve
szülő
commit
f3992de16f
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      src/webapps/hdfs/nn_browsedfscontent.jsp

+ 4 - 1
src/webapps/hdfs/nn_browsedfscontent.jsp

@@ -41,7 +41,10 @@
                             HttpServletResponse resp,
                             Configuration conf
                            ) throws IOException, InterruptedException {
-    String tokenString = getDelegationToken(nn, request, conf);
+    String tokenString = null;
+    if (UserGroupInformation.isSecurityEnabled()) {
+      tokenString = getDelegationToken(nn, request, conf);
+    }
     FSNamesystem fsn = nn.getNamesystem();
     String datanode = fsn.randomDataNode();
     String redirectLocation;