ACSD-68011: Non-existent SKUs assigned to shared catalog via /V1/sharedCatalog/:id/assignProducts API
The ACSD-68011 patch fixes the issue where non-existent SKUs assigned to shared catalog via /V1/sharedCatalog/:id/assignProducts API. This patch is available when the Quality Patches Tool (QPT) 1.1.72 is installed. The patch ID is ACSD-68011. Please note that this issue is scheduled to be fixed in Adobe Commerce B2B 1.5.3.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p6 (B2B 1.5.2-p1)
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7-p4 - 2.4.8-p2 (B2B 1.5.1 - 1.5.2-p2)
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
Non-existent SKUs are assigned to a shared catalog via /V1/sharedCatalog/:id/assignProducts REST API.
Steps to reproduce:
Send a POST request to assign a non-existent SKU to a shared catalog using the /rest/V1/sharedCatalog/1/assignProducts endpoint.
curl --location 'https://example.test/rest/V1/sharedCatalog/1/assignProducts' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer bearer_value' \
--data '{
"products": [
{
"sku": "test_not_existing2"
}
]
}'
Expected results:
The API throws a validation error and does not add or display the non-existent SKU in the shared catalog.
Actual results:
The API does not validate the SKU. The non-existent SKU is added and appears in the shared catalog.
curl --location 'https://example.test/rest/V1/sharedCatalog/1/products' --header 'Authorization: Bearer bearer_value' ;
["test_test_not_existing2"]
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.