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

The ProgressListener isn't always notified about the total number of Items found in a MultipartStream.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.2.2
    • None
    • All.

    Description

      A ProgressListener doesn't always get informed when a new part is found by the MultipartStream. This is most easily replicated by uploading small files (a few bytes in size). The listener will be correctly informed about the content length and the total bytes uploaded but it will be told that it is currently working on item 0. This causes an issue when this count is used to detect a form has been submitted with no file.

      This has a simple fix to the org.apache.commons.fileupload.MultipartStream (patch will be attached), when the items count is incremented the listener needs to be notified.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jochen@apache.org Jochen Wiedmann
            jdid Paul Spurr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment