Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Java-SCA-1.0.1
-
None
Description
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); }