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

Request #14751 Add S3 Object COPY operation
Submitted: 2008-10-06 08:27 UTC
From: aashley Assigned: gauthierm
Status: Closed Package: Services_Amazon_S3 (version 0.2.0)
PHP Version: Irrelevant OS:
Roadmaps: 0.3.0    

 [2008-10-06 08:27 UTC] aashley (Adam Ashley)
Description: ------------ Attached patch implements the COPY operation for S3 Objects as documented at:


 [2008-12-15 21:10 UTC] schmidt (Christian Schmidt)
I finally got around to taking a look at this. Sorry for the delay. Any particular reason you chose to make the function copyFrom() rather than copyTo()? The latter - i.e. call the method on the source rather than on the destination - is more common, I think.
 [2009-05-12 09:54 UTC] aashley (Adam Ashley)
The following patch has been added/updated: Patch Name: Object-copyFrom Revision: 1242104060 URL:
 [2009-05-12 09:56 UTC] aashley (Adam Ashley)
-Package Version: 0.1.0 +Package Version: 0.2.0
I did it as copyFrom as that more closely matches the semantics of the Amazon S3 query as I understood them, but I do see your point of the more common usage being copyTo(). As such I have updated the patch to add copyTo() as an alias and made sure the patch still works against the new 0.2.0 release
 [2009-11-19 03:07 UTC] gauthierm (Michael Gauthier)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: gauthierm -Roadmap Versions: +Roadmap Versions: 0.3.0
 [2009-11-19 03:56 UTC] gauthierm (Michael Gauthier)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Fixed in [290948]. Based on the provided patch, but fixes parsing of the eTag, uses HTTP_Request2 and allows specifying new metadata on the copied object. This depends on a new release of HTTP_Request2 including a fix to Req #16799.