You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Simone Tripodi (JIRA)" <ji...@apache.org> on 2013/03/06 19:32:13 UTC

[jira] [Updated] (FILEUPLOAD-157) The ProgressListener isn't always notified about the total number of Items found in a MultipartStream.

     [ https://issues.apache.org/jira/browse/FILEUPLOAD-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simone Tripodi updated FILEUPLOAD-157:
--------------------------------------

    Fix Version/s:     (was: 1.3)
                   1.2.2
    
> The ProgressListener isn't always notified about the total number of Items found in a MultipartStream.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-157
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-157
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: All.
>            Reporter: Paul Spurr
>            Assignee: Jochen Wiedmann
>             Fix For: 1.2.2
>
>         Attachments: MultipartStream-item-listener-notification.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira