[ 
https://issues.apache.org/jira/browse/SLING-2257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dominique Pfister updated SLING-2257:
-------------------------------------

    Description: 
When doing a file upload with a file size exceeding 2GB:

curl -F "my_file=@a_very_large_file" --header "Content-Type: multipart/related; 
type=application/atom+xml" http://...

the following server code snippet:

<%
org.apache.sling.api.request.RequestParameter fileParam = 
slingRequest.getRequestParameter("my_file");
%>

will report a "null" fileParam. Reason for this is a limitation in 
commons-fileupload-1.1.1 which is embedded in sling-engine: the servlet 
container will report a content length of -1 (as the size is not representable 
in an integer) and FileUploadBase.parseRequest then throws an 
"UnknownSizeException". This was fixed in commons-fileupload-1.2.1.

  was:
When doing a file upload with a file size exceeding 2GB:

curl -F "my_file=@a_very_large_file" --header "Content-Type: multipart/related; 
type=application/atom+xml" http://...

the following server code:

<%@include file="/libs/foundation/global.jsp" %>
<%
org.apache.sling.api.request.RequestParameter fileParam = 
slingRequest.getRequestParameter("my_file");
%>

will report a "null" fileParam. Reason for this is a limitation in 
commons-fileupload-1.1.1 which is embedded in sling-engine: the servlet 
container will report a content length of -1 (as the size is not representable 
in an integer) and FileUploadBase.parseRequest then throws an 
"UnknownSizeException". This was fixed in commons-fileupload-1.2.1.

    
> File uploads > 2GB are not available as request parameters
> ----------------------------------------------------------
>
>                 Key: SLING-2257
>                 URL: https://issues.apache.org/jira/browse/SLING-2257
>             Project: Sling
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: Engine 2.2.0
>            Reporter: Dominique Pfister
>
> When doing a file upload with a file size exceeding 2GB:
> curl -F "my_file=@a_very_large_file" --header "Content-Type: 
> multipart/related; type=application/atom+xml" http://...
> the following server code snippet:
> <%
> org.apache.sling.api.request.RequestParameter fileParam = 
> slingRequest.getRequestParameter("my_file");
> %>
> will report a "null" fileParam. Reason for this is a limitation in 
> commons-fileupload-1.1.1 which is embedded in sling-engine: the servlet 
> container will report a content length of -1 (as the size is not 
> representable in an integer) and FileUploadBase.parseRequest then throws an 
> "UnknownSizeException". This was fixed in commons-fileupload-1.2.1.

--
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

        

Reply via email to