From 94ed02d7ed2d1d609a386bec3b96d8c1e1e2cf9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20Kov=C3=A1cs?= Date: Thu, 6 Oct 2022 11:47:30 +0200 Subject: [PATCH] HBASE-27407 Fixing check for "description" request param in JMXJsonServlet.java (#4816) Signed-off-by: Wellington Chevreuil --- .../java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hbase-http/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java b/hbase-http/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java index db7c846fde5..d393187b1e4 100644 --- a/hbase-http/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java +++ b/hbase-http/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java @@ -171,8 +171,7 @@ public class JMXJsonServlet extends HttpServlet { } beanWriter = this.jsonBeanWriter.open(writer); // Should we output description on each attribute and bean? - String tmpStr = request.getParameter(INCLUDE_DESCRIPTION); - boolean description = tmpStr != null && tmpStr.length() > 0; + boolean description = "true".equals(request.getParameter(INCLUDE_DESCRIPTION)); // query per mbean attribute String getmethod = request.getParameter("get");