You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rob Tompkins (JIRA)" <ji...@apache.org> on 2017/06/03 17:20:04 UTC
[jira] [Closed] (FILEUPLOAD-169) FileItemStreamImpl closes
underlying stream on LimitedInputStream exception
[ https://issues.apache.org/jira/browse/FILEUPLOAD-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Tompkins closed FILEUPLOAD-169.
-----------------------------------
> 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 was sent by Atlassian JIRA
(v6.3.15#6346)