Skip to content

GraphQL OPTIONS request fails with storefront combability module #39659

Open
@sashas777

Description

@sashas777

Preconditions and environment

  • Magento version 2.4.7-p3
  • Install module adobe-commerce/storefront-compatibility
composer require adobe-commerce/storefront-compatibility

Steps to reproduce

Run from bash following CURL:

curl -i -X OPTIONS http://commerce.local/graphql

Expected result

The response code is 200 for the request.

Actual result

A 500 internal server error occurs:

{"errors":[{"message":"Syntax Error: Unexpected <EOF>","locations":[{"line":1,"column":1}],"extensions":{"file":"\/var\/www\/magento\/vendor\/webonyx\/graphql-php\/src\/Language\/Parser.php","line":439}}]}

Additional information

The module adobe-commerce/storefront-compatibility has an around plugin vendor/adobe-commerce/module-authorization-storefront-compatibility/Plugin/Controller/GraphQlPlugin.php that need to be patched similar way that the patch ACSD-63325 applies to vendor/magento/module-graph-ql/Controller/GraphQl.php

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”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: APIsComponent: GraphQLGraphQLIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Reported on 2.4.7-p3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions