QUALITY PATCH

ACSD-53098: Products assigned to a shared catalog via API do not show up on the frontend…

Products assigned to a shared catalog via API do not show up on the frontend after the partial indexer executes the cron job, followed by the consumer cron. Quality patch ACSD-53098 for app/etc applies to Magento Open Source and Adobe Commerce 2.4.3 to 2.4.3-p3.

Categories
B2B
Components
app/etc, magento/framework, magento/module-catalog, magento/module-indexer, magento/module-catalog-permissions, magento/module-shared-catalog
Origin
adobe-commerce-support
Since QPT
1.1.38

Issue

Products assigned to a shared catalog via API do not show up on the frontend after the partial indexer executes the cron job, followed by the consumer cron.

Steps to reproduce

1. Set up RabbitMQ as the queue service. 1. Switch indexers to Update on Schedule mode. 1. Create a shared catalog and assign it to a company. 1. Create a simple product and assign it to a category. Execute the partial reindex: bin/magento cron:run --group=index --bootstrap=standaloneProcessStarted=1 1. Use the following API request to assign the created product to the shared catalog. pub/rest/all/V1/sharedCatalog/<id>/assignProducts { "products":[{ "sku": "24-MB06" } ] } 1. Execute the following cron to clear up the queues, and execute the partial reindex: bin/magento cron:run --group=consumers bin/magento cron:run --group=index --bootstrap=standaloneProcessStarted=1 1. Log in to the frontend as the company's user. 1. Check the frontend category page.

Adobe's page lists 2.4.3 - 2.4.3-p3 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.7.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-53098. On Cloud, add ACSD-53098 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-53098/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (4): magento/module-catalog, magento/module-indexer, magento/magento2-base, magento/framework
Packages across compatible versions (6): magento/module-catalog, magento/module-indexer, magento/magento2-base, magento/framework, magento/module-catalog-permissions, magento/module-shared-catalog

magento/magento2-base >=2.4.3 <2.4.4

Magento Open Source
2.4.3-p3, 2.4.3-p2, 2.4.3-p1, 2.4.3
Adobe Commerce
2.4.3-p3, 2.4.3-p2, 2.4.3-p1, 2.4.3
Replaced with
ACSD-53098-V2
Patch file
patches/os/ACSD-53098_2.4.3.patch
  • vendor/magento/module-catalog/Model/Mview/View/Sku/EntityIdResolver.php (added)
  • vendor/magento/module-catalog/Model/Mview/View/Sku/Subscription.php (added)
  • vendor/magento/module-catalog/etc/di.xml
  • vendor/magento/module-indexer/etc/di.xml
  • app/etc/di.xml
  • vendor/magento/framework/Mview/View/CompositeSubscriptionStatementPostprocessor.php (added)
  • vendor/magento/framework/Mview/View/Subscription.php
  • vendor/magento/framework/Mview/View/SubscriptionStatementPostprocessorInterface.php (added)

magento/magento2-ee-base >=2.4.3 <2.4.4

Magento Open Source
—
Adobe Commerce
2.4.3-p3, 2.4.3-p2, 2.4.3-p1, 2.4.3
Replaced with
ACSD-53098-V2
Patch file
patches/commerce/ACSD-53098_2.4.3.patch
  • vendor/magento/module-catalog-permissions/Model/Indexer/Product/Action/GetProductsCategories.php (added)
  • vendor/magento/module-catalog-permissions/Model/Indexer/Product/Action/Rows.php

magento/magento2-b2b-base >=1.3.2 <1.3.3

Magento Open Source
—
Adobe Commerce
2.4.3-p3, 2.4.3-p2, 2.4.3-p1, 2.4.3
Replaced with
ACSD-53098-V2
Patch file
patches/commerce/ACSD-53098_1.3.2.patch
  • vendor/magento/module-shared-catalog/Model/ProductManagement.php
  • vendor/magento/module-shared-catalog/etc/mview.xml

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.