You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (Assigned) (JIRA)" <ji...@apache.org> on 2011/11/14 01:49:51 UTC

[jira] [Assigned] (SLING-2257) File uploads > 2GB are not available as request parameters

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

Eric Norman reassigned SLING-2257:
----------------------------------

    Assignee: Eric Norman
    
> 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
>            Assignee: Eric Norman
>
> 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