QUALITY PATCH

ACSD-45849: The video metadata is lost after a staging update is applied

The video metadata is lost after a staging update is applied. Quality patch ACSD-45849 for magento/module-catalog applies to Magento Open Source and Adobe Commerce 2.4.3 to 2.4.3-p3.

Categories
Catalog/Product
Components
magento/module-catalog, magento/module-eav, magento/module-catalog-staging, magento/module-staging
Origin
adobe-commerce-support
Since QPT
1.1.18

Issue

The video metadata is lost after a staging update is applied.

Steps to reproduce

1. Set up the YouTube API key in Admin > Stores > Configuration > Catalog > Product Video. 1. Create a product with a YouTube video. Note that the URL, title, and description are filled. 1. Create a new scheduled update for the product with any parameters without changing the Images and Video section. 1. Click on View/Edit in Scheduled Changes. 1. Go to Images and Videos and click on the video.

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.

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-45849. On Cloud, add ACSD-45849 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-45849/ 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 (2): magento/module-catalog, magento/module-eav
Packages across compatible versions (4): magento/module-catalog, magento/module-eav, magento/module-catalog-staging, magento/module-staging

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
Patch file
patches/os/ACSD-45849_2.4.3-p2.patch
  • vendor/magento/module-catalog/Model/Product/Gallery/CopyHandler.php (added)
  • vendor/magento/module-catalog/Model/Product/Gallery/DeleteHandler.php (added)
  • vendor/magento/module-catalog/Model/ResourceModel/Product/Gallery.php
  • vendor/magento/module-eav/Model/ResourceModel/AttributeValue.php

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
Patch file
patches/commerce/ACSD-45849_2.4.3-p2.patch
  • vendor/magento/module-catalog-staging/Model/Product/Gallery/CreateHandler.php
  • vendor/magento/module-catalog-staging/Model/Product/Gallery/UpdateHandler.php (added)
  • vendor/magento/module-catalog-staging/Model/ResourceModel/AttributeCopier.php
  • vendor/magento/module-catalog-staging/etc/adminhtml/di.xml
  • vendor/magento/module-catalog-staging/etc/di.xml
  • vendor/magento/module-staging/Model/Operation/Delete/UpdateIntersectedRollbacks.php
  • vendor/magento/module-staging/Model/ResourceModel/Db/ReadEntityVersion.php

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.