Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-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 77D356C2A for ; Tue, 28 Jun 2011 09:37:09 +0000 (UTC) Received: (qmail 98644 invoked by uid 500); 28 Jun 2011 09:37:03 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 96953 invoked by uid 500); 28 Jun 2011 09:36:49 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 95805 invoked by uid 99); 28 Jun 2011 09:36:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 09:36:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 09:36:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 111CD43610C for ; Tue, 28 Jun 2011 09:36:24 +0000 (UTC) Date: Tue, 28 Jun 2011 09:36:24 +0000 (UTC) From: "jagub zhang (JIRA)" To: issues@commons.apache.org Message-ID: <1321055118.1293.1309253784066.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <550990040.3475.1308072227576.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (FILEUPLOAD-195) Error reading the file size larger than 2 gb MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FILEUPLOAD-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056414#comment-13056414 ] jagub zhang commented on FILEUPLOAD-195: ---------------------------------------- I think it is a very old problem about j2ee. commons-upload get total size of upload using ServletRequest#getContentLength() Interface ServletRequest#getContentLength() return a int value. on j2ee javadoc: an integer containing the length of the request body or -1 if the length is not known The max value of int is 2147483647, it is less then 2gb(2147483648). then it return -1 > Error reading the file size larger than 2 gb > -------------------------------------------- > > Key: FILEUPLOAD-195 > URL: https://issues.apache.org/jira/browse/FILEUPLOAD-195 > Project: Commons FileUpload > Issue Type: Bug > Affects Versions: 1.2.1, 1.2.2 > Reporter: Juliano Alves > Priority: Minor > > Error reading bytes from the file sent via servlet when it has a size larger than 2GB, it puts the total file size is negative. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira