ACP2E-4191: REST API requests enter infinite loop when EAV types and attributes cache disabled

The ACP2E-4191 patch fixes the issue where certain REST API requests enter an infinite loop when the EAV types and attributes cache is disabled. This patch is available when the Quality Patches Tool (QPT) 1.1.86 is installed. The patch ID is ACP2E-4191. Please note that this issue was fixed in Adobe Commerce 2.4.9.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.7-p9, 2.4.8-p2

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.5 - 2.4.8-p5
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

Certain REST API requests enter an infinite loop when the EAV types and attributes cache is disabled.

Prerequisites:

Adobe Commerce B2B extension.

Steps to reproduce:

  1. Create a customer account and sign in to the Storefront.

  2. Add a product to the cart and open the checkout page.

  3. In the browser developer tools, open the Network tab and inspect the REST requests, such as rest/default/V1/carts/mine/estimate-shipping-methods.

  4. Disable the EAV types and attributes cache:

    code language-none
    bin/magento cache:disable eav
    
  5. Refresh the checkout page and inspect the same REST requests.

Expected results:

  1. The checkout REST requests complete without entering an infinite loop.

Actual results:

  1. The REST requests fail with HTTP 500 error because the infinite loop reaches the PHP call stack size or memory limit.

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
commerce-operations-help-tools