ACSD-67686: A "Syntax Error: Unexpected <EOF>" error occurs when submitting an empty GraphQL request
A "Syntax Error: Unexpected <EOF>" error occurs when submitting an empty GraphQL request. Quality patch ACSD-67686 for magento/framework applies to Magento Open Source and Adobe Commerce 2.4.4-p15 to 2.4.6-p14.
- Categories
- GraphQL
- Components
- magento/framework, magento/module-graph-ql
- Origin
- adobe-commerce-support
No Adobe documentation page exists for this patch.
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-67686. On Cloud, add ACSD-67686 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-67686/ 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.4-p15 <2.4.4-p18 || >=2.4.5-p14 <2.4.5-p17 || >=2.4.6-p12 <2.4.6-p15
- Magento Open Source
- 2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.5-p16, 2.4.5-p15, 2.4.5-p14, 2.4.4-p17, 2.4.4-p16, 2.4.4-p15
- Adobe Commerce
- 2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.5-p16, 2.4.5-p15, 2.4.5-p14, 2.4.4-p17, 2.4.4-p16, 2.4.4-p15
- Patch file
- patches/os/ACSD-67686_2.4.5-p14_v2.patch
- vendor/magento/module-graph-ql/Controller/GraphQl.php
- vendor/magento/module-graph-ql/Controller/HttpRequestValidator/HttpVerbValidator.php
- vendor/magento/module-graph-ql/Helper/Query/Logger/LogData.php
- vendor/magento/framework/GraphQl/Query/Fields.php
- vendor/magento/framework/GraphQl/Query/QueryComplexityLimiter.php
- vendor/magento/framework/GraphQl/Query/QueryParser.php (added)
- vendor/magento/framework/GraphQl/Query/QueryProcessor.php
