Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Request #16517 Make object iterator automatically load available properties
Submitted: 2009-08-13 10:50 UTC
From: gauthierm Assigned: gauthierm
Status: Closed Package: Services_Amazon_S3 (version 0.2.0)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 0.3.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 18 - 3 = ?

 
 [2009-08-13 10:50 UTC] gauthierm (Michael Gauthier)
Description: ------------ The S3 API returns extra meta-data about each object during a get on a bucket. Extra data returned is Size, E-Tag, LastModified, StorageClass, Owner. These are described on page 95 of the S3 API manual. It would be nice is Services_Amazon_S3 populated the object properties with these values when iterating over the objects in a bucket. Otherwise, a separate API call needs to be made on each object to get these properties. If you need to get the size of thousands of objects, this is inefficient.

Comments

 [2009-09-06 02:11 UTC] schmidt (Christian Schmidt)
Now $object->eTag, $object->lastModified and $object->size are propagated by Services_Amazon_S3_ObjectIterator. http://svn.php.net/viewvc?view=revision&revision=288090 I haven't decided what to do about Owner yet. I'm not sure what StorageClass is for. According to http://docs.amazonwebservices.com/AmazonS3/latest/index.html?ListingKeysResponse.html it is always STANDARD.
 [2009-11-19 03:08 UTC] gauthierm (Michael Gauthier)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: gauthierm -Roadmap Versions: +Roadmap Versions: 0.3.0
 [2009-11-22 13:00 UTC] gauthierm (Michael Gauthier)
-Status: Assigned +Status: Closed
The StorageClass is not used and is reserved for future use. I'm going to leave both the StorageClass and Owner elements off the returned objects as they are not returned by the GET Object method in the S3 API.