ÃÛ¶¹ÊÓÆµ

Backwards incompatible changes for GraphQL placeOrder API in ÃÛ¶¹ÊÓÆµ Commerce 2.4.6-p8

This article provides a patch for the known ÃÛ¶¹ÊÓÆµ Commerce version 2.4.6-p8 Cloud and On-premises issue where the placeOrder GraphQL API doesn’t return an expected error response, as seen in previous 2.4.6 patch versions. This may lead to a broken checkout experience for merchants using PWA storefront or any other GraphQL API-based storefront for their stores.

Description description

Affected Environment

  • ÃÛ¶¹ÊÓÆµ Commerce on Cloud 2.4.6-p8
  • ÃÛ¶¹ÊÓÆµ Commerce on-premises 2.4.6-p8

Issue/Symptoms

After the upgrade on ÃÛ¶¹ÊÓÆµ Commerce 2.4.6-p8 security-only patch, the doesn’t return an expected error response, as seen in any previous 2.4.6 patch versions. This may lead to a broken checkout experience for merchants using PWA storefront or any other GraphQL API-based storefront for their stores.

Step to reproduce:

Run the placeOrder GraphQL request where you expect an error response.

Expected result:

You receive the expected error response.

Actual result:

Instead of the expected error response, you receive a successful response, but with a new error key that looks like this:

{
    "data": {
        "placeOrder": {
            "order": null,
            "__typename": "PlaceOrderOutput"
        }
    }
}

Resolution resolution

For ÃÛ¶¹ÊÓÆµ Commerce on Cloud and ÃÛ¶¹ÊÓÆµ Commerce On-premises Software

To solve the issue, apply the patch. To download it, click the following link:

How to apply the patch

Unzip the file and see How to apply a composer patch provided by ÃÛ¶¹ÊÓÆµ in our support knowledge base for instructions.

For ÃÛ¶¹ÊÓÆµ Commerce on Cloud merchants only - How to tell whether patches have been applied

Considering that it isn’t possible to easily check if the issue was patched, you might want to check whether the patch has been successfully applied.

You can do this by taking the following steps, using the sample file VULN-27015-2.4.7_COMPOSER.patch as an example:

  1. Install the Quality Patches Tool.

  2. Run the command: vendor/bin/magento-patches -n status |grep "27015\|Status"

  3. You should see output similar to this, where VULN-27015 returns the  Applied  s³Ù²¹³Ù³Ü²õ:

    code language-none
    ║ Id    │ Title                                                   │ Category    │ Origin    │ Status    │ Details               ║
    ║ N/A   │ ../m2-hotfixes/VULN-27015-2.4.7_COMPOSER_patch.patch    │ Other       │ Local     │ Applied   │ Patch type: Custom    ║
    
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f