ZF-12319: Endless loop in Zend_Service_Rackspace_Abstract if no user set
Description
If you set the $user parameter to an empty() value in the constructor for a subclass of Zend_Service_Rackspace_Abstract you get stuck in an endless loop, as it repeatedly calls authenticate().
Steps to reproduce:
$cf = new Zend_Service_Rackspace_Files(null, null); $containers = $cf->getContainers();
Expected result:
A catchable exception
Actual result:
Fatal error: Maximum function nesting level of '100' reached, aborting! in /Users/matt/www/httpd/1_8_3/library/Zend/Service/Rackspace/Abstract.php on line 260
Comments
Posted by Matt Kynx (kynx) on 2012-07-03T11:22:19.000+0000
authenticate() method now throws an exception if called when user property has not been set.
Posted by Rob Allen (rob) on 2012-12-22T12:27:04.000+0000
Fixed in trunk (25170) and release-1.12(25171)