Browse Source

MAPREDUCE-5250. Searching for ';' in JobTracker History throws ArrayOutOfBoundException. (kkambatl via tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1489084 13f79535-47bb-0310-9956-ffa450edef68
Alejandro Abdelnur 12 years ago
parent
commit
f1a8670ded
2 changed files with 5 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 2 1
      src/webapps/history/jobhistoryhome.jsp

+ 3 - 0
CHANGES.txt

@@ -61,6 +61,9 @@ Release 1.3.0 - unreleased
     HDFS-4261. Fix bugs in Balaner causing infinite loop and
     TestBalancerWithNodeGroup timeing out.  (Junping Du via szetszwo)
 
+    MAPREDUCE-5250. Searching for ';' in JobTracker History throws 
+    ArrayOutOfBoundException. (kkambatl via tucu)
+
 Release 1.2.1 - Unreleased 
 
   INCOMPATIBLE CHANGES

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

@@ -105,7 +105,8 @@ window.location.href = url;
 
     final String soughtDate = dateSplit.length > 1 ? dateSplit[1] : "";
 
-    final String parts[] = dateSplit[0].split(":");
+    final String parts[] = dateSplit.length >= 1 ? dateSplit[0].split(":")
+                                                 : new String[0];
 
     final String rawUser = (parts.length >= 1)
                             ? parts[0].toLowerCase()