QUALITY PATCH

ACSD-59229: Customer group-related information is saved in the wrong segment…

Customer group-related information is saved in the wrong segment because of an outdated X-Magento-Vary value in the request. Quality patch ACSD-59229 for magento/module-page-cache applies to Magento Open Source and Adobe Commerce 2.4.4 to 2.4.6-p15.

Categories
Customer
Components
magento/module-page-cache
Origin
adobe-commerce-support
Since QPT
1.1.50

Issue

Customer group-related information is saved in the wrong segment because of an outdated X-Magento-Vary value in the request.

Steps to reproduce

1. Set up advanced pricing for the SKU 24-MB01: 1. Regular price = 9999$ 1. Catalog and Tier Price: * Wholesale = $200 * Retailer = $30 1. Create two customer accounts. 1. Assign both customers to the Wholesale group. 1. Open two different browser sessions and log in with each customer. 1. Navigate to the 24-MB01 product page for each customer and verify that the price displayed is $200. 1. Change the customer group for one of the customers to Retail. 1. Clear the cache using the command: bin/magento cache:flush full_page. 1. Refresh the product page for each customer.

Adobe's page lists 2.4.4 - 2.4.6-p7 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

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-59229. On Cloud, add ACSD-59229 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-59229/ 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

Packages across compatible versions (1): magento/module-page-cache
Packages across compatible versions (1): magento/module-page-cache

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.