[jboss-cvs] JBossAS SVN: r111170 - in branches/JBPAPP_5_1/varia/src: resources/jmx/html and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 12 10:07:13 EDT 2011


Author: thauser at redhat.com
Date: 2011-04-12 10:07:13 -0400 (Tue, 12 Apr 2011)
New Revision: 111170

Modified:
   branches/JBPAPP_5_1/varia/src/main/org/jboss/jmx/adaptor/html/HtmlAdaptorServlet.java
   branches/JBPAPP_5_1/varia/src/resources/jmx/html/inspectMBean.jsp
Log:
Commit for JBPAPP-6095



Modified: branches/JBPAPP_5_1/varia/src/main/org/jboss/jmx/adaptor/html/HtmlAdaptorServlet.java
===================================================================
--- branches/JBPAPP_5_1/varia/src/main/org/jboss/jmx/adaptor/html/HtmlAdaptorServlet.java	2011-04-12 13:36:14 UTC (rev 111169)
+++ branches/JBPAPP_5_1/varia/src/main/org/jboss/jmx/adaptor/html/HtmlAdaptorServlet.java	2011-04-12 14:07:13 UTC (rev 111170)
@@ -237,7 +237,8 @@
    private void updateAttributes(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException
    {
-      final String name = request.getParameter("name");
+      String reqname = request.getParameter("name");
+      final String name = URLDecoder.decode(reqname, "UTF-8");
       log.trace("updateAttributes, name="+name);
       Enumeration paramNames = request.getParameterNames();
       final HashMap attributes = new HashMap();
@@ -300,7 +301,8 @@
    private void invokeOpByName(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException
    {
-      final String name = request.getParameter("name");
+      String reqname = request.getParameter("name");
+      final String name = URLDecoder.decode(reqname, "UTF-8");
       log.trace("invokeOpByName, name="+name);
       final String[] argTypes = request.getParameterValues("argType");
       final String[] args = getArgs(request);

Modified: branches/JBPAPP_5_1/varia/src/resources/jmx/html/inspectMBean.jsp
===================================================================
--- branches/JBPAPP_5_1/varia/src/resources/jmx/html/inspectMBean.jsp	2011-04-12 13:36:14 UTC (rev 111169)
+++ branches/JBPAPP_5_1/varia/src/resources/jmx/html/inspectMBean.jsp	2011-04-12 14:07:13 UTC (rev 111170)
@@ -191,7 +191,7 @@
 <br/>
 <form method="post" action="HtmlAdaptor">
  <input type="hidden" name="action" value="updateAttributes" />
- <input type="hidden" name="name" value="<%= objectNameString %>" />
+ <input type="hidden" name="name" value="<%= quotedObjectNameString %>" />
  <table width="100%" cellspacing="1" cellpadding="1" border="1" align="center">
   <tr>
    <th>Attribute Name</th>



More information about the jboss-cvs-commits mailing list