If there is a bucket in the S3 account specified on admin/settings/video/filesystem that has a very large number of objects (I have some with tens of thousands) the page will timeout or a memory limit error will occur.
This is happening because of the object count function implemented in the plugins/video_s3/filesystem/video_s3.inc file when you are generating a table of all of the available buckets in the the Amazon S3 Information fieldset. I'm not sure why there needs to be a count of all of the objects here, as it has nothing to do with letting someone know what buckets are available, which appears to be the reason for this table.
I will submit a patch that removes the count and the related table header and data.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | object_count-1340464-1.patch | 1.08 KB | carsonblack |
Comments
Comment #1
carsonblack commentedHere's the patch.
Comment #2
Jorrit commentedI did not know that that count caused problems. I also don't see a reason for it to be there. If I can't find a memory / time efficient way of counting the objects, I will apply the patch you provided. There is one problem with your patch, you should also modify the rows[] statement at line 191.
Comment #3
Jorrit commentedI have applied the patch to 6.x-4.x.
Comment #4
carsonblack commentedThanks! Are you talking about the 'Unsupported Bucket Name' thing? If so, do you want me to roll another patch removing that?
Comment #5
Jorrit commentedYes, that's what I meant. But there is no need for you to create another patch, I have fixed this myself. It should be in todays -dev release.