[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

ACSD-67696: media_gallery entries don’t return in the Cart GraphQL product node after a cache flush

The ACSD-67696 patch fixes the issue where media_gallery entries don’t return in the Cart GraphQL product node after a cache flush. This patch is available when the Quality Patches Tool (QPT) 1.1.72 is installed. The patch ID is ACSD-67696. 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.7-p6

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.4 - 2.4.8-p2
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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

media_gallery entries not returning in the Cart GraphQL product node after a cache flush.

Steps to reproduce:

  1. Add images to a product ex. SKU product_dynamic_23 (no need to select any options like Base Image, Small Image, or Thumbnail Image).
  2. Run the Product GraphQL to see product images inside the media_gallery entry of the product response.
{
  products(filter: { sku: { eq: "product_dynamic_23" } }) {
    items {
      name
      sku
      url_key
      stock_status
          media_gallery {
          url
          label
          }
      price_range {
        minimum_price {
          regular_price {
            value
            currency
          }
        }
      }
    }
    total_count
    page_info {
      page_size
    }
  }
}
  1. Add product to cart and check getCart query. media_gallery is inside the product node in the cart items node.
  2. Flush the cache from the admin. media_gallery is empty inside the product node in the getCart query.
  3. Run the Product GraphQL query, then run the getCart query to see the media_gallery entries inside the getCart response.

Expected results:

getCart GraphQL must return media_gallery values even after cache is flushed.

Actual results:

media_gallery is empty after cache flush, causing inconsistency.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3