hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r911191 - in /hadoop/mapreduce/trunk: CHANGES.txt src/webapps/job/jobhistory.jsp
Date Wed, 17 Feb 2010 22:10:26 GMT
Author: cdouglas
Date: Wed Feb 17 22:10:25 2010
New Revision: 911191

URL: http://svn.apache.org/viewvc?rev=911191&view=rev
Log:
MAPREDUCE-1378. URL encode link in jobhistory.jsp to avoid errors caused by unescaped characters.
Contributed by E. Sammer

Modified:
    hadoop/mapreduce/trunk/CHANGES.txt
    hadoop/mapreduce/trunk/src/webapps/job/jobhistory.jsp

Modified: hadoop/mapreduce/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/CHANGES.txt?rev=911191&r1=911190&r2=911191&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/CHANGES.txt (original)
+++ hadoop/mapreduce/trunk/CHANGES.txt Wed Feb 17 22:10:25 2010
@@ -358,7 +358,10 @@
 
     MAPREDUCE-1491. The parity files created by the RAID are combined
     using Hadoop Archive Files (HAR).  (Rodrigo Schmidt via dhruba)
- 
+
+    MAPREDUCE-1378. URL encode link in jobhistory.jsp to avoid errors caused by
+    unescaped characters. (E. Sammer via cdouglas)
+
 Release 0.21.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/mapreduce/trunk/src/webapps/job/jobhistory.jsp
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/webapps/job/jobhistory.jsp?rev=911191&r1=911190&r2=911191&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/src/webapps/job/jobhistory.jsp (original)
+++ hadoop/mapreduce/trunk/src/webapps/job/jobhistory.jsp Wed Feb 17 22:10:25 2010
@@ -21,6 +21,7 @@
   contentType="text/html; charset=UTF-8"
   import="java.io.*"
   import="java.util.*"
+  import="java.net.URLEncoder"
   import="org.apache.hadoop.mapred.*"
   import="org.apache.hadoop.util.*"
   import="org.apache.hadoop.fs.*"
@@ -262,7 +263,7 @@
     throws IOException {
       out.print("<tr>"); 
       out.print("<td>" + "<a href=\"jobdetailshistory.jsp?jobid=" + jobId + 
-                "&logFile=" + logFile.toString() + "\">" + jobId + "</a></td>");

+                "&logFile=" + URLEncoder.encode(logFile.toString(), "UTF-8") + "\">"
+ jobId + "</a></td>"); 
       out.print("<td>" + user + "</td>"); 
       out.print("</tr>");
     }



Mime
View raw message