ZF-12319: Endless loop in Zend_Service_Rackspace_Abstract if no user set


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


authenticate() method now throws an exception if called when user property has not been set.

Fixed in trunk (25170) and release-1.12(25171)