{"data":{"id":"ACSD-52921","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where an internal error occurs if requesting cart details from GraphQL when there is an out-of-stock configurable product in the cart.","categories":["GraphQL","Order/Checkout"],"components":["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-35/acsd-52921-internal-error-requesting-cart-details-from-graphql","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-35/acsd-52921-internal-error-requesting-cart-details-from-graphql.md","blobSha":"0d8979ad6db90f9f8948116b8bfcdea4797ff849","description":"An internal error occurs on requesting cart details from GraphQL for an out-of-stock configurable product.","stepsToReproduce":"1. Create a configurable product with a few options. 1. Add an option for the above configurable product to the cart from the frontend (guest checkout). 1. Get the [ masked_id ] from the [ quote_id_mask ] db table for the above created quote. 1. Execute the following GraphQL query to get the above guest cart details. Add the [ masked_id ] received from step 3 in the query. { cart(cart_id: \"masked_id\") { items { product { name sku } ... on ConfigurableCartItem { configurable_options { configurable_product_option_uid option_label configurable_product_option_value_uid value_label } } quantity errors { code message } } } } 1. This will return the quote details without any issues. 1. Go to the backend and update the configurable product's Stock Status to Out of Stock. 1. Execute the same GraphQL query, as done in step 4.","introducedInQpt":"1.1.35","createdFor":["2.4.6-p1"],"documentedRange":"2.4.5 - 2.4.6-p1","scheduledFixRelease":null},"files":[{"package":"magento/magento2-base","constraint":">=2.4.5 <2.4.7","path":"patches/os/ACSD-52921_2.4.6-p1.patch","blobSha":"38250544cd7145c9db4f38eddc0a5673537a57e3","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-52921_2.4.6-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-quote-graph-ql/Model/Resolver/CartItemErrors.php","change":"modified","package":"magento/module-quote-graph-ql"}],"packages":["magento/module-quote-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":null,"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/exception.log","match":"*Illegal offset type at */module-quote-graph-ql/Model/Resolver/CartItemErrors.php:78)"}]},"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-52921 details"}