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

Issue Type: Bug Created: 2012-07-03T10:56:46.000+0000 Last Updated: 2012-12-22T12:27:04.000+0000 Status: Resolved Fix version(s): Reporter: Matt Kynx (kynx) Assignee: Rob Allen (rob) Tags: - After1.12.0

Related issues: Attachments: - Zend_Service_Rackspace_Abstract.patch


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


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)

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.