ZF-12312: Zend_Service_Rackspace_Files_ObjectList throws exception on empty list
Description
If you try and list an empty container (or pseudo-directory) you get a Zend_Service_Rackspace_Files_Exception: "You must pass an array of data objects".
To reproduce:
$cf = new Zend_Service_Rackspace_Files(,);
$cf->createContainer('empty_container');
$objects = $cf->getObjects('empty_container');
$cf->deleteContainer('empty_container');
print_r($objects);
I think line 71 should check for an array, not an empty object.
Comments
Posted by Matt Kynx (kynx) on 2012-06-30T10:18:51.000+0000
Fix to allow listing of empty containers.
Posted by Rob Allen (rob) on 2012-07-06T10:35:41.000+0000
Fixed on trunk r25016 and release-1.12 r25017