-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
After upgrade to v20.7.0 I got some alert on Admin Login #4007
Comments
confirmed. |
@kiatng true, it happens only right after login, if you refresh the alert disappears |
@fballiano |
I know, but it was important to tell that to the original author of the PR for debug |
I did a test on the latest next branch: adminhtml.xml, add a Test resource: <config>
<acl>
<resources>
<admin>
<children>
<celera_crib translate="label" module="crib">
<title>Celera Modules</title>
<children>
<crib translate="title">
<title>Crib Services</title>
<sort_order>1000</sort_order>
</crib>
<test translate="title">
<title>Test</title>
<sort_order>1100</sort_order>
</test>
</children>
</celera_crib> Then in backend > System > Roles > select a role and toggle the checkbox of the resource > Save Logout from backend. Changed resource now to Test2 in adminhtml.xml <test2 translate="title">
<title>Test2</title>
<sort_order>1100</sort_order>
</test2> Login to backend, notice of orphaned resource Test: Click on the link, the orphaned resource is listed: I do not know why the grid can be empty. I will think about it. |
Check the exception log file, maybe something is in there. |
@fballiano Could it be cache? Can you try refresh it? |
@kiatng no it's been reset many times |
@fballiano Need your help: what is the output array of |
Just wanted to confirm the problem as well. |
That's because an orphaned resource may have several entries in the table Because I cannot replicate the annoying message and empty grid, I am stumped why this happen to some people. I am still working on it trying to pin point the source. @fballiano is helping me on this. I welcome any lead or theory. |
With @fballiano help, I finally managed to replicate the bug. Please allow a few days to find the cause. The bug is that the notice about orphaned resources is wrong. However, I think the empty grid is correct, so there is no danger of wrongly deleting resources. |
The cause is actually an additional <config>
<!-- ... -->
<acl> <!-- UNDER THIS ACL NODE -->
<resources>
<admin>
<children>
<storepickup module="storepickup" translate="title">
<title>Store Pickup</title>
<sort_order>70</sort_order>
<children>
<stores module="storepickup" translate="title">
<title>Manage Stores</title>
<sort_order>0</sort_order>
<action>storepickup/adminhtml_store</action> <!-- REMOVE THIS LINE -->
</stores> The
It's a bit more complicated than I thought. The In admin > System > Permissions > Roles > edit a role, the resources are correctly listed without the |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: