Return-Path: Delivered-To: apmail-portals-jetspeed-dev-archive@www.apache.org Received: (qmail 32283 invoked from network); 24 Nov 2005 22:41:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Nov 2005 22:41:08 -0000 Received: (qmail 74180 invoked by uid 500); 24 Nov 2005 22:41:07 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 73785 invoked by uid 500); 24 Nov 2005 22:41:05 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 73773 invoked by uid 99); 24 Nov 2005 22:41:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2005 14:41:05 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.212.76.62] (HELO server.by008.net) (62.212.76.62) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2005 14:42:36 -0800 Received: from adouma.demon.nl ([82.161.89.203] helo=[192.168.1.101]) by server.by008.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52) id 1EfPlp-0002BF-DL; Thu, 24 Nov 2005 23:40:49 +0100 Message-ID: <4386415F.9020000@douma.nu> Date: Thu, 24 Nov 2005 23:40:31 +0100 From: Ate Douma User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050715) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jetspeed Developers List CC: graffito-dev@incubator.apache.org Subject: Re: Upload file References: <3b728ee90511241207j50986f89xbcde7169700a51f5@mail.gmail.com> In-Reply-To: <3b728ee90511241207j50986f89xbcde7169700a51f5@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.by008.net X-AntiAbuse: Original Domain - portals.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - douma.nu X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Christophe Lombart wrote: > Hi all, > > When uploading a file, ActionRequest.getContentType returns null > instead of multipart/form-data. It was working with J2 M3. Is someone > has similar issue with J2 head ? Christophe, Greg and others, I'm afraid I'm to blame for this :( To get J2 JSR-168 TCK compliant, the HttpServletRequest for an invoked servlet from a portlet, the getContentType() must return null: JST-168 requirement PLT.16.3.3 cxxxii But, because Pluto simply delegates the ActionRequest.getContentType() to the underlying HttpServletRequest it wraps (which is the concerning J2 ServletRequestImpl), this now always returns null. Which isn't correct of course, but seemingly not tested by the TCK... J2 currently passes the TCK. Sorry for this and other similar problems with the same cause. I'm going to devise a different solution still TCK compliant and restore these broken features. I already have thought out one possible solution but it'll take me some time to implement and test again. But you can be assured I'll have this fixed before our J2 2.0-FINAL release (which is planned within 2 weeks!). As I don't have a FileUpload testcase currently available, it would be great you could test this for me once I've committed my solution for this. I'll notify the graffito list when I do. Regards, Ate > > > Thanks, > Christophe > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org > For additional commands, e-mail: jetspeed-dev-help@portals.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-dev-help@portals.apache.org