[
https://issues.apache.org/jira/browse/TOMAHAWK-1381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006906#comment-13006906
]
Raymundo Flores M. edited comment on TOMAHAWK-1381 at 3/15/11 1:25 PM:
-----------------------------------------------------------------------
Hello guys,
Same problem here, I can see the fail in the stack trace, but no error messages
on FacesContext...messages.
My scenario is the uploadMaxFileSize = uploadMaxSize with cacheFileSizeErrors =
true, seems that the only option that I have is to check the request parameter
"org.apache.myfaces.custom.fileupload.exception" right?
Thanks!
was (Author: rfmj2ee):
Hello guys,
Same problem here, I can see the fail in the stack trace, but no error messages
on FacesContext...messages.
My scenario is the uploadMaxFileSize = uploadMaxSize with cacheFileSizeErrors =
true, so the only option that I have is to check the request parameter
"org.apache.myfaces.custom.fileupload.exception"???
Thanks!
> HtmlInputFileUpload does not fail gracefully when filesize exceeds
> uploadMaxFileSize web.xml value
> --------------------------------------------------------------------------------------------------
>
> Key: TOMAHAWK-1381
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1381
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: File Upload
> Affects Versions: 1.1.7, 1.1.8
> Reporter: Phillip Webb
> Assignee: Leonardo Uribe
> Fix For: 1.1.9
>
> Attachments: TOMAHAWK-1381-fileupload6.patch, file-upload.patch,
> file-upload2.patch, testUsedForSolveTOMAHAWK1381.zip
>
>
> When uploading a file using the HtmlInputFileUpload that exceeds that
> uploadMaxFileSize web.xml setting the system fails without error and no form
> data is not processed by JSF.
> I think that there are a number of reasons for this:
> - There is a bug in commons-fileupload that prevents failures from being
> handled correctly (see FILEUPLOAD-169)
> - MultipartRequestWrapper calls FileUploads setSizeMax, this is the size for
> the total upload, and not individual files, it should call setFileSizeMax
> - HtmlFileUploadRenderer calls fileUpload.parseRequest(request), this will
> fail if any size exceptions are thrown, it would be better to use
> fileUpload.getItemIterator and catch each exception.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira