Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
5.3
Description
Hi,
This is a blocker bug, when somebody uploaded a file that triggers a upload exception, all the forms submission trigger exception, and users from other places experience the same problem even he does not upload a file to trigger that, details:
when configuration.add(UploadSymbols.FILESIZE_MAX, "200000"), this triggers following when your uploading file is bigger than 200000:
org.apache.commons.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 200000 bytes.
at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl$FileItemStreamImpl$1.raiseError(FileUploadBase.java:763)
at org.apache.commons.fileupload.util.LimitedInputStream.checkLimit(LimitedInputStream.java:71)
at org.apache.commons.fileupload.util.LimitedInputStream.read(LimitedInputStream.java:128)
after that all the forms without using t:type="upload" in the application triggers:
[INFO] AppModule.TimingFilter Request time: 11 ms
[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Unable to decode multipart encoded request.
java.lang.RuntimeException: Unable to decode multipart encoded request.
at org.apache.tapestry5.upload.internal.services.UploadExceptionFilter.handle(UploadExceptionFilter.java:71)
at $ComponentEventRequestHandler_125e4f941ab23906.handle(Unknown Source)
at org.apache.tapestry5.services.TapestryModule$40.handle(TapestryModule.java:2454)
and forms with t:type="upload", triggers following even file size is less than:
org.apache.commons.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 200000 bytes.
at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl$FileItemStreamImpl$1.raiseError(FileUploadBase.java:763)
at org.apache.commons.fileupload.util.LimitedInputStream.checkLimit(LimitedInputStream.java:71)
at org.apache.commons.fileupload.util.LimitedInputStream.read(LimitedInputStream.java:128)
a discussion can be found here:
http://tapestry.1045711.n5.nabble.com/T5-3-rc3-upload-exception-tc4989904.html