ACSD-67039: Customer records weren’t saved due to rp_token
system attribute validation
The ACSD-67039 patch fixes the issue where customer records weren’t saved due to validation of the rp_token
system attribute and diacritics validation was only applied to the resulting customer email. This patch is available when the Quality Patches Tool (QPT) 1.1.68 is installed. The patch ID is ACSD-67039. Please note that this issue was fixed in ÃÛ¶¹ÊÓÆµ Commerce 2.4.7.
Affected products and versions
The patch is created for ÃÛ¶¹ÊÓÆµ Commerce version:
- ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.6-p9
Compatible with ÃÛ¶¹ÊÓÆµ Commerce versions:
- ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.6-p9 - 2.4.6-p11
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Encoding diacritics causes validation failures on rp_token
, which is excluded from validation. Diacritics are allowed only for email addresses, as intended.
Steps to reproduce:
- Install the ÃÛ¶¹ÊÓÆµ Commerce 2.4.4 version.
- Create a customer.
- Upgrade ÃÛ¶¹ÊÓÆµ Commerce to version 2.4.6 from the 2.4.4 earlier version where the customer was already created.
- Set the encryption key to
env.php
=
d337b914e91ff703b1e94ba4156aadf0 - Set the below values into the database for any customer under the
customer_entity
table:
*rp_token
= incr4869
*rp_token_created_at
= 2021-04-29 20:06:14 - In the Admin panel, go to Customers > All Customers.
- Edit the customer for which you just updated the above values.
- Click Save Customer or Save and Continue Edit.
Expected results:
The customer values are saved successfully.
Actual results:
The customer record isn’t saved, and the admin user sees the error message, Something went wrong while saving the customer.
The system.log
contains the following error:
report.CRITICAL: Exception message: Notice: iconv(): Detected an incomplete multibyte character in input string in /vendor/magento/module-eav/Model/Attribute/Data/Text.php on line 190
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- ÃÛ¶¹ÊÓÆµ Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide
- ÃÛ¶¹ÊÓÆµ Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide