Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.2
-
None
Description
FileUploadBase uses a LimitedInputStream to manage the fileSizeMax limit. If the limit is exceeded the raiseError message closes the stream and throws a FileSizeLimitExceededException.
Unfortunately the close method is called with true to close the underlying MultipartStream. This means that additional calls to FileItemIteratorImpl will fail as findNextItem() throws a MalformedStreamException.