hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From syuanji...@apache.org
Subject [09/22] hbase git commit: Revert "HBASE-15120 Use appropriate encoding for "filter" field in TaskMonitorTmpl.jamon."
Date Mon, 22 Feb 2016 22:20:37 GMT
Revert "HBASE-15120 Use appropriate encoding for "filter" field in TaskMonitorTmpl.jamon."

This reverts commit 9f8273e7175954cf6dd4bf523b531bf9971749bb.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c7eb72a9
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c7eb72a9
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c7eb72a9

Branch: refs/heads/hbase-12439
Commit: c7eb72a91c54b44208d58eabe646c8a7b034457c
Parents: 4b1acea
Author: Sean Busbey <busbey@cloudera.com>
Authored: Wed Feb 17 23:55:20 2016 -0600
Committer: Sean Busbey <busbey@cloudera.com>
Committed: Wed Feb 17 23:55:20 2016 -0600

----------------------------------------------------------------------
 .../hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon      | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c7eb72a9/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon
b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon
index c3c5d61..b4a5fea 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon
@@ -20,22 +20,12 @@ limitations under the License.
 java.util.*;
 org.apache.hadoop.hbase.monitoring.*;
 org.apache.hadoop.util.StringUtils;
-org.owasp.esapi.ESAPI;
-org.owasp.esapi.errors.EncodingException;
 </%import>
 <%args>
 TaskMonitor taskMonitor = TaskMonitor.get();
 String filter = "general";
 String format = "html";
 </%args>
-<%class>
-    public String encodeFilter() {
-    try {
-    return ESAPI.encoder().encodeForURL(filter);
-    }catch(EncodingException e) {}
-    return ESAPI.encoder().encodeForHTML(filter);
-    }
-</%class>
 <%java>
 List<? extends MonitoredTask> tasks = taskMonitor.getTasks();
 Iterator<? extends MonitoredTask> iter = tasks.iterator();
@@ -72,7 +62,7 @@ boolean first = true;
     <li <%if filter.equals("handler")%>class="active"</%if>><a href="?filter=handler">Show
All RPC Handler Tasks</a></li>
     <li <%if filter.equals("rpc")%>class="active"</%if>><a href="?filter=rpc">Show
Active RPC Calls</a></li>
     <li <%if filter.equals("operation")%>class="active"</%if>><a href="?filter=operation">Show
Client Operations</a></li>
-    <li><a href="?format=json&filter=<% encodeFilter() %>">View as
JSON</a></li>
+    <li><a href="?format=json&filter=<% filter %>">View as JSON</a></li>
   </ul>
   <%if tasks.isEmpty()%>
     <p>No tasks currently running on this node.</p>


Mime
View raw message