-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved orphaned resources detection in backend, fixed #4007 #4022
Conversation
Here's the source of the bug: This is a recursive function iterating the XML tree. On node Since all resources have children, as they need at least a |
The notification is still only shown once (upon login). |
it works for me, I applied the PR, logged in, I see the notice, click and the grid has values that I can remove. logout-login, no alert is shown anymore ;-) |
@kiatng I've no way of testing if, merging this PR, the original situation would still work (I mean before the first round of removing orphaned ACLs) are you confident it still works in any case? |
This PR is an improvement over the last one. But it's always better if more users can test it. There are quite a few people affected, should we wait for a couple more confirmations? |
let's wait a few days and see if somebody jumps in, in case we don't have any more feedback we'll merge it anyway, it is what it is |
I'll merge it as it is now, we've waited a bit, we've 1 green + 2 grays + the PR is by a maintainer so I think it's good to go |
…le`.
Description (*)
This PR fixed the following:
system/acl/orphaned_resources
admin_rule
Related Pull Requests
PR #3647
Fixed Issues (if relevant)
Manual testing scenarios (*)
First, replicate the conditions in issue #4007 by adding
<action>some/action</action>
node in anyadminhtml.xml
file. and refresh the cache.admin_rule
by navigating to admin > System > Permissions > Roles > click to edit a role > Save (there is no need to edit the role). Before this PR, the<action>
would be added. With this PR, they are not added.Comments
The cause of issue #4007 is due to incorrect elements in
adminhtml.xml
in 3rd-party extensions. In the past, before PR #3647, the invalid resources added to tableadmin_rule
remain as is. After PR #3647, it exposes a bug in the core that was hidden since the beginning. This PR fixed the bug but is also tolerant of incorrect elements in theadminhtml.xml
file.