Open
Description
Preconditions and environment
- Magento 2.4.7
Steps to reproduce
- Attempt to make an OPTIONS request against the GraphQL endpoint
curl -i -X OPTIONS http://test.site/graphql
Expected result
Returns the "unexpected EOF" error but with a 200 status code so that CORS requests succeed.
Actual result
Returns the "unexpected EOF" error with a 500 status code, so CORS preflight requests always fail.
Additional information
This seems like it re-introduces MDVA-35312 which was previously fixed in Magento 2.4.3.
I believe this is caused by https://github.com/magento/magento2/blame/c6bc8300e771e5e96ce9ac6c116746fe3de80544/app/code/Magento/GraphQl/Controller/GraphQl.php#L194 which parses the query and returns an error even if the request validators succeed.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Activity
m2-assistant commentedon May 20, 2024
Hi @william-gooch. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
william-gooch commentedon May 20, 2024
@magento give me 2.4-develop instance
magento-deployment-service commentedon May 20, 2024
Hi @william-gooch. Thank you for your request. I'm working on Magento instance for you.
m2-assistant commentedon May 20, 2024
Hi @engcom-Delta. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branchDetails
- Add the comment@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.- If the issue is reproducible on
2.4-develop
branch, please, add the labelReproduced on 2.4.x
.- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
Issue: Confirmed
once verification is complete.magento-deployment-service commentedon May 20, 2024
Hi @william-gooch, here is your Magento Instance: https://e4f1dc96fd2a29c0dfef62b22c58308a.instances-prod.magento-community.engineering
Admin access: https://e4f1dc96fd2a29c0dfef62b22c58308a.instances-prod.magento-community.engineering/admin_3d27
Login: 98152775
Password: bb2af77d0df9
william-gooch commentedon May 20, 2024
Confirmed to occur on 2.4-develop instance
engcom-Delta commentedon May 22, 2024
Hi @william-gooch ,
Verified the issue on 2.4.7 and 2.4-develop, it is reproducible.
Hence, Confirming the issue.
Steps to reproduce:-
2.4.7
2.4-develop
18 remaining items