Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-169

FileItemStreamImpl closes underlying stream on LimitedInputStream exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.2
    • 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.

      Attachments

        1. FILEUPLOAD-169.patch
          0.8 kB
          Phillip Webb

        Activity

          People

            jochen@apache.org Jochen Wiedmann
            philw Phillip Webb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: