ACSD-61845: When sending an HTTP request with only text/html in the accept header…
When sending an HTTP request with only text/html in the accept header, a 500 error occurs due to a mismatch in the media type configuration. Quality patch ACSD-61845 for magento/module-quote applies to Magento Open Source and Adobe Commerce 2.4.7-p1 to 2.4.7-p9.
- Categories
- Other
- Components
- magento/module-quote
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.54
Issue
When sending an HTTP request with only text/html in the accept header, a 500 error occurs due to a mismatch in the media type configuration.
Steps to reproduce
1. Send a request with only text/html in the accept header, as follows: curl -I --header "Accept: text/html, text/plain" http://<hostname>/pub/
Adobe's page lists 2.4.7-p1 - 2.4.7-p3 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.8.
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-61845. On Cloud, add ACSD-61845 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-61845/ 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
magento/magento2-base >=2.4.7-p1 <2.4.7-p6
- Patch file
- patches/os/ACSD-61845_2.4.7-p1.patch
- vendor/magento/module-quote/Model/QuoteValidator.php
- vendor/magento/module-quote/Plugin/Webapi/Model/ErrorRedirectProcessor.php (added)
- vendor/magento/module-quote/etc/webapi_rest/di.xml
magento/magento2-base >=2.4.7-p6 <2.4.7-p10
- Patch file
- patches/os/ACSD-66539_2.4.7-p6.patch
- vendor/magento/module-quote/Model/QuoteValidator.php
- vendor/magento/module-quote/Plugin/Webapi/Model/ErrorRedirectProcessor.php (added)
- vendor/magento/module-quote/etc/webapi_rest/di.xml
