ACSD-55628: Unable to replace a file for a customer attribute on the storefront
Unable to replace a file for a customer attribute on the storefront. Quality patch ACSD-55628 for magento/module-customer applies to Magento Open Source and Adobe Commerce 2.4.4-p2 to 2.4.7-p3.
- Categories
- B2B
- Components
- magento/module-customer, magento/module-customer-custom-attributes, magento/module-company
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.42
Issue
Unable to replace a file for a customer attribute on the storefront.
Steps to reproduce
1. Create a new customer attribute with the following values: * Input Type: File (Attachment) * Show on Storefront: Yes * Forms to Use In: all available options 1. Log in as a customer on the storefront and open My Account > Account Information. 1. Upload a new image and save. 1. Refresh the page. Delete the old image and upload a new one. Save the changes.
Adobe's page lists 2.4.4-p2 < 2.4.5 and 2.4.5-p1 < 2.4.6 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.7.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-55628. On Cloud, add ACSD-55628 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-55628/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.4.4-p2 <2.4.4-p12 || >=2.4.5-p1 <2.4.5-p11
- Magento Open Source
- 2.4.5-p10, 2.4.5-p9, 2.4.5-p8, 2.4.5-p7, 2.4.5-p6, 2.4.5-p5, 2.4.5-p4, 2.4.5-p3, 2.4.5-p2, 2.4.5-p1, 2.4.4-p11, 2.4.4-p10, 2.4.4-p9, 2.4.4-p8, 2.4.4-p7, 2.4.4-p6, 2.4.4-p5, 2.4.4-p4, 2.4.4-p3, 2.4.4-p2
- Adobe Commerce
- 2.4.5-p10, 2.4.5-p9, 2.4.5-p8, 2.4.5-p7, 2.4.5-p6, 2.4.5-p5, 2.4.5-p4, 2.4.5-p3, 2.4.5-p2, 2.4.5-p1, 2.4.4-p11, 2.4.4-p10, 2.4.4-p9, 2.4.4-p8, 2.4.4-p7, 2.4.4-p6, 2.4.4-p5, 2.4.4-p4, 2.4.4-p3, 2.4.4-p2
- Patch file
- patches/os/ACSD-55628_2.4.5-p4.patch
- vendor/magento/module-customer/Controller/Account/EditPost.php
- vendor/magento/module-customer/Model/Metadata/Form/File.php
magento/magento2-base >=2.4.6 <2.4.6-p9 deprecated
- Magento Open Source
- 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
- Patch file
- patches/os/ACSD-55628_2.4.5-p4.patch
- vendor/magento/module-customer/Controller/Account/EditPost.php
- vendor/magento/module-customer/Model/Metadata/Form/File.php
magento/magento2-ee-base >=2.4.4-p2 <2.4.4-p12 || >=2.4.5-p1 <2.4.5-p11
- Magento Open Source
- —
- vendor/magento/module-customer-custom-attributes/ViewModel/FileAttribute.php
- vendor/magento/module-customer-custom-attributes/view/frontend/web/js/component/file-uploader.js
- vendor/magento/module-customer-custom-attributes/view/frontend/web/template/form/element/uploader/uploader.html
magento/magento2-ee-base >=2.4.6 <2.4.6-p9 deprecated
- Magento Open Source
- —
- vendor/magento/module-customer-custom-attributes/ViewModel/FileAttribute.php
- vendor/magento/module-customer-custom-attributes/view/frontend/web/js/component/file-uploader.js
- vendor/magento/module-customer-custom-attributes/view/frontend/web/template/form/element/uploader/uploader.html
magento/magento2-b2b-base >=1.3.3-p2 <1.3.3-p12 || >=1.3.4-p1 <1.3.4-p11
- Magento Open Source
- —
- vendor/magento/module-company/Controller/Account/CreatePost.php
- vendor/magento/module-company/etc/di.xml
- vendor/magento/module-company/view/frontend/layout/company_account_create.xml
magento/magento2-b2b-base >=1.3.5 <=1.3.5-p7 || 1.5.0 deprecated
- Magento Open Source
- —
- vendor/magento/module-company/Controller/Account/CreatePost.php
- vendor/magento/module-company/etc/di.xml
- vendor/magento/module-company/view/frontend/layout/company_account_create.xml
