HDFS-1153. dfsnodelist.jsp should handle invalid input parameters. Contributed by Ravi Phulari
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1339706 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dcf84707ab
commit
6d71407582
@ -211,6 +211,9 @@ Release 2.0.1-alpha - UNRELEASED
|
|||||||
HDFS-3433. GetImageServlet should allow administrative requestors when
|
HDFS-3433. GetImageServlet should allow administrative requestors when
|
||||||
security is enabled. (atm)
|
security is enabled. (atm)
|
||||||
|
|
||||||
|
HDFS-1153. dfsnodelist.jsp should handle invalid input parameters.
|
||||||
|
(Ravi Phulari via eli)
|
||||||
|
|
||||||
Release 2.0.0-alpha - UNRELEASED
|
Release 2.0.0-alpha - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -587,6 +587,10 @@ void generateNodesList(ServletContext context, JspWriter out,
|
|||||||
|
|
||||||
whatNodes = request.getParameter("whatNodes"); // show only live or only
|
whatNodes = request.getParameter("whatNodes"); // show only live or only
|
||||||
// dead nodes
|
// dead nodes
|
||||||
|
if (null == whatNodes || whatNodes.isEmpty()) {
|
||||||
|
out.print("Invalid input");
|
||||||
|
return;
|
||||||
|
}
|
||||||
sorterField = request.getParameter("sorter/field");
|
sorterField = request.getParameter("sorter/field");
|
||||||
sorterOrder = request.getParameter("sorter/order");
|
sorterOrder = request.getParameter("sorter/order");
|
||||||
if (sorterField == null)
|
if (sorterField == null)
|
||||||
@ -714,6 +718,8 @@ void generateNodesList(ServletContext context, JspWriter out,
|
|||||||
}
|
}
|
||||||
out.print("</table>\n");
|
out.print("</table>\n");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
out.print("Invalid input");
|
||||||
}
|
}
|
||||||
out.print("</div>");
|
out.print("</div>");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user