ACP2E-4505: Circular category dependency from saving a category with stale data in a duplicate browser tab
The ACP2E-4505 patch fixes the issue where it was possible to save a category with stale data from a duplicate browser tab, creating a circular dependency. This patch is available when the Quality Patches Tool (QPT) 1.1.79 is installed. The patch ID is ACP2E-4505. Please note that this issue is scheduled to be 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.8-p3, 2.4.7-p8
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.8-p4
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
It was possible to save a category with stale data from a duplicate browser tab, creating a circular dependency.
Steps to reproduce:
-
Create a category structure: A > B > C.
-
In the Admin panel, go to Catalog > Categories.
-
In the category tree, select category C to open its edit form in Tab 1.
-
Duplicate the browser tab to open Tab 2 with the same category C edit form.
-
In Tab 1:
- Drag category C under A so C becomes a child of A.
- Drag category B under C so B becomes a child of C.
- Wait until both drag-and-drop operations finish and the category tree updates.
-
In Tab 2 (still showing the old hierarchy):
- Make any change, for example, edit the description.
- Click Save.
Expected results:
The system should validate and prevent circular parent-child relationships from being saved.
Actual results:
A circular parent-child dependency is created between categories (category B has parent C, and category C has parent B), causing infinite recursion in category hierarchy traversal.
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.