MAPREDUCE-3689. RM web UI doesn't handle newline in job name. (Thomas Graves via mahadev) - Merging r1234148 from trunk.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1234149 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mahadev Konar 2012-01-20 21:29:28 +00:00
parent 8539e71bd0
commit f80dc919ad
3 changed files with 5 additions and 2 deletions

View File

@ -472,6 +472,9 @@ Release 0.23.1 - Unreleased
MAPREDUCE-3698. Client cannot talk to the history server in secure mode. MAPREDUCE-3698. Client cannot talk to the history server in secure mode.
(mahadev) (mahadev)
MAPREDUCE-3689. RM web UI doesn't handle newline in job name.
(Thomas Graves via mahadev)
Release 0.23.0 - 2011-11-01 Release 0.23.0 - 2011-11-01
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -40,7 +40,7 @@ public class Jsons {
public static PrintWriter appendProgressBar(PrintWriter out, public static PrintWriter appendProgressBar(PrintWriter out,
float progress) { float progress) {
return appendProgressBar(out, String.format("%.1f", progress * 100)); return appendProgressBar(out, String.format("%.1f", progress));
} }
public static PrintWriter appendSortable(PrintWriter out, Object value) { public static PrintWriter appendSortable(PrintWriter out, Object value) {

View File

@ -66,7 +66,7 @@ class AppsList implements ToJSON {
appendLink(out, appInfo.getAppId(), rc.prefix(), "app", appendLink(out, appInfo.getAppId(), rc.prefix(), "app",
appInfo.getAppId()).append(_SEP). appInfo.getAppId()).append(_SEP).
append(escapeHtml(appInfo.getUser())).append(_SEP). append(escapeHtml(appInfo.getUser())).append(_SEP).
append(escapeHtml(appInfo.getName())).append(_SEP). append(escapeJavaScript(escapeHtml(appInfo.getName()))).append(_SEP).
append(escapeHtml(appInfo.getQueue())).append(_SEP). append(escapeHtml(appInfo.getQueue())).append(_SEP).
append(appInfo.getState()).append(_SEP). append(appInfo.getState()).append(_SEP).
append(appInfo.getFinalStatus()).append(_SEP); append(appInfo.getFinalStatus()).append(_SEP);