ACSD-65777: The types field is missing for product image types when fetching media data via…
The types field is missing for product image types when fetching media data via the MediaGallery GraphQL request. Quality patch ACSD-65777 for magento/module-catalog-graph-ql applies to Magento Open Source and Adobe Commerce 2.4.8 to 2.4.8-p5.
- Categories
- GraphQL, Content
- Components
- magento/module-catalog-graph-ql
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.66
Issue
The types field is missing for product image types when fetching media data via the MediaGallery GraphQL request.
Steps to reproduce
1. Create a product. 1. Upload an image to the product. 1. Fetch the media data using the following GraphQL. query{ products(search:"",filter:{sku:{eq:"p1"}})\{ items{ media_gallery{ disabled label position url } media_gallery_entries\{ types } } } }
Adobe's page lists 2.4.8 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.9.
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-65777. On Cloud, add ACSD-65777 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-65777/ 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
magento/magento2-base >=2.4.8 <2.4.9
- Patch file
- patches/os/ACSD-65777_2.4.8.patch
- vendor/magento/module-catalog-graph-ql/Model/Resolver/Products/DataProvider/Product/CollectionProcessor/MediaGalleryProcessor.php
- vendor/magento/module-catalog-graph-ql/etc/schema.graphqls
