Pārlūkot izejas kodu

HADOOP-7827 HDFS-2588 MAPREDUCE-3464. jsp pages missing DOCTYPE. Contributed by Dave Vronay.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-205@1205530 13f79535-47bb-0310-9956-ffa450edef68
Matthew Foley 13 gadi atpakaļ
vecāks
revīzija
cebadc32cb

+ 2 - 0
CHANGES.txt

@@ -46,6 +46,8 @@ Release 0.20.205.1 - unreleased
 
   BUG FIXES
 
+    HADOOP-7827. jsp pages missing DOCTYPE. (Dave Vronay via mattf)
+
     HADOOP-7815. Fixed configuring map memory mb in hadoop-setup-conf.sh. 
     (Ramya Sunil)
  

+ 1 - 0
src/webapps/datanode/browseBlock.jsp

@@ -407,6 +407,7 @@
   }
 
 %>
+<!DOCTYPE html>
 <html>
 <head>
 <%JspHelper.createTitle(out, request, request.getParameter("filename")); %>

+ 1 - 0
src/webapps/datanode/browseDirectory.jsp

@@ -163,6 +163,7 @@
 
 %>
 
+<!DOCTYPE html>
 <html>
 <head>
 <style type=text/css>

+ 1 - 0
src/webapps/datanode/tail.jsp

@@ -118,6 +118,7 @@
 
 
 
+<!DOCTYPE html>
 <html>
 <head>
 <%JspHelper.createTitle(out, request, request.getParameter("filename")); %>

+ 1 - 0
src/webapps/hdfs/dfshealth.jsp

@@ -238,6 +238,7 @@
   String namenodeLabel = nn.getNameNodeAddress().getHostName() + ":" + nn.getNameNodeAddress().getPort();
 %>
 
+<!DOCTYPE html>
 <html>
 
 <link rel="stylesheet" type="text/css" href="/static/hadoop.css">

+ 1 - 0
src/webapps/hdfs/dfsnodelist.jsp

@@ -313,6 +313,7 @@ FSNamesystem fsn = nn.getNamesystem();
 String namenodeLabel = nn.getNameNodeAddress().getHostName() + ":" + nn.getNameNodeAddress().getPort();
 %>
 
+<!DOCTYPE html>
 <html>
 
 <link rel="stylesheet" type="text/css" href="/static/hadoop.css">

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

@@ -72,6 +72,7 @@
   }
 %>
 
+<!DOCTYPE html>
 <html>
 
 <title></title>

+ 1 - 0
src/webapps/history/analysejobhistory.jsp

@@ -16,6 +16,7 @@
 %>
 <%!	private static final long serialVersionUID = 1L;
 %>
+<!DOCTYPE html>
 <html><body>
 <%
   String logFile = request.getParameter("logFile");

+ 1 - 0
src/webapps/history/job_authorization_error.jsp

@@ -28,6 +28,7 @@
 <%!	private static final long serialVersionUID = 1L;
 %>
 
+<!DOCTYPE html>
 <html>
 <head>
 <title>Error: User cannot access this Job</title>

+ 1 - 0
src/webapps/history/jobconf_history.jsp

@@ -27,6 +27,7 @@
 
 %>
   
+<!DOCTYPE html>
 <html>
 
 <title>Job Configuration: JobId - <%= jobId %></title>

+ 1 - 0
src/webapps/history/jobdetailshistory.jsp

@@ -35,6 +35,7 @@
   	String encodedLogFileName = JobHistory.JobInfo.encodeJobHistoryFilePath(logFile);
 %>
 
+<!DOCTYPE html>
 <html>
 <head>
 <title>Hadoop Job <%=jobid%> on History Viewer</title>

+ 1 - 0
src/webapps/history/jobhistoryhome.jsp

@@ -33,6 +33,7 @@
 <%!private static SimpleDateFormat dateFormat = new SimpleDateFormat(
       "d/MM HH:mm:ss");%>
 <%!private static final long serialVersionUID = 1L;%>
+<!DOCTYPE html>
 <html>
 <head>
 <script type="text/JavaScript">

+ 1 - 0
src/webapps/history/jobtaskshistory.jsp

@@ -35,6 +35,7 @@
   }
   Map<String, JobHistory.Task> tasks = job.getAllTasks(); 
 %>
+<!DOCTYPE html>
 <html>
 <body>
 <h2><%=taskStatus%> <%=taskType %> task list for <a href="jobdetailshistory.jsp?logFile=<%=encodedLogFileName%>"><%=jobid %> </a></h2>

