Return-Path: X-Original-To: apmail-struts-dev-archive@www.apache.org Delivered-To: apmail-struts-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34B2FD2FE for ; Mon, 19 Nov 2012 02:49:42 +0000 (UTC) Received: (qmail 44852 invoked by uid 500); 19 Nov 2012 02:49:41 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 44764 invoked by uid 500); 19 Nov 2012 02:49:41 -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 44745 invoked by uid 99); 19 Nov 2012 02:49:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 02:49:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of davelnewton@gmail.com designates 209.85.215.176 as permitted sender) Received: from [209.85.215.176] (HELO mail-ea0-f176.google.com) (209.85.215.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 02:49:35 +0000 Received: by mail-ea0-f176.google.com with SMTP id d13so99892eaa.35 for ; Sun, 18 Nov 2012 18:49:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=3UnQrg00KJf7AdmXOEwiCwIFxnaK2GuBeYUs4ud8JaI=; b=C6zX5pUfvQno+uKx9yi+zlJKaThu6awAz8TSMtaLA6lJVaEaQtTXtAv2QgjSOKT4ji CroA2DAOl+IzvV/fC90LaAdCvyJFITsTb2jcR6IwqZliF7dgLPBqprVNp+cMhJgiew3a 88UztLlUBXx0ygb1/UYv3lf/1Opo5OLSe8gdIXFJDWRsH+8zSZJwSB6m/NOOEwA+Wj7e 4jT7jjihEXQXIBElLXsFXZmqXCEw3leNGh6S9CS2rXjTsSVCgxkOQKfQAZKd3W0oHkf+ bqPweXwSiZwV1DE55llnPdmUu+VIEm5jmJIgrgWrIZ1il/ZITnMEu9COusKCWP0ZWHkd oSHg== MIME-Version: 1.0 Received: by 10.14.194.136 with SMTP id m8mr19327251een.10.1353293355025; Sun, 18 Nov 2012 18:49:15 -0800 (PST) Received: by 10.14.94.69 with HTTP; Sun, 18 Nov 2012 18:49:14 -0800 (PST) In-Reply-To: References: <50A6180A.5020101@apache.org> Date: Sun, 18 Nov 2012 21:49:14 -0500 Message-ID: Subject: Re: processing of multipart request From: Dave Newton To: Struts Developers List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org You file a JIRA ticket for an improvement and attach a patchfile. Dave On Sun, Nov 18, 2012 at 9:35 PM, Fastupload wrote: > > Lukasz, > > thanks for your reply and useful hint. > > I'm very happy to prepare a patch. but I'm not familiar with the developm= ent process in Struts2 project. for example, register an account, check in = patch, etc. any guide about this? > > Fastupload had registered groupId in Sonatype. it encounters 401 errors i= n the deployment. Sonatype engineer find the root cause. He is resolving it= . > > regards, > Link > > On Nov 19, 2012, at 5:46 AM, Lukasz Lenart wrot= e: > >> 2012/11/18 Fastupload : >>> Martin, >>> >>> Maybe there is a way to support any proposal for file upload component.= Struts2 framework defines an interface , only abstraction actions for acc= ess multipart data, maybe named MultipartData. It should have the key metho= ds, >>> isFile(); >>> getHeaders(); >>> getInputStream(); >>> getString(); >>> .. etc.. >>> >>> >>> then, the MultiPartRequest interface adds a few methods, >>> getMultipartData(String ), >>> getMultipartDatas(); >>> >>> for MultiPartRequestWrapper interface adds a few method that read confi= guration that can indicates whether new file or old upload framework. the c= onfiguration should be injected into MultiPartRequestWrapper instance at St= ruts2 bootstrap. >>> >>> The solution can keep current file upload framework work, as well it ha= s a wild range extension for upload components. It needn't change intercept= ors stack. >> >> Super, could you prepare a patch ? > > >> >> >>> Fastupload already provide both temporary file and access multipart da= ta directly way. the second way needs modify struts2 source code. So it's n= ot public. if you're interest in it. please look at >>> https://sourceforge.net/p/fastupload/code/ci/718cbd3ff61eb6b088354237ba= 0f13433d28ef8a/tree/src/main/java/org/apache/struts2/dispatcher/multipart/ >> >> I'm not sure if understand, is it something else instead changing the >> framework ? >> >> BTW I cannot find FastUpload in Maven Central [1], it would be best to >> push to Maven Central first, this can be done with [2] >> >> [1] http://search.maven.org/#search%7Cga%7C1%7Cfastupload >> [2] http://www.sonatype.com/people/2011/10/publishing-your-artifacts-to-= the-central-repository/ >> >> >> Regards >> -- >> =C5=81ukasz >> + 48 606 323 122 http://www.lenart.org.pl/ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> For additional commands, e-mail: dev-help@struts.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > --=20 e: davelnewton@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton b: Bucky Bits g: davelnewton so: Dave Newton --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org