Metadata
- Source
- FLUID-4033
- Type
- Bug
- Priority
- Blocker
- Status
- Closed
- Resolution
- Fixed
- Assignee
- Colin Clark
- Reporter
- Mike Lam
- Created
2011-01-17T13:52:19.939-0500 - Updated
2011-02-03T21:20:55.394-0500 - Versions
-
- 1.3
- Fixed Versions
-
- 1.3.1
- Component
-
- Uploader
Description
The queue's current batch has yet to be defined causing an error in the uploader. A check is needed for the availability of the file queue's current batch.
To replicate:
1. Set the file upload limit to another value other than 0.
2. Add files
3. Press upload.
Environments
All operating systems and browsers
Attachments
Comments
-
Mike Lam commented
2011-01-18T10:51:41.541-0500 Removed the reference to the file queue's current batch because it causes the uploader to fail if the fileUploadLimit is a value other than 0 (no limit). Also removed support for the fileQueueLimit as this value is no longer needed with the presence of the fileUploadLimit.
-
Colin Clark commented
2011-01-20T12:58:23.923-0500 Code review comments: the fix looks good. In order to commit it to trunk, I think we should have a good solid set of unit tests for addFiles(), including one that checks for various settings of the fileUploadLimit option.
-
Colin Clark commented
2011-01-20T12:59:11.475-0500 I'm reopening this issue so we can write unit tests for the behaviour before committing it to trunk.
-
Mike Lam commented
2011-01-20T22:17:53.594-0500 Same patch as FLUID-4033.patch, but with tests included.
-
Colin Clark commented
2011-01-21T17:58:08.276-0500 Mike, I really like these tests. I think we're missing a few more--we're only testing one fileUploadLimit setting. Can you whip up a few more tests using a variety of fileUploadLimits? Maybe, say, 0, 1, 3, null, and undefined?
-
Mike Lam commented
2011-01-24T10:32:31.550-0500 Added more tests with a variety of different file upload limits
-
Colin Clark commented
2011-01-25T12:49:22.651-0500 Need to tweaks the invocation tracker infrastructure in order to write the kind of tests we want. I'll do that, then bounce this one back to Mike to finish up and create a new patch.
-
Colin Clark commented
2011-01-26T17:06:29.306-0500 Messy, in-progress patch to HTML5SupportTests.js, providing a template for how to test the core behaviour of addFiles(). Tests currently fail due to two errors in the implementation.
-
Mike Lam commented
2011-01-28T15:19:18.153-0500 Finished off Colin's patch with a more test cases.
-
Mike Lam commented
2011-01-28T15:23:11.818-0500 Awaiting code review.
-
Colin Clark commented
2011-02-03T21:20:38.460-0500 I committed a modified version of Mike's patch for this issue to the Project repository at revision 55f86bb406038a481ebc30eb57e803f5c5c87c34.