[ 
https://issues.apache.org/struts/browse/WW-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41434
 ] 

James Holmes commented on WW-1960:
----------------------------------

The best way to provide a fix would be to make the changes to the Struts 2 
source code on your machine and test them. Once you have the changes working, 
you can post the changes here to this ticket. Those changes can be in the form 
of a Unix diff/patch file or you can simply paste the changes here as a comment 
if it's a small change.

One of the committers can then commit the changes to the Struts 2 subversion 
source repository and they will make it into an upcoming release.



> action tag violates ParameterAware contract
> -------------------------------------------
>
>                 Key: WW-1960
>                 URL: https://issues.apache.org/struts/browse/WW-1960
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: linux,jdk1.5,tomcat5.5
>            Reporter: David Mansfield
>            Priority: Minor
>
> the javadoc for ParameterAware states that the values of the map are all 
> java.lang.String[], in other words it is a Map<String,String[]>.  Indeed, 
> when hitting an action via a 'genuine' http request, this is true.  However, 
> when hitting the action via the action tag, the values in the map are String, 
> not String[].  The bug appears to be possibly line 177 in ActionComponent:
> 176:        if (parameters != null) {
> 177:            newParams.putAll(parameters);
> 178:        }
> The parameters of the component are Map<String,String> and therefore cannot 
> be combined directly into the ActionContext.getParameters map.

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

Reply via email to