{"data":{"id":"ACSD-48627","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where the out-of-stock configurable product causes an error when sending a GraphQL request to get cart details.","categories":["GraphQL","Catalog/Product"],"components":["magento/module-catalog-graph-ql","magento/module-configurable-product","magento/module-configurable-product-graph-ql","magento/module-inventory-catalog"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-25/acsd-48627-out-of-stock-configurable-product-causes-an-error","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-25/acsd-48627-out-of-stock-configurable-product-causes-an-error.md","blobSha":"91c73d0d23ff39743f329c12d1502023008798e0","description":"Out-of-stock configurable product causes an error when sending a GraphQL request to get cart details.","stepsToReproduce":"1. Create a customer account. 1. Add some products to the cart, including a configurable product. 1. Go to the admin backend, and edit the configurable product by setting all child products qty to 0. 1. The configurable product will become out of stock as all the child products are out of stock. 1. Check the catalog_product_index_price table. The record with this product is empty. 1. Make a GraphQL request to get the customer token. mutation { generateCustomerToken( email: \"test@example.com\" password: \"xxxx\" ) { token } } 1. Make a GraphQL request to get cartId. Headers: Authentication => Bearer [customer token in step 6] { customerCart { id items { id product { name sku } quantity } } } 1. Make a GraphQL request to get the cart details. Headers: Authentication => Bearer [customer token in step 6] query GetCartDetails($cartId: String!) { cart(cart_id: $cartId) { id ...CartPageFragment __typename } } fragment CartPageFragment on Cart { id total_quantity ...AppliedCouponsFragment ...ProductListingFragment ...PriceSummaryFragment __typename } fragment AppliedCouponsFragment on Cart { id applied_coupons { code __typename } __typename } fragment ProductListingFragment on Cart { id items { uid product { uid name sku url_key url_suffix thumbnail { url __typename } small_image { url __typename } stock_status price_range { minimum_price { final_price { currency value __typename } regular_price { currency value __typename } __typename } __typename } stock_status ... on ConfigurableProduct { variants { attributes { uid __typename } product { uid small_image { url __typename } stock_status __typename } __typename } __typename } __typename } prices { price { currency value __typename } __typename } quantity ... on ConfigurableCartItem { configurable_options { id configurable_product_option_uid option_label configurable_product_option_value_uid value_label __typename } __typename } __typename } __typename } fragment PriceSummaryFragment on Cart { id items { uid quantity __typename } ...ShippingSummaryFragment prices { ...TaxSummaryFragment ...DiscountSummaryFragment ...GrandTotalFragment subtotal_excluding_tax { currency value __typename } subtotal_including_tax { currency value __typename } __typename } __typename } fragment DiscountSummaryFragment on CartPrices { discounts { amount { currency value __typename } label __typename } __typename } fragment GrandTotalFragment on CartPrices { grand_total { currency value __typename } __typename } fragment ShippingSummaryFragment on Cart { id shipping_addresses { selected_shipping_method { amount { currency value __typename } __typename } street __typename } __typename } fragment TaxSummaryFragment on CartPrices { applied_taxes { amount { currency value __typename } __typename } __typename }","introducedInQpt":"1.1.25","createdFor":["2.4.5-p1"],"documentedRange":"2.4.5 - 2.4.5-p1","scheduledFixRelease":"2.4.6"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.3 <2.4.4","path":"patches/os/ACSD-48419_2.4.3-p3.patch","blobSha":"ba93f170e0b279bd9aa65fe508bf359ac588f51e","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-48419_2.4.3-p3.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-graph-ql/Model/Resolver/Products/DataProvider/Product/CollectionProcessor/StockProcessor.php","change":"modified","package":"magento/module-catalog-graph-ql"},{"path":"vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsCompositeFilter.php","change":"added","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsFilterInterface.php","change":"added","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsProvider.php","change":"modified","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsStatusFilter.php","change":"added","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsStockStatusFilter.php","change":"added","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/etc/di.xml","change":"modified","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/etc/frontend/di.xml","change":"modified","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product-graph-ql/Model/Options/DataProvider/Variant.php","change":"modified","package":"magento/module-configurable-product-graph-ql"},{"path":"vendor/magento/module-configurable-product-graph-ql/Model/Resolver/Product/Price/Provider.php","change":"modified","package":"magento/module-configurable-product-graph-ql"},{"path":"vendor/magento/module-configurable-product-graph-ql/Plugin/AddStockStatusToCollection.php","change":"added","package":"magento/module-configurable-product-graph-ql"},{"path":"vendor/magento/module-configurable-product-graph-ql/etc/graphql/di.xml","change":"modified","package":"magento/module-configurable-product-graph-ql"}],"packages":["magento/module-catalog-graph-ql","magento/module-configurable-product","magento/module-configurable-product-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"mage-os":[]},"unknownVersions":[],"requires":["MDVA-43862","MDVA-40488"],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-base","constraint":">=2.4.4 <2.4.4-p18","path":"patches/os/ACSD-50591_2.4.4-p1.patch","blobSha":"f89d697b0b7bf3f3593ab46805bd4d68f3e775e1","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-50591_2.4.4-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-graph-ql/Model/Resolver/Products/DataProvider/Product/CollectionProcessor/StockProcessor.php","change":"modified","package":"magento/module-catalog-graph-ql"},{"path":"vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsCompositeFilter.php","change":"added","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsFilterInterface.php","change":"added","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsProvider.php","change":"modified","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsStatusFilter.php","change":"added","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsStockStatusFilter.php","change":"added","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/etc/di.xml","change":"modified","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/etc/frontend/di.xml","change":"modified","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product-graph-ql/Model/Options/DataProvider/Variant.php","change":"modified","package":"magento/module-configurable-product-graph-ql"},{"path":"vendor/magento/module-configurable-product-graph-ql/Model/Resolver/Product/Price/Provider.php","change":"modified","package":"magento/module-configurable-product-graph-ql"},{"path":"vendor/magento/module-configurable-product-graph-ql/Plugin/AddStockStatusToCollection.php","change":"added","package":"magento/module-configurable-product-graph-ql"},{"path":"vendor/magento/module-configurable-product-graph-ql/etc/graphql/di.xml","change":"modified","package":"magento/module-configurable-product-graph-ql"}],"packages":["magento/module-catalog-graph-ql","magento/module-configurable-product","magento/module-configurable-product-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"magento-commerce":["2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"mage-os":[]},"unknownVersions":[],"requires":["MDVA-43862"],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-base","constraint":">=2.4.5 <2.4.6","path":"patches/os/ACSD-48627_2.4.5-p1.patch","blobSha":"c872c9c2c9973b5878e00ec71fc181476e6309e4","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-48627_2.4.5-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-configurable-product-graph-ql/Model/Resolver/Product/Price/Provider.php","change":"modified","package":"magento/module-configurable-product-graph-ql"}],"packages":["magento/module-configurable-product-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["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.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},{"package":"magento/magento2-base","constraint":">=2.4.6 <2.4.7","path":"patches/os/ACSD-57880_2.4.6-p3.patch","blobSha":"42a160309edfe685dcba6c4b467bb42e10d3e840","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-57880_2.4.6-p3.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-configurable-product-graph-ql/Model/Resolver/Product/Price/Provider.php","change":"modified","package":"magento/module-configurable-product-graph-ql"}],"packages":["magento/module-configurable-product-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"],"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"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/inventory-metapackage","constraint":">=1.2.3 <1.2.4","path":"patches/os/ACSD-48419_1.2.3-p2.patch","blobSha":"31800c0768391e83c26ceb1d8dae4104a5db62cb","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-48419_1.2.3-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-catalog/Model/ResourceModel/AddStockDataToCollection.php","change":"modified","package":"magento/module-inventory-catalog"}],"packages":["magento/module-inventory-catalog"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"mage-os":[]},"unknownVersions":["2.3.7-p4","2.3.7-p3","2.3.7-p2","2.3.7-p1","2.3.7","2.3.6-p1","2.3.6","2.3.5-p2","2.3.5-p1","2.3.5","2.3.4-p2","2.3.4-p1","2.3.4","2.3.3-p2","2.3.3","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/inventory-metapackage","constraint":">=1.2.4 <1.2.5","path":"patches/os/ACSD-50591_1.2.4-p1.patch","blobSha":"02f2e46e7399aebfe977d1e611235633bd932a98","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-50591_1.2.4-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-catalog/Model/ResourceModel/AddStockDataToCollection.php","change":"modified","package":"magento/module-inventory-catalog"}],"packages":["magento/module-inventory-catalog"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"magento-commerce":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"mage-os":[]},"unknownVersions":["2.3.7-p4","2.3.7-p3","2.3.7-p2","2.3.7-p1","2.3.7","2.3.6-p1","2.3.6","2.3.5-p2","2.3.5-p1","2.3.5","2.3.4-p2","2.3.4-p1","2.3.4","2.3.3-p2","2.3.3","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"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","2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"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","2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"mage-os":[]},"conditions":{"and":[{"type":"log","path":"var/log/exception.log","match":"*report.ERROR: Warning: Undefined array key 3 in */Model/Resolver/Product/Price/Provider.php on line*"}]},"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-48627 details"}