There is a bug in how session cookies and local storage interact which has the result of exposing customer data to the wrong entities (associating a guest order to a registered customer id, assigning a quote with a customer id to a guest session)
When the session expires or the PHPSESSID is deleted:
When the session expires or the PHPSESSID is deleted:
Hi, thank you for your report. Unfortunately, I could not reproduce the issue as you described it. Please provide the detailed steps we must follow to reproduce this issue
Ok, further investigation shows the critical part is persistent cart needs to be enabled. Steps to reproduce:
Hi, thank you for your update.Yes, this is bug. Internal issue MAGETWO-62132 was created. Specification says: guest checkout is forbidden until old long-term cookie exists
Hello, we are also experiencing this issue on Magento 2.1.3 Enterprise with Persistent Shopping Cart enabled, though we noticed it because it can cause a bug that prevents the guest user from successfully completing checkout.
Steps to Reproduce (assuming Magento is installed and Persistent Cart is already enabled):
Investigation showed that the error is being caused because when the order is placed it is done as a guest user, but the quote object itself is saved with the persisted customer id, as a result the guest billing address details are discarded by the time that the address is validated during the placeOrder operation, resulting in a null email and producing the 'Email has a wrong format' validation warning.
Specifically:
\Magento\Checkout\Model\GuestPaymentInformationManagement::savePaymentInformationAndPlaceOrder
line 79 (call to savePaymentInformation) successfully saves the guest payment information,
line 81 (call to $this->cartManagement->placeOrder
) fails due to a LocalizedException thrown from \Magento\Sales\Model\ResourceModel\Order\Address::_beforeSave
because email is null.
Screen Shot with call stack and showing validation warning:
Screen Shot showing that the quote object's checkout method is guest, but customer attributes are set as if it were for a logged in customer:
This appears to be another symptom of the same problem caused by the previous customer's id and customer group being used on a guest session resulting in quotes that are using the Guest Checkout Process but are assigned to a customer incorrectly.
Any update on this?
@alexgoodey, unfortunately it is still unresolved
Are there any timelines on this resolution?
You understand that this bug can expose customer data to other customers and is therefore quite a serious data protection issue?
Got the same problem with EE 2.1.6.
Steps to Reproduce (Persistent Cart is already enabled):
Any Solution for this one ?
Got the same problem. any workaround?
+1
Is there any update on this issue?
Hi,
We do have the same problem with Magento ver. 2.1.2
I am so surprised that nothing has been done since 2 Dec 2016
If it can help, we have been asking the email/password of a client (buyer) having this issue.
If we connect with his informations on 3 different computers, 2 computers see the right order information and 1 computer see "You have not orders yet" message.
In the database everything seems to be correct, The customer_id is linked to only one order (the right one).
In the admin panel, there is no problem neither.
So the problem seems to be linked only to this path: /sales/order/history/
Regards,
Bernard
We are seeing this as well, but we don't allow guest checkout, and it appears as though other sessions' cart items are being added to the customer's cart (or maybe the customer who is logging in's items are being added to another cart).
Either way, this is a critical bug.
@alexgoodey, thank you for your report.
The issue is already fixed in 2.2.0
@magento-engcom-team : It is not because this is fixed in 2.2.0 that the older versions don't get the solution!
Can you tell us what the solution is, because we are facing this too!
+1
@AlexanderHuyghebaert @david-fiaty-cko
According to our records commit which is fixing the issue is 8db59122f48e343587cc6318b34455661e27d3b4
@magento-engcom-team : thank you for your answer, will look into that and test this
Hi,
we have got the problem on 2.1.6 EE too. We decide to disable "Persistent Shopping Cart" and "Allow Guest Checkout" but the problem is still there one day after.
I think this is because people still have their cookie and local storage even if the features are disabled.
Did you confirm that disabling this two features solve the issue, and does my thinking make sens?
Thank you.
Matthéo.
I'm experiencing a very similar issue where the customer's email address is not present at all in the address object. This only happens with Guest checkout. I get the following error message after clicking the place order button:
We can't save the address: Email has a wrong format
The fix which @magento-engcom-team has provided only applies to Magento 2.2 as that file doesn't exist in Magento 2.1.
@magento-engcom-team Do you know if there is a fix for Magento 2.1 please?
Kind regards,
Tony
My team has observed a number of strange behaviours with Magento ee 2.1.9:
items added to a cart after a user's logged in session has expired, but
without refreshing the product page - this 'guest' quote can't be checked
out due to 'email address can't be saved'.
items added to a cart as a guest do not always get converted corrected to
the user's cart when they user logs in.
items added in previous guest sessions suddenly are added to the user's
cart at login or get added to cart after checkout.
The are no consistent ways to definitively reproduce all of these issues.
The right thing to do is to upgrade to 2.2, but without being able to
reproduce the issues, it's hard to prove that 2.2 fixes them.
On Fri, Nov 3, 2017 at 5:57 AM, tonybrown85 notifications@github.com
wrote:
I'm experiencing a very similar issue where the customer's email address
is not present at all in the address object. This only happens with Guest
checkout. I get the following error message after clicking the place order
button:We can't save the address: Email has a wrong format
The fix which @magento-engcom-team
https://github.com/magento-engcom-team has provided only applies to
Magento 2.2 as that file doesn't exist in Magento 2.1.@magento-engcom-team https://github.com/magento-engcom-team Do you know
if there is a fix for Magento 2.1 please?Kind regards,
Tony—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/magento/magento2/issues/7665#issuecomment-341660677,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABkAvdHIxCbzOddbMh_QGrDhz2wJRL8Zks5syuOKgaJpZM4LCeE6
.
@carylewis Is there any new progress in the issue of email not being saved?
Most helpful comment
Are there any timelines on this resolution?
You understand that this bug can expose customer data to other customers and is therefore quite a serious data protection issue?