JSONRPCServiceServlet should use getQueryString() instead of getParameter()
---------------------------------------------------------------------------

                 Key: TUSCANY-1960
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1960
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA JSON-RPC Binding Extension
    Affects Versions: Java-SCA-1.0.1
            Reporter: Brent Daniel
            Priority: Minor


The current JSONRPCServiceServlet uses the following code to handle SMD 
requests:

if (request.getParameter("smd") != null) {
            handleSMDRequest(request, response);
} 

With some web containers, a path such as "/HelloWorldService?smd" will result 
in request.getParameter("smd") returning null since no value is assigned to the 
parameter. A better way to check would be to use getQueryString():

   if ("smd".equalsIgnoreCase(request.getQueryString())) {
            handleSMDRequest(request, response);
   } 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to