[
https://issues.apache.org/jira/browse/FILEUPLOAD-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phillip Webb updated FILEUPLOAD-169:
------------------------------------
Attachment: FILEUPLOAD-169.patch
Attached patch
> FileItemStreamImpl closes underlying stream on LimitedInputStream exception
> ---------------------------------------------------------------------------
>
> Key: FILEUPLOAD-169
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-169
> Project: Commons FileUpload
> Issue Type: Bug
> Affects Versions: 1.2
> Reporter: Phillip Webb
> Attachments: FILEUPLOAD-169.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.