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


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.

Reply via email to