YARN-10318. ApplicationHistory Web UI incorrect column indexing. Contributed by Andras Gyori

This commit is contained in:
Szilard Nemeth 2020-07-01 13:31:35 +02:00
parent d572abb818
commit d88a6eebf2

View File

@ -150,7 +150,8 @@ protected void renderData(Block html) {
TBODY<TABLE<Hamlet>> tbody =
html.table("#apps").thead().tr().th(".id", "ID").th(".user", "User")
.th(".name", "Name").th(".type", "Application Type")
.th(".queue", "Queue").th(".priority", "Application Priority")
.th(".apptag", "Application Tags").th(".queue", "Queue")
.th(".priority", "Application Priority")
.th(".starttime", "StartTime")
.th(".launchtime", "LaunchTime")
.th(".finishtime", "FinishTime")
@ -185,6 +186,10 @@ protected void renderData(Block html) {
.append(
StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(app
.getType())))
.append("\",\"")
.append(
StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(
app.getApplicationTags() == null ? "" : app.getApplicationTags())))
.append("\",\"")
.append(
StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(app