You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by om...@apache.org on 2011/03/04 05:02:47 UTC

svn commit: r1077316 - /hadoop/common/branches/branch-0.20-security-patches/src/webapps/hdfs/nn_browsedfscontent.jsp

Author: omalley
Date: Fri Mar  4 04:02:46 2011
New Revision: 1077316

URL: http://svn.apache.org/viewvc?rev=1077316&view=rev
Log:
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)
    +

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/webapps/hdfs/nn_browsedfscontent.jsp

Modified: hadoop/common/branches/branch-0.20-security-patches/src/webapps/hdfs/nn_browsedfscontent.jsp
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/webapps/hdfs/nn_browsedfscontent.jsp?rev=1077316&r1=1077315&r2=1077316&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/webapps/hdfs/nn_browsedfscontent.jsp (original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/webapps/hdfs/nn_browsedfscontent.jsp Fri Mar  4 04:02:46 2011
@@ -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;