Fixed double string escaping, corrected type jmx-rest-api
authorhb
Fri, 19 Jan 2018 13:56:36 +0530
branchjmx-rest-api
changeset 56027 81372436b79e
parent 56026 bd531f08d7c7
Fixed double string escaping, corrected type
src/jdk.management.agent/share/conf/management.properties
src/jdk.management.rest/share/classes/jdk/internal/management/remote/rest/http/MBeanCollectionResource.java
--- a/src/jdk.management.agent/share/conf/management.properties	Fri Jan 19 13:46:27 2018 +0530
+++ b/src/jdk.management.agent/share/conf/management.properties	Fri Jan 19 13:56:36 2018 +0530
@@ -32,7 +32,7 @@
 # ################ Rest adapter Port #########################
 #
 # For starting the rest adapter, set the port use the following line
-# com.sun.management.jmxremote.port=<port-number>
+# com.sun.management.jmxremote.rest.port=<port-number>
 
 #####################################################################
 #                   Optional Instrumentation
--- a/src/jdk.management.rest/share/classes/jdk/internal/management/remote/rest/http/MBeanCollectionResource.java	Fri Jan 19 13:46:27 2018 +0530
+++ b/src/jdk.management.rest/share/classes/jdk/internal/management/remote/rest/http/MBeanCollectionResource.java	Fri Jan 19 13:56:36 2018 +0530
@@ -241,9 +241,9 @@
                 String href = path + "/" + objectName.toString();
                 href = HttpUtil.escapeUrl(href);
                 item.put("href", href);
+                String info = HttpUtil.escapeUrl(path + "/" + objectName.toString() + "/info");
+                item.put("info", info);
                 items.add(item);
-                String info = HttpUtil.escapeUrl(href + "/info");
-                item.put("info", info);
             }
 
             Map<String, String> properties = new HashMap<>();