{"data":{"id":"ACSD-49970","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes incorrect handling of GraphQL errors when New Relic reporting is turned on.","categories":["GraphQL"],"components":["magento/module-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-29/acsd-49970-incorrect-handling-of-graphql-errors","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-29/acsd-49970-incorrect-handling-of-graphql-errors.md","blobSha":"92f22ccab3cd1f14488e91bb7db70bb826c5cbb4","description":"GraphQLOperationNames key is not handled correctly whether the logDataHelper contains this key or not.","stepsToReproduce":"1. Run bin/magento deploy:mode:set developer. 1. Log in to the Admin. 1. Enable New Relic Integration from Stores > Configuration > General > New Relic Reporting (Note: Even if an error is displayed saying that the New Relic extension is not available, the configuration is saved). 1. Run this GraphQL mutation to http://yourMagentoDomain/graphql from the Altair client or any other client or via cURL. mutation { createEmptyCart } (Note: Set the Header to Content-Currency:CA before running it). curl --location 'http://yourMagentoDomain/graphql' \\--header 'Content-Currency: CA' \\--header 'Content-Type: application/json' \\--header 'Cookie: PHPSESSID=b5147f63fe5014ea523f262946; private_content_version=8d53dfda210a6e9bc46f4e4a01ffd6c5' \\--data '{\"query\":\"mutation {\\r\\n createEmptyCart\\r\\n}\",\"variables\":{}}'","introducedInQpt":"1.1.29","createdFor":["2.4.5-p1"],"documentedRange":"2.4.5 - 2.4.6","scheduledFixRelease":"2.4.7"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.5 <2.4.7","path":"patches/os/ACSD-49970_2.4.5-p1.patch","blobSha":"7c97da8253d5a690b5c59467a8be96cc5f637738","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-49970_2.4.5-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-graph-ql/Model/Query/Logger/NewRelic.php","change":"modified","package":"magento/module-graph-ql"}],"packages":["magento/module-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":"ACSD-49970-V2","deprecated":false}],"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"conditions":{"and":[{"type":"log","path":"var/log/debug.log","match":"report.CRITICAL: Exception: Warning: Undefined array key \"GraphQlOperationNames\" in */module-graph-ql/Model/Query/Logger/NewRelic.php on line */framework/App/ErrorHandler.php"}]},"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-49970 details"}