ZF-9643: basic Zend_Acl::setRule() doesn't work properly with null arguments on $roles or $resources or $privileges

Issue Type: Bug Created: 2010-04-09T04:23:18.000+0000 Last Updated: 2011-01-21T08:57:36.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Vladimir Ayupov (aveic) Assignee: Ralph Schindler (ralph) Tags: - Zend_Acl

Related issues: - ZF-10649



$acl = new Zend_Acl();



$acl->allow('role','res','privilege'); echo $acl->isAllowed('role','res','privilege'); // 1

$acl->removeAllow('role',null,'privilege'); echo $acl->isAllowed('role','res','privilege'); // again 1, why?

//Same goes with null on $roles or $privileges //So to imitate "null" behavior I had to list all the roles, resources, etc. :(


Posted by Ralph Schindler (ralph) on 2010-07-16T12:48:12.000+0000

Fixed in 22580 & 22581 in trunk, and will be available in next minor release.

Posted by Ralph Schindler (ralph) on 2010-11-12T12:27:43.000+0000

A new patch has beed added to ZF-10649.

I encourage everyone to test it out as it may affect developers who were watching this issue. It is backwards compatible, and fixes a new issue that has arisen from this fix.

Have you found an issue?

See the Overview section for more details.


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

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