+ 1 - 0
src/webapps/history/legacyjobhistory.jsp

@@ -35,6 +35,7 @@
 %>
 <%!	private static final long serialVersionUID = 1L;
 %>
+<!DOCTYPE html>
 <html>
 <head>
 <script type="text/JavaScript">

+ 1 - 0
src/webapps/history/taskdetailshistory.jsp

@@ -35,6 +35,7 @@
   JobHistory.Task task = job.getAllTasks().get(tipid); 
   String type = task.get(Keys.TASK_TYPE);
 %>
+<!DOCTYPE html>
 <html>
 <body>
 <h2><%=tipid %> attempts for <a href="jobdetailshistory.jsp?logFile=<%=encodedLogFileName%>"> <%=jobid %> </a></h2>

+ 1 - 0
src/webapps/history/taskstatshistory.jsp

@@ -62,6 +62,7 @@
     Counters.fromEscapedCompactString(attempt.get(Keys.COUNTERS));
 %>
 
+<!DOCTYPE html>
 <html>
   <head>
     <title>Counters for <%=attemptid%></title>

+ 1 - 0
src/webapps/job/job_authorization_error.jsp

@@ -28,6 +28,7 @@
 <%!	private static final long serialVersionUID = 1L;
 %>
 
+<!DOCTYPE html>
 <html>
 <head>
 <title>Error: User cannot access this Job</title>

+ 1 - 0
src/webapps/job/jobblacklistedtrackers.jsp

@@ -54,6 +54,7 @@
     }
 %>
 
+<!DOCTYPE html>
 <html>
 <title>Hadoop <%=jobId%>'s black-listed tasktrackers</title>
 <body>

+ 1 - 0
src/webapps/job/jobconf.jsp

@@ -21,6 +21,7 @@
   }
 %>
   
+<!DOCTYPE html>
 <html>
 
 <title>Job Configuration: JobId - <%= jobId %></title>

+ 1 - 0
src/webapps/job/jobdetails.jsp

@@ -246,6 +246,7 @@
 %>
 
 <%@page import="org.apache.hadoop.mapred.TaskGraphServlet"%>
+<!DOCTYPE html>
 <html>
 <head>
   <% 

+ 1 - 0
src/webapps/job/jobfailures.jsp

@@ -165,6 +165,7 @@
     String cause = request.getParameter("cause");
 %>
 
+<!DOCTYPE html>
 <html>
 <title>Hadoop <%=jobId%> failures on <%=trackerName%></title>
 <body>

+ 1 - 0
src/webapps/job/jobqueue_details.jsp

@@ -22,6 +22,7 @@ private static final long serialVersionUID = 526456771152222127L;
   Collection<JobInProgress> jobs = scheduler.getJobs(queueName);
   JobQueueInfo schedInfo = tracker.getQueueInfo(queueName);
 %>
+<!DOCTYPE html>
 <html>
 <head>
 <title>Queue details for

+ 1 - 0
src/webapps/job/jobtasks.jsp

@@ -55,6 +55,7 @@
   }
 %>
 
+<!DOCTYPE html>
 <html>
   <head>
     <title>Hadoop <%=type%> task list for <%=jobid%> on <%=trackerName%></title>

+ 1 - 0
src/webapps/job/jobtracker.jsp

@@ -77,6 +77,7 @@
   }%>
 
 
+<!DOCTYPE html>
 <html>
 <head>
 <title><%= trackerName %> Hadoop Map/Reduce Administration</title>

+ 1 - 0
src/webapps/job/machines.jsp

@@ -150,6 +150,7 @@
   }
 %>
 
+<!DOCTYPE html>
 <html>
 
 <title><%=trackerName%> Hadoop Machine List</title>

+ 1 - 0
src/webapps/job/taskdetails.jsp

@@ -145,6 +145,7 @@
 %>
 
 
+<!DOCTYPE html>
 <html>
 <head>
   <link rel="stylesheet" type="text/css" href="/static/hadoop.css">

+ 1 - 0
src/webapps/job/taskstats.jsp

@@ -52,6 +52,7 @@
   }
 %>
 
+<!DOCTYPE html>
 <html>
   <head>
     <title>Counters for <%=attemptid%></title>

+ 1 - 0
src/webapps/task/tasktracker.jsp

@@ -16,6 +16,7 @@
   String trackerName = tracker.getName();
 %>
 
+<!DOCTYPE html>
 <html>
 
 <title><%= trackerName %> Task Tracker Status</title>