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
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:
-
Create a customer account and sign in to the Storefront.
-
Add a product to the cart and open the checkout page.
-
In the browser developer tools, open the Network tab and inspect the REST requests, such as
rest/default/V1/carts/mine/estimate-shipping-methods. -
Disable the EAV types and attributes cache:
code language-none bin/magento cache:disable eav -
Refresh the checkout page and inspect the same REST requests.
Expected results:
- The checkout REST requests complete without entering an infinite loop.
Actual results:
- 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:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide