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
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:
-
Create a new product named
55" 4K UHD Smart TVwith SKUtestsku. -
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:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide