AC-15494: GraphQL products query returns HTML-escaped product names

The AC-15494 patch fixes the issue where the products query returns product names with HTML-escaped special characters instead of their original characters. This patch is available when the Quality Patches Tool (QPT) 1.1.84 is installed. The patch ID is AC-15494. 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.8-p5

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.8 - 2.4.8-p5
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

The products query returns product names with HTML-escaped special characters instead of their original characters.

Steps to reproduce:

  1. Create a new product named 55" 4K UHD Smart TV with SKU testsku.

  2. Submit the following GraphQL query:

    code language-none
    query {
        products(search: "testsku" ) {
            items {
                sku
                name
                description {
                    html
                }
                short_description {
                    html
                }
    
                price_range {
                    maximum_price {
                        final_price {
                            value
                            currency
                        }
                        regular_price {
                            value
                            currency
                        }
                    }
                }
            }
        }
    }
    

Expected results:

The products query returns the saved product name with its original double quotation marks.

Actual results:

The returned product name contains HTML-escaped double quotation marks instead of the original characters.

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
commerce-operations-help-tools