Issues

ZF-11698: Zend_Acl "Notice: Undefined index: allPrivileges in ...\library\Zend\Acl.php on line 761"

Issue Type: Bug Created: 2011-08-25T13:06:01.000+0000 Last Updated: 2012-05-30T16:47:08.000+0000 Status: Closed Fix version(s): Reporter: Rob Shipley (shipleyr) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Acl

Related issues: Attachments:

Description

I have a class which extends Zend_Acl and sets up a lot of default permissions for my application. There are times when I need to re-set the permissions back to a default and to do so I'm trying to call "$this->removeAllow();" and "$this->removeDeny();".

Both calls seem to output the notice as listed in the title.

Comments

Posted by Adam Lundrigan (adamlundrigan) on 2012-03-06T15:52:51.000+0000

Dropped priority to minor, as there is no loss of functionality just an annoying E_NOTICE.

Posted by Adam Lundrigan (adamlundrigan) on 2012-03-06T16:02:25.000+0000

Could you please provide a short sample which reproduces your issue? I've been using Zend_Acl in situations similar to what you describe and haven't encountered any notices being emitted because allPrivileges is undefined.

Posted by Adam Lundrigan (adamlundrigan) on 2012-05-09T16:20:03.000+0000

Could not reproduce against trunk. Please reopen this ticketif you can provide additional information that would help reproduce the issue.

Posted by Sergio Cabral (sergiocabral) on 2012-05-30T16:47:08.000+0000

I have the same problema.

Look for this example code. Ist result in error quote in top:

$acl = new Zend_Acl(); $acl->addResource('padrao'); $acl->addRole('usuario'); $acl->allow('usuario', 'padrao', 'acessar'); echo $acl->isAllowed('usuario', 'padrao', 'acessar') . "\n
"; $acl->removeAllow(); echo $acl->isAllowed('usuario', 'padrao', 'acessar') . "\n
";

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts