[ 
https://issues.apache.org/jira/browse/TOMAHAWK-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636549#action_12636549
 ] 

Paul Rivera commented on TOMAHAWK-1305:
---------------------------------------

Oh, let me clear up something first.  commons-fileupload does not read any of 
the parameters if the requestSize exceeds sizeMax.  So right now, it will not 
matter if javax.faces.ViewState comes before the file.

Apparently, there are other projects encountering this problem like struts 
(https://issues.apache.org/struts/browse/STR-2585).  I agree with them that the 
fix should be in commons-fileupload.  They've created 
https://issues.apache.org/jira/browse/FILEUPLOAD-140 which has not gained much 
sympathy.  It was closed with the resolution of using the streaming API.  
Although, I've tried the streaming API and it still does not work.  Streaming 
API also throws the same exception and does not ready any of the parameters.

I've created a new entry (https://issues.apache.org/jira/browse/FILEUPLOAD-168) 
to improve commons-fileupload with a patch uploaded there.  Hopefully, we can 
get better results this time.

> No error when file is uploaded larger than uploadMaxFileSize
> ------------------------------------------------------------
>
>                 Key: TOMAHAWK-1305
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1305
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: File Upload
>    Affects Versions: 1.1.7-SNAPSHOT
>            Reporter: Gertjan van Oosten
>
> When a file is uploaded that is larger than the uploadMaxFileSize, the upload 
> is ignored but no error is shown.
> Reproducible with the fileupload example:
>   http://www.irian.at/myfacesexamples/fileupload.jsf
> Be patient, you need a file larger than 100 MBytes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to