-
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
Checkout error for registered customer with cache_id_prefix on multi server setup #21842
Comments
Hi @david-fuehr. 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. @david-fuehr do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Github issue: magento#21842 In customer and customer_address validation context the validator factory no longer caches absolute file paths for the validation.xml files (currently two file) as the file content is evaluated later in the filesystem directly and the file paths may not be correct in a multi server setup with shared cache (id_prefix)
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @david-fuehr. Thank you for your report.
The fix will be available with the upcoming 2.3.2 release. |
Github issue: magento#21842 In customer and customer_address validation context the validator factory no longer caches absolute file paths for the validation.xml files (currently two file) as the file content is evaluated later in the filesystem directly and the file paths may not be correct in a multi server setup with shared cache (id_prefix)
Github issue: magento#21842 In customer and customer_address validation context the validator factory no longer caches absolute file paths for the validation.xml files (currently two file) as the file content is evaluated later in the filesystem directly and the file paths may not be correct in a multi server setup with shared cache (id_prefix)
Hi @david-fuehr. Thank you for your report.
The fix will be available with the upcoming 2.2.10 release. |
This issue comes from
Magento\Framework\Validator\Factory::_initializeConfigList
where absolute file paths are cached. The actual file content is evaluated using the local file system.The method is used in
\Magento\Customer\Model\ResourceModel\Address::_validate
,\Magento\Quote\Model\CustomerManagement::validateAddresses
and\Magento\Customer\Model\ResourceModel\Customer::_validate
and thus the issue occurs whenever acustomer
, acustomer_address
or quote for a registered customer is saved.We have a fix for this issue in use for quite some time where we stop caching the name of the files (currently two
validation.xml
s). I will soon open a pull request with these changes.Preconditions
We experienced this issue from 2.1.8 and PHP 7.0 upwards to:
Steps to reproduce (real life scenario)
/var/www/backend/release/2019-02-28
)/var/www/frontend/release/2019-02-28
)/var/www/frontend/release/2019-03-01
- autospawned)id_prefix
in cache section ofenv.php
)customer
orcustomer_address
on the backend node (may be a cron job or similar)Expected result
Actual result
Development
For development purposes the setup can be simulated:
id_prefix
inenv.php
is definedAdditional
Related PR: #14411 (2.1 - closed)
The text was updated successfully, but these errors were encountered: