Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1960

JSONRPCServiceServlet should use getQueryString() instead of getParameter()

    XMLWordPrintableJSON

Details

    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); }

      Attachments

        Activity

          People

            jsdelfino Jean-Sebastien Delfino
            bdaniel Brent Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: