Description
Preconditions (*)
- Magento 2.4-develop
Steps to reproduce (*)
- Create a category with 2 sub categories
- Assign same product to both sub categories
- Call /V1/categories/{categoryId}/products with the parent category id
Expected result (*)
- List of all products assigned to parent category
Actual result (*)
-
"Internal Error. Details are available in Magento log file. Report ID: webapi-5f8579e37db54"
-
main.CRITICAL: Report ID: webapi-5f8579e37db54; Message: Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "1" already exists. {"exception":"[object] (Exception(code: 0): Report ID: webapi-5f8579e37db54; Message: Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "1" already exists. at /var/www/html/magento2dev/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php:208, Exception(code: 0): Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "1" already exists. at /var/www/html/magento2dev/lib/internal/Magento/Framework/Data/Collection.php:408)"} []
Notes
- It should be noted the same thing happens if you assign a product to a parent category and a sub category of that parent.
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status