[
https://issues.apache.org/jira/browse/FILEUPLOAD-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simone Tripodi updated FILEUPLOAD-169:
--------------------------------------
Fix Version/s: (was: 1.3)
1.2
> 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
> Assignee: Jochen Wiedmann
> Fix For: 1.2
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira