QUALITY PATCH

ACSD-67383: Attempting to use Login as Customer for two company admin accounts without closing…

Attempting to use Login as Customer for two company admin accounts without closing the first session results in a No such entity with cartId exception. Quality patch ACSD-67383 for magento/module-login-as-customer-frontend-ui applies to Magento Open Source and Adobe Commerce 2.4.4 to 2.4.8-p5.

Categories
Admin, Customer, B2B
Components
magento/module-login-as-customer-frontend-ui
Origin
adobe-commerce-support
Since QPT
1.1.72

Issue

Attempting to use Login as Customer for two company admin accounts without closing the first session results in a No such entity with cartId exception. This also creates an isolated entry in the quote table.

Steps to reproduce

1. Install a clean instance with B2B. 1. Create a new Company. 1. Create two separate Company administrators. 1. Navigate to Customers > All Customers. 1. Enable Allow Remote Shopping Assistance for each of the newly created company admin users. 1. Select one company administrator, and click Login as Customer to initiate the login session. 1. Without closing the current session, click Login as Customer for the other company administrator to attempt another login.

Adobe's page lists 2.4.4 - 2.4.7-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-67383. On Cloud, add ACSD-67383 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-67383/ 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-login-as-customer-frontend-ui
Packages across compatible versions (1): magento/module-login-as-customer-frontend-ui

magento/magento2-base >=2.4.8 <2.4.9

Magento Open Source
2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8
Adobe Commerce
2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8
Patch file
patches/os/ACP2E-4483_2.4.8-p2.patch
  • vendor/magento/module-login-as-customer-frontend-ui/Controller/Login/Index.php

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.