You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Paul Spurr (JIRA)" <ji...@apache.org> on 2008/05/23 12:25:55 UTC
[jira] Created: (FILEUPLOAD-157) The ProgressListener isn't always
notified about the total number of Items found in a MultipartStream.
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
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.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (FILEUPLOAD-157) The ProgressListener isn't always
notified about the total number of Items found in a MultipartStream.
Posted by "Jochen Wiedmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FILEUPLOAD-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jochen Wiedmann resolved FILEUPLOAD-157.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.3
Assignee: Jochen Wiedmann
Applied, thank you!
> 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.3
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FILEUPLOAD-157) The ProgressListener isn't always
notified about the total number of Items found in a MultipartStream.
Posted by "Paul Spurr (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FILEUPLOAD-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Spurr updated FILEUPLOAD-157:
----------------------------------
Attachment: MultipartStream-item-listener-notification.patch
Patch file
> 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
> 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.
-
You can reply to this email to add a comment to the issue online.