[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

ACSD-67383: Error when logging in as a Customer with two company admin accounts in the same session

The ACSD-67383 patch fixes the issue where attempting to use Login as Customer for two company admin accounts in the same session without ending the first session results in a No such entity with cartId error. This patch is available when the Quality Patches Tool (QPT) 1.1.72 is installed. The patch ID is ACSD-67383.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.7-p4

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.4 - 2.4.7-p7
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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

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.
  2. Create a new Company.
  3. Create two separate Company administrators.
  4. Navigate to Customers > All Customers.
  5. Enable Allow Remote Shopping Assistance for each of the newly created company admin users.
  6. Select one company administrator, and click Login as Customer to initiate the login session.
  7. Without closing the current session, click Login as Customer for the other company administrator to attempt another login.

Expected results:

Login should be allowed without creating empty records in the quote table.

Actual results:

An error message, No such entity with cartId = 22, is returned, and empty records are created in the quote table.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3