-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
More issues related to the customer data loaded by js #30498
Comments
Hi @pitbulk. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Also seeing the second issue in 2.3.5-p2.
|
any progress with this issue? I believe it impacts any extension implementing a custom login controller. |
I have several customers of my extension reporting this issue, any ETA for the resolution that I can share with them? @complexthings you made a fantastic job fixing the other related issue, can you by any chance work on this? |
I am one of the customers affected by this issue. There are still a lot of people running Magento 2.3.x. Thank in advance to anyone who can help implement this fix. |
We are also not able to update our customer's system to a secure version, because this issue makes it impossible. :( |
Is there anything we can do in order to get the bugs fixed? |
Also experiencing on 2.4.1. I cannot go live without this fixed. |
@complexthings are you able to help here? |
Can Magento team take any action on this ticket? |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Nice to see that somethings going on here! |
@engcom-Bravo do you have an ETA on when you gonna be able to work on this ticket? |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @pitbulk, We request you to please try to reproduce this issue in Magento 2.4-develop branch and let us know if it is still reproducible for you. Thanks |
Yes, it is reproducible, basically there is a js that belong to the customer-data.js that defines a listener: which invalidates customer data. During external SSO, the normal login flow is not used, not submit click, so that invalidation was never executed, and that generated the issues described here. I was able to simulate in my extension such invalidation via js and I confirmed that approach solved those issues, but a new one appeared on 2.4.X: User guest cart is not merged when SSO login is executed. Basically during the SSO, user is redirected to a 3rd party entity (IdP) and then send back to Magento via a POST. |
Hello @pitbulk, Thanks for the reply! We have tried to reproduce the issue in the clean Magento 2.4-develop instance with the Custom SSO module defined in the main description, but for us, the issue is not reproducible. We have followed the below steps:
Please let us know if we missed anything in order to reproduce it. Thanks |
Instead of accessing directly to DOMAIN/mysso/custom/login, Can you try the following: Prerequisites:
Use case:
Expected:
Current behavior:
|
Hello @pitbulk, Thanks for the reply! We have tried this as well. We can find the added product in the cart as a guest in the logged-in user cart. Thanks |
@magento give me 2.4-develop instance |
Hi @pitbulk. Thank you for your request. I'm working on Magento instance for you. |
Hi @pitbulk, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
Hi @engcom-Hotel, I was not able to reproduce it on 2.4-develop. I reproduced the issue on the official releases: |
Hello @pitbulk, Thanks for the confirmation! That means the has been fixed in develop branch and it will fix in a future release as well. Hence we are closing this issue. Thanks |
Description
In ticket #28428 I reported a bug that affected customer data not retrieved after executing a custom login controller, that was fixed by: #29081
One of my customers reported 2 more different bugs that I consider are related with the customer data loaded by javascript as well
If in the Magento instance exists customers with similar fullname (same lastname for example), the message that appears on the welcome message mismatch the fullname (wrong is loaded). It was verified that the data of the logged user that appears on the profile view is different than the one loaded on the customer data object loaded by js for printing the welcome message
After login, if the user proceeds to checkout, the login popup appear even if the user was previously logged.
Similar than the issue described here: https://github.com/mageplaza/magento-2-social-login/issues/197
On 2.4.1 and 2.4.2 a new issue appeared as well:
Preconditions
My login controller is similar than the PostLogin code
The extension also forces sections to be invalidated after my custom login, by adding a etc/frontend/sections.xml as documented on page-caching
Steps to reproduce
I implemented this simple custom login controller that will allow reproducing the issue:
https://github.com/pitbulk/magento-custom-login
If in a private browser I log in with a user that has the same lastname as others, I experience the issues described.
The issue exists on Magento 2.3.4, 2.3.4-p2, 2.3.5-p1 and 2.4.1
Expected result
Actual result
After enabling a private browser, and log in
Similar to the situation described here: https://github.com/mageplaza/magento-2-social-login/issues/197
The text was updated successfully, but these errors were encountered: