struts-issues mailing list archives

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

             Summary: 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 references only the keys and not
the values.
            Reporter: Dermot McGahon
            Priority: Minor


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