You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/01/19 23:49:11 UTC

DO NOT REPLY [Bug 38323] New: - [fileupload] FileUpload 2 gig File Size Limitation

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38323>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38323

           Summary: [fileupload] FileUpload 2 gig File Size Limitation
           Product: Commons
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: File Upload
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: saden1@gmail.com
                CC: saden1@gmail.com


Looking through the FileUpload 1.1 code it looks like there is a limitation on
how big of a file can be received and processed. If you look at the readBodyData
method of the MultipartStream class you'll notice that an integer is being used
to keep a tally of the total number of bytes received when processing an
encapsulation. I recommend changing the type of the variable "total" to a long
in the readBodyData and wherever a tally of bytes received is done.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38323] - [fileupload] FileUpload 2 gig File Size Limitation

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38323>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38323





------- Additional Comments From saden1@gmail.com  2006-01-20 00:20 -------
Created an attachment (id=17461)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17461&action=view)
total variable type changed from int to long

Here is a patch that that resolves the limitation (I think). This patch simply
changes type of the total variable from int to long.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38323] - [fileupload] FileUpload 2 gig File Size Limitation

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38323>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38323





------- Additional Comments From saden1@gmail.com  2006-01-20 00:31 -------
(In reply to comment #1)
> It's not quite that simple. The content length provided by the container (either
> servlet or portlet) is also an integer, so there is a limitation in the
> containers themselves. (See Request.getContentLength and
> ActionRequest.getContentLength.)

Wow, I guess I never noticed that that Request.getContentLength returns an
integer. Still, the spec allows for getContentLength to return -1 (unknown
length) therefore the length of the content sent can be greater than 2 gig.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38323] - [fileupload] FileUpload 2 gig File Size Limitation

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38323>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38323





------- Additional Comments From martinc@apache.org  2006-01-20 00:01 -------
It's not quite that simple. The content length provided by the container (either
servlet or portlet) is also an integer, so there is a limitation in the
containers themselves. (See Request.getContentLength and
ActionRequest.getContentLength.)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org