{"data":{"id":"ACSD-67659","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes an issue causing translated error messages to return an UNDEFINED error code.","categories":["GraphQL"],"components":["magento/module-async-order-graph-ql","magento/framework","magento/module-graph-ql","magento/module-quote-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-70/acsd-67659","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-70/acsd-67659.md","blobSha":"4c241bcfe7d5cfc461859faf430b4f1280c0fb92","description":"The translated exception message is used to map the error code for GraphQL requests, causing known errors to return an UNDEFINED error code instead of the correct one.","stepsToReproduce":"1. Add file app/i18n/Magento/de_DE/de_DE.csv with a translation for the error string, such as: \"Could not find a cart with ID \"\"%masked_cart_id\"\"\",\"we have an UNDEFINED issue\",module,Magento_QuoteGraphQl 2. In the Admin panel, go to Stores > Settings > All Stores > Create Store View to create a store view. 3. Set Code to test. 4. Assign german language to the newly created store view. 5. Run the commands setup:upgrade and setup:static-content:deploy -f. 6. Run the following GraphQL query with header Store:test: mutation { placeOrder(input: { cart_id: \"test\" }) { orderV2 { id number } } }","introducedInQpt":"1.1.70","createdFor":["2.4.8-p2"],"documentedRange":"2.4.8 - 2.4.8-p2","scheduledFixRelease":"2.4.9"},"files":[{"package":"magento/magento2-ee-base","constraint":">=2.4.8 <2.4.8-p3","path":"patches/commerce/ACSD-67659_2.4.8-p2.patch","blobSha":"4397f9a24c77912f0126c643209b918659f0305d","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-67659_2.4.8-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-async-order-graph-ql/Model/Cart/PlaceOrderAsync.php","change":"modified","package":"magento/module-async-order-graph-ql"}],"packages":["magento/module-async-order-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.8-p2","2.4.8-p1","2.4.8"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-base","constraint":">=2.4.8 <2.4.8-p3","path":"patches/os/ACSD-67659_2.4.8-p2.patch","blobSha":"f02eb712e5bcaf954f884eca5e7f4c61313d328e","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-67659_2.4.8-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-graph-ql/Helper/Error/AggregateExceptionMessageFormatter.php","change":"modified","package":"magento/module-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/Cart/GetCartForCheckout.php","change":"modified","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/Cart/GetCartForUser.php","change":"modified","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/ErrorMapper.php","change":"added","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/OrderErrorProcessor.php","change":"added","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/OrderResponseFormatter.php","change":"added","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/QuoteException.php","change":"added","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/Resolver/EstimateShippingMethods.php","change":"modified","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/Resolver/EstimateTotals.php","change":"modified","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/Resolver/PlaceOrder.php","change":"modified","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/Resolver/RemoveItemFromCart.php","change":"modified","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/etc/graphql/di.xml","change":"modified","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/etc/schema.graphqls","change":"modified","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/framework/GraphQl/Query/QueryDataFormatter.php","change":"added","package":"magento/framework"},{"path":"vendor/magento/framework/GraphQl/Query/QueryProcessor.php","change":"modified","package":"magento/framework"},{"path":"vendor/magento/framework/GraphQl/Query/QueryResponseFormatterInterface.php","change":"added","package":"magento/framework"}],"packages":["magento/module-graph-ql","magento/module-quote-graph-ql","magento/framework"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.8-p2","2.4.8-p1","2.4.8"],"magento-commerce":["2.4.8-p2","2.4.8-p1","2.4.8"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.8-p2","2.4.8-p1","2.4.8"],"magento-commerce":["2.4.8-p2","2.4.8-p1","2.4.8"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-67659 details"}