[jira] [Created] (FILEUPLOAD-195) Error reading the file size larger than 2 gb

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FILEUPLOAD-195) Error reading the file size larger than 2 gb

ASF GitHub Bot (Jira)
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.2, 1.2.1
            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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (FILEUPLOAD-195) Error reading the file size larger than 2 gb

ASF GitHub Bot (Jira)

    [ 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (FILEUPLOAD-195) Error reading the file size larger than 2 gb

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/FILEUPLOAD-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220848#comment-13220848 ]

Philip Helger commented on FILEUPLOAD-195:
------------------------------------------

Duplicate of FILEUPLOAD-188
               

> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira