You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Alec Bickerton (JIRA)" <ji...@apache.org> on 2008/04/11 11:16:06 UTC

[jira] Created: (COCOON-2196) Request parameters are lost if the Request is an instance of JSPEngineServletRequest

Request parameters are lost if the Request is an instance of JSPEngineServletRequest
------------------------------------------------------------------------------------

                 Key: COCOON-2196
                 URL: https://issues.apache.org/jira/browse/COCOON-2196
             Project: Cocoon
          Issue Type: Bug
          Components: * Cocoon Core
    Affects Versions: 2.1.9
            Reporter: Alec Bickerton


Our application has many different paths into the busiiness logic. Sometimes a method is called from an sitemap action, other times from a jsp controller and sometimes from a .xsl file.

We  have noticed an issue where calls from JSPs, are unable to access the request parameters which causes a Nullpointer to be thrown.

The code from JSPEngineServletRequest
    public java.lang.StringBuffer getRequestURL() { return null; }
    public java.util.Map getParameterMap() { return null; }

Was there some design decision that means this always has to return null instead of passing the request to the underlying request.

Here's the workaround that's being used by us. It would be nice to not have to do this though.

Map<String, String> params = request.getParameterMap();
//WORK AROUND FOR UN IMPLEMENTED METHOD
if( request instanceof JSPEngineServletRequest )
    params = URLParameters.parse( request.getQueryString() ); // Parse the parameters from the query string using the helper class.

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


[jira] Commented: (COCOON-2196) Request parameters are lost if the Request is an instance of JSPEngineServletRequest

Posted by "Alec Bickerton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679550#action_12679550 ] 

Alec Bickerton commented on COCOON-2196:
----------------------------------------

Bump...

> Request parameters are lost if the Request is an instance of JSPEngineServletRequest
> ------------------------------------------------------------------------------------
>
>                 Key: COCOON-2196
>                 URL: https://issues.apache.org/jira/browse/COCOON-2196
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.1.9
>            Reporter: Alec Bickerton
>
> Our application has many different paths into the busiiness logic. Sometimes a method is called from an sitemap action, other times from a jsp controller and sometimes from a .xsl file.
> We  have noticed an issue where calls from JSPs, are unable to access the request parameters which causes a Nullpointer to be thrown.
> The code from JSPEngineServletRequest
>     public java.lang.StringBuffer getRequestURL() { return null; }
>     public java.util.Map getParameterMap() { return null; }
> Was there some design decision that means this always has to return null instead of passing the request to the underlying request.
> Here's the workaround that's being used by us. It would be nice to not have to do this though.
> Map<String, String> params = request.getParameterMap();
> //WORK AROUND FOR UN IMPLEMENTED METHOD
> if( request instanceof JSPEngineServletRequest )
>     params = URLParameters.parse( request.getQueryString() ); // Parse the parameters from the query string using the helper class.

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


[jira] Issue Comment Edited: (COCOON-2196) Request parameters are lost if the Request is an instance of JSPEngineServletRequest

Posted by "Alec Bickerton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679550#action_12679550 ] 

abickerton_minick edited comment on COCOON-2196 at 3/6/09 2:30 AM:
----------------------------------------------------------------

Bump...

Has this issue been looked at by anyone of the commiters?

      was (Author: abickerton_minick):
    Bump...
  
> Request parameters are lost if the Request is an instance of JSPEngineServletRequest
> ------------------------------------------------------------------------------------
>
>                 Key: COCOON-2196
>                 URL: https://issues.apache.org/jira/browse/COCOON-2196
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.1.9
>            Reporter: Alec Bickerton
>
> Our application has many different paths into the busiiness logic. Sometimes a method is called from an sitemap action, other times from a jsp controller and sometimes from a .xsl file.
> We  have noticed an issue where calls from JSPs, are unable to access the request parameters which causes a Nullpointer to be thrown.
> The code from JSPEngineServletRequest
>     public java.lang.StringBuffer getRequestURL() { return null; }
>     public java.util.Map getParameterMap() { return null; }
> Was there some design decision that means this always has to return null instead of passing the request to the underlying request.
> Here's the workaround that's being used by us. It would be nice to not have to do this though.
> Map<String, String> params = request.getParameterMap();
> //WORK AROUND FOR UN IMPLEMENTED METHOD
> if( request instanceof JSPEngineServletRequest )
>     params = URLParameters.parse( request.getQueryString() ); // Parse the parameters from the query string using the helper class.

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