Closed TheBadong closed 1 year ago
Hi @TheBadong. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, review the Magento Contributor Assistant documentation.
Add a comment to assign the issue: @magento I am working on this
To learn more about issue processing workflow, refer to the Code Contributions.
Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi, it seems related to this modification: https://github.com/magento/magento2/commit/c16c12bba2a19a4d85d0bdef7b589a80f1a2bff3
Indeed GWS has plugins over the getDefaultStore method and checks if the current admin user is allowed to load it. If the admin user has only permission for a specific website, then it fails and returns null.
Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
This could be fixed like it has been done for the page builder: https://github.com/magento/magento2-page-builder/commit/1e2bcadef49fb6ff5cbc198265e84d26bea74b74
@magento I am working on this
Hi @TheBadong , Thank you for reporting and collaboration. Verified the issue on Magento 2.4-develop enterprise edition but observed different behavior with below steps performed:
Main Admin user account: Kindly check the behavior on Magento 2.4-develop enterprise edition and let us know if we are missing on anything. Thank you.
Hi @TheBadong , We are closing this issue as there has been no latest update on the same. Kindly reopen / create new issue if you are still facing any issues. Thank you.
Please @engcom-November give the link of the proper fix / commit reference. Don't close issues/MRs without words
@engcom-November please?
@engcom-November why is this closed without a solution. This is still an issue on 2.4.5-p1
Hello @thomas-kl1 @jordanvector,
According to the @engcom-November's comments https://github.com/magento/magento2/issues/36434#issuecomment-1314783281, we have tried to reproduce the issue but the issue is not reproducible for us. Hence we have marked this issue as Needs update
and waited for 14 days for a reply.
And as per the process, we have closed this issue because we haven't gotten any reply in 14 days with this https://github.com/magento/magento2/issues/36434#issuecomment-1330665912.
We request you to please go through with this https://github.com/magento/magento2/issues/36434#issuecomment-1314783281 and let us know if we have missed anything.
Thanks
@engcom-Hotel What is missing from the test case, is the
Created admin user role with Role scope set to 2nd store - This user needs to have access ONLY to the 2nd store and not the default store. This issue appears when the admin user does not have access to the default store.
Regardless, this issue was confirmed by Adobe support and solution provided, which fixes the issue for us. ACSD-45399_2.4.4.patch
@jordanvector the fix provided by Adobe support is so much overkill for what is needed to be fixed. Di you try with the changes from https://github.com/magento/magento2/pull/36460/files ?
BTW @engcom-Hotel , the method $this->storeManager->getDefaultStoreView();
may return null by its definition, so https://github.com/magento/magento2/pull/36460 is still needed
@jordanvector the fix provided by Adobe support is so much overkill for what is needed to be fixed. Di you try with the changes from https://github.com/magento/magento2/pull/36460/files ?
BTW @engcom-Hotel , the method
$this->storeManager->getDefaultStoreView();
may return null by its definition, so https://github.com/magento/magento2/pull/36460 is still needed
I did try your PR before this patch, it did not work for me. Using this patch on 2.4.5-p1 did solve it.
Hi @thomas-kl1 , I re-verified the issue again on latest Magento 2.4-develop instance with enterprise edition but the issue is still not reproducible with below steps performed: Steps performed:
Preconditions and environment
Steps to reproduce
Expected result
Admin user can log in as customers belonging to their scope
Actual result
Error pops up "an has occured during application run"
Additional information
Tested on a 2.4.3, works as expected. While debugging, I found that the error occurs when trying to get the default store view in the LAC feature, vendor/magento/module-login-as-customer-admin-ui/Controller/Adminhtml/Login/Login.php->getLoginProceedRedirectUrl(). The admin-gws module adds a plugin on the store collection (vendor/magento/module-admin-gws/Plugin/CollectionFilter.php) that adds a filter to the stores collection, that prevents returning stores that do not belong in the current admin user scope. Which means that sometimes, storeManager->getDefaultStoreView() can return NULL, a behavior thats is not taken into account by the LAC module.
Release note
No response
Triage and priority