ZF-10628: Zend_Cloud_StorageService_Adapter_S3 ignores metadata adapter options passed into constructor
Description
I think it makes sense to have default metadata for {{Zend_Cloud_StorageService_Adapter_S3}} which is then used in the {{storeItem()}} call, if no metadata is passed to {{storeItem()}} explicitly.
That way, the {{storeItem()}} call can remain storage service adapter agnostic.
-Looking at http://framework.zend.com/manual/en/… it seems that the 'metadata' option, when passed as part of the options in the constructor, is supposed to affect storeItem(). At the moment this is ignored, however. So setting metadata needs to be done on the storeItem() call explicitly, which breaks the abstraction that Zend_Cloud otherwise provides.-
Comments
Posted by Marcus Welz (lucidix) on 2010-11-02T16:51:28.000+0000
I can't figure out how to attach the patch as a file.
Posted by Ramon Henrique Ornelas (ramon) on 2010-11-02T19:30:02.000+0000
I believe that this issue not is bug and yes an improvement. Because in documentation is mentioned your use only in storeItem(), in others options are mentioned your use in constructor.
Posted by Marcus Welz (lucidix) on 2010-11-02T19:51:31.000+0000
Indeed. I misinterpreted the "Used in" column in the documentation. Improvement it is.
Posted by Matthew Weier O'Phinney (matthew) on 2010-11-04T21:29:20.000+0000
Any chance I can get you to write a test for this change? :)