Issue Type: Bug Created: 2010-06-19T11:37:12.000+0000 Last Updated: 2010-10-22T06:46:38.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)
Reporter: Marc Hodgins (mjh_ca) Assignee: Marc Hodgins (mjh_ca) Tags: - Zend_Service_Amazon
Related issues: - ZF-9565
Attachments: - zf10017.patch
All public methods on Zend_Service_Amazon_S3 operating on objects internally call _fixupObjectName() to rawurlencode path parts.
Except, isObjectAvailable() does not do that. So, this code fails:
<pre class="literal"> $objectName = 'mybucket/path with spaces/file.txt'; $s3->putObject('path/to/file.txt', $objectName); // OK, file is uploaded $s3->isObjectAvailable($objectName); // throws Zend_Uri_Exception due to spaces in the object path
The solution is to add a call to _fixupObjectName($object) in isObjectAvailable().
Posted by Marc Hodgins (mjh_ca) on 2010-06-19T12:10:39.000+0000
Patch with test attached.
Posted by Matthew Weier O'Phinney (matthew) on 2010-10-22T06:46:35.000+0000
Applied to trunk and 1.11 release branch. Not sure if we'll do another RC to reflect this change, or simply incorporate it into the final release.
Have you found an issue?
See the Overview section for more details.