Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 37225 invoked from network); 17 Jan 2006 18:33:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jan 2006 18:33:11 -0000 Received: (qmail 60241 invoked by uid 500); 17 Jan 2006 18:33:04 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 60196 invoked by uid 500); 17 Jan 2006 18:33:04 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 60184 invoked by uid 99); 17 Jan 2006 18:33:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 10:33:04 -0800 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,MSGID_FROM_MTA_HEADER,NO_REAL_NAME,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of poc0456@aim.com designates 205.188.157.38 as permitted sender) Received: from [205.188.157.38] (HELO imo-d06.mx.aol.com) (205.188.157.38) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 10:33:02 -0800 Received: from poc0456@aim.com by imo-d06.mx.aol.com (mail_out_v38_r6.3.) id t.c8.6eb1c9ff (57879) for ; Tue, 17 Jan 2006 13:32:38 -0500 (EST) Received: from FWM-M45 (fwm-m45.webmail.aol.com [64.12.193.247]) by air-ia04.mail.aol.com (v108_r1_b1.2) with ESMTP id MAILINIA41-e21743cd38462d6; Tue, 17 Jan 2006 13:32:38 -0500 Date: Tue, 17 Jan 2006 13:32:38 -0500 Message-Id: <8C7E9AB8713A255-4C0-C10F@FWM-M45.sysops.aol.com> From: poc0456@aim.com References: <8C7E47401B8D1C4-B3C-98E@mblk-d48.sysops.aol.com> <16d6c6200601102012m538f6ea4u8ff3d377418ec026@mail.gmail.com> Received: from 204.194.75.3 by FWM-M45.sysops.aol.com (64.12.193.247) with HTTP (WebMailUI); Tue, 17 Jan 2006 13:32:38 -0500 X-MB-Message-Source: WebUI X-MB-Message-Type: User In-Reply-To: <16d6c6200601102012m538f6ea4u8ff3d377418ec026@mail.gmail.com> X-Mailer: AIM WebMail 15106 Subject: Re: FileUploadBase.UnknownSizeException Content-Type: multipart/alternative; boundary="--------MailBlocks_8C7E9AB86ED7CC5_4C0_B8A6_FWM-M45.sysops.aol.com" MIME-Version: 1.0 To: commons-user@jakarta.apache.org X-AOL-IP: 64.12.193.247 X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ----------MailBlocks_8C7E9AB86ED7CC5_4C0_B8A6_FWM-M45.sysops.aol.com Content-Type: text/plain; charset="us-ascii" here's an update on this problem: bea.com tells me that their implementation of javax.portlet.ActionRequest.getContentLength() is currently hard-coded to return -1 ... still talking to bea to try to understand why... anybody experience the same thing? i would think that if bea, a leading portal provider, has a problem with this, then it must be a tricky problem to handle?? if any case, i would recommend the following change to the fileupload code: do not check the request content length if the maximum file upload is set to -1 (meaning no maximum) i believe fileupload checks the length in order to then check that the length is not greater than the maximum... this change, along with portlet setting file upload max to no limit (set to -1) in the PortletFileUpload instance, would provide a workaround for portal implementations that return an unspecified request content length thoughts? -- poc -----Original Message----- From: Martin Cooper To: Jakarta Commons Users List Sent: Tue, 10 Jan 2006 20:12:28 -0800 Subject: Re: FileUploadBase.UnknownSizeException On 1/10/06, poc0456@aim.com wrote: > > hello > > i'm working the latest version 1.1 of fileupload but i'm getting the > following error when i run my app (a java portlet) in bea weblogic 8.1, > sp5: > > org.apache.commons.fileupload.FileUploadBase$UnknownSizeException: the > request was rejected because it's size is unknown > > is fileupload not working right? That depends. If the request does not include a content length header, then FileUpload is working correctly. It cannot handle multipart requests unless the content length is specified. There is an existing enhancement request to add support for this case. However, this seldom comes up with browser clients. If the request _does_ include a content length header, then there might be an issue. You should also ensure that the request has not already been parsed by some other code before it reaches your code. -- Martin Cooper -- poc > ________________________________________________________________________ > Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading > spam and email virus protection. > > ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. ----------MailBlocks_8C7E9AB86ED7CC5_4C0_B8A6_FWM-M45.sysops.aol.com--