struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4508) DefaultActionMapperTest failures due to invalid mock type for parameterMap
Date Fri, 29 May 2015 11:44:17 GMT

     [ https://issues.apache.org/jira/browse/WW-4508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-4508:
------------------------------
    Fix Version/s: 2.5

> DefaultActionMapperTest failures due to invalid mock type for parameterMap
> --------------------------------------------------------------------------
>
>                 Key: WW-4508
>                 URL: https://issues.apache.org/jira/browse/WW-4508
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Unit Tests
>    Affects Versions: 2.3.24
>         Environment: The JVM where this was encountered is the Waratek JVM (www.waratek.com)
which contains support for prevention of SQL Injection attacks. This bug is not reproducible
using OpenJDK or any other JVM due to the fact the tests reference only the keys and not the
values.
>            Reporter: Dermot McGahon
>            Priority: Minor
>             Fix For: 2.5
>
>
> All of the tests which use StrutsMockHttpServletRequest are setting up incorrectly typed
parameterMaps in the mock.
> A parameterMap should be typed java.util.Map<java.lang.String,java.lang.String[]>
and not Map<String,String> as the tests are doing.
> See:
> http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html
> http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#getParameterMap%28%29



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message