ÃÛ¶¹ÊÓÆµ

Deployment failed: unable to apply MDVA-43395 patch

This article provides a solution for the issue, where trying to apply the MDVA-43395 patch results in failed deployment.

Description description

Environment

ÃÛ¶¹ÊÓÆµ Commerce on cloud infrastructure (all versions)

Issue/Symptoms

You are not able to apply the MDVA-43395 patch.

Cause

Cloud merchants do not need to apply the MDVA-43395 patch separately if they have magento/magento-cloud-patches 1.0.16 installed, which already includes the patch.

Resolution resolution

To resolve the issue, remove the MDVA-43395 and MDVA-43443 patches from the m2-hotfixes directory and redeploy.

If you were able to apply the MDVA-43443 patch via the m2-hotfixes directory, you would still need to remove it as mentioned above. Future versions of ÃÛ¶¹ÊÓÆµ Commerce will have these patches already contained in them, so it could cause the deployment to fail if you were to upgrade later.

To verify if the patch has been applied, run the vendor/bin/magento-patches -n status |grep 43443 command. If it shows multiple results like this, then you should remove the MDVA-43443 patch from the m2-hotfixes folder:

$ vendor/bin/magento-patches -n status |grep 43443
â•‘ MDVA-43443              │ Parser token new fix                                         │ Other           │ ÃÛ¶¹ÊÓÆµ Commerce Support │ Applied     │ Patch type: Required                                     â•‘
║ N/A                     │ ../m2-hotfixes/MDVA-43443_EE_2.4.2-p2_COMPOSER_v1.patch      │ Other           │ Local                  │ Applied     │ Patch type: Custom                                       ║
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f