You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Brent Daniel (JIRA)" <tu...@ws.apache.org> on 2008/01/10 20:03:33 UTC

[jira] Created: (TUSCANY-1960) JSONRPCServiceServlet should use getQueryString() instead of getParameter()

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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-1960) JSONRPCServiceServlet should use getQueryString() instead of getParameter()

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino resolved TUSCANY-1960.
---------------------------------------------

       Resolution: Fixed
    Fix Version/s: Java-SCA-Next

Fixed in r610899.

> 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
>            Assignee: Jean-Sebastien Delfino
>            Priority: Minor
>             Fix For: Java-SCA-Next
>
>
> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-1960) JSONRPCServiceServlet should use getQueryString() instead of getParameter()

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino reassigned TUSCANY-1960:
-----------------------------------------------

    Assignee: Jean-Sebastien Delfino

> 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
>            Assignee: Jean-Sebastien Delfino
>            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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org