Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21EB618702 for ; Fri, 29 May 2015 11:42:27 +0000 (UTC) Received: (qmail 20188 invoked by uid 500); 29 May 2015 11:42:17 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 20150 invoked by uid 500); 29 May 2015 11:42:17 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 20140 invoked by uid 99); 29 May 2015 11:42:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2015 11:42:17 +0000 Date: Fri, 29 May 2015 11:42:17 +0000 (UTC) From: "Dermot McGahon (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (WW-4508) DefaultActionMapperTest failures due to invalid mock type for parameterMap MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 and not Map 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)