Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 10055 invoked from network); 13 Oct 2009 23:58:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Oct 2009 23:58:58 -0000 Received: (qmail 14004 invoked by uid 500); 13 Oct 2009 23:58:57 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 13951 invoked by uid 500); 13 Oct 2009 23:58:57 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 13941 invoked by uid 99); 13 Oct 2009 23:58:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 23:58:57 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 23:58:55 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MxrGE-0000ow-CG for dev@struts.apache.org; Tue, 13 Oct 2009 16:58:34 -0700 Message-ID: <25883021.post@talk.nabble.com> Date: Tue, 13 Oct 2009 16:58:34 -0700 (PDT) From: Alex Siman To: dev@struts.apache.org Subject: Bug: Struts 2.1.8 and "multipart/form-data" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: aleksandr.siman@gmail.com If form uses [enctype="multipart/form-data"] then Struts2 stores request params in session (I suppose, at least not in request). And with every form submit Struts2 prepend prev value of parameter to a new one separated by a comma. Example: update.jsp ---------------------- ... ... ---------------------- Suppose we have submited form multiple times: 1) set "desc" to "1", then "desc" will be "1". 2) set "desc" to "2", then "desc" will be "1, 2". 3) set "desc" to "3", then "desc" will be "1, 2, 3". ... n) set "desc" to "n", then "desc" will be "1, 2, 3 ... , n-1, n". This issue appeared after I upgraded to Struts 2.1.8: - ognl-2.7.3.jar - struts2-core-2.1.8.jar - struts2-fileupload-plugin-2.1.7-SNAPSHOT.jar - xwork-core-2.1.6.jar Is this bug or feature? How to fix this? -- View this message in context: http://www.nabble.com/Bug%3A-Struts-2.1.8-and-%22multipart-form-data%22-tp25883021p25883021.html Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org