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

InputStream created with Streaming API returns EOF on first read() for short files uploaded from FireFox over HTTPS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2, 1.2.1
    • 1.2.1
    • None
    • Windows XP
      Browser: Firefox 1.5.0.11
      Protocol: HTTPS

    Description

      This problem happens only with files shorer then boundary string generated by browser and only with Firefox using HTTPS protocol.
      For some reason in this particular environment inputStream.read() in MultipartStream.ItemInputStream.makeAvailable() reads not whole HTTP response body, but only file content before boundary string.
      I've created a patch fixing this issue.

      Attachments

        1. FILEUPLOAD135.patch
          6 kB
          Alexander Sova
        2. commons-fileupload-1.2-bug-short-file-eof.patch
          3 kB
          Alexander Sova
        3. commons-fileupload-1.1-bug-short-file-eof.patch
          2 kB
          Alexander Sova

        Issue Links

          Activity

            People

              jochen@apache.org Jochen Wiedmann
              bird_owl Alexander Sova
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: