You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by wc...@apache.org on 2022/10/06 11:04:29 UTC
[hbase] branch branch-2.4 updated: HBASE-27407 Fixing check for "description" request param in JMXJsonServlet.java (#4816)
This is an automated email from the ASF dual-hosted git repository.
wchevreuil pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new d5af301ea11 HBASE-27407 Fixing check for "description" request param in JMXJsonServlet.java (#4816)
d5af301ea11 is described below
commit d5af301ea11d48b29f908b89a4231fc7506970d7
Author: Luca Kovács <ko...@gmail.com>
AuthorDate: Thu Oct 6 11:47:30 2022 +0200
HBASE-27407 Fixing check for "description" request param in JMXJsonServlet.java (#4816)
Signed-off-by: Wellington Chevreuil <wc...@apache.org>
---
.../src/main/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 a48bf045239..c68250e8d94 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
@@ -167,8 +167,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");