YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2528785 (new defect)

Reporter


George
Opened: 02/9/10
Last modified: 02/9/10
Status: new
Type: defect

Owner


Allen Rabinovich
Target Release:
Priority: P3 (normal)
Summary: Uploader stops uploading after errors occur
Description:

This ticket corresponds to forum post http://yuilibrary.com/forum/viewtopic.php?p=8715#p8715

Use case reported by developer:

I am using YUI Uploader 2.8 and uploadAll to upload multiple files. Everything works great as long as there are no errors.

While I am currently working on handling exceptions, I am deliberately creating some errors, which you may simply replicate as follows:

- select 10 files from your computer, which will then correctly display in the DataTable
- before calling uploadAll, go into Windows (or whichever your OS) and change the file names of 5 of the files that you have queued in the first step
(now we have 5 "good" files and 5 files that the uploader will not be able to find, which should trigger an error that we catch with the uploadError event)
- SimUploadLimit is not set, so it defaults to 2
- now call uploadAll

...or (simpler yet to replicate)

- use a bogus uploadScriptPath, which should produce an error for all files

Expected behavior:
- I was hoping that the uploader would throw 5 errors AND CONTINUE with the other 5 "good" files

What really happens:
- Uploader stops after it encounters the first 2 errors. Actually, the number of the errors needed to bring uploader to a halt is exactly the number you will set for SimUploadLimit.

Analysis from Allen:

A file is not getting removed from the queue when the error occurs, and so the queue simply gets clogged without any progress.

Type: defect Observed in Version: 2.8.0
Component: Uploader Severity: S3 (normal)
Assigned To: Allen Rabinovich Target Release:
Location: Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information: