ACSD-67347: Orders fail with the Cannot acquire a lock error when coupons with special characters…
Orders fail with the Cannot acquire a lock error when coupons with special characters are used and file locking is enabled. Quality patch ACSD-67347 for magento/module-sales-rule applies to Magento Open Source and Adobe Commerce 2.4.5-p11 to 2.4.8-p5.
- Categories
- Shopping Cart
- Components
- magento/module-sales-rule
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.69
Issue
Orders fail with the Cannot acquire a lock error when coupons with special characters are used and file locking is enabled.
Steps to reproduce
1. Install 2.4-develop. 1. Set the file lock configuration in the env.php file: 'lock' => [ 'provider' => 'file', 'config' => [ 'path' => '/Users/awijesooriya/sites/acsd15194dev/locks' ] ], 1. Create a cart rule with a coupon using the coupon code format: BIT/123456. 1. Create a simple product. 1. Add the product to the cart and apply the coupon code. 1. Proceed to checkout and place the order.
Adobe's page lists 2.4.5-p11 - 2.4.5-p13 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.9.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-67347. On Cloud, add ACSD-67347 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-67347/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.4.5-p11 <2.4.6
- Patch file
- patches/os/ACSD-67347_2.4.5-p12.patch
- vendor/magento/module-sales-rule/Model/Coupon/Usage/Processor.php
magento/magento2-base >=2.4.6-p9 <2.4.7
- Patch file
- patches/os/ACP2E-3736_2.4.4-p12.patch
- vendor/magento/module-sales-rule/Model/Coupon/Usage/Processor.php
magento/magento2-base >=2.4.7-p4 <2.4.9
- Magento Open Source
- 2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8, 2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4
- Adobe Commerce
- 2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8, 2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4
- Patch file
- patches/os/ACP2E-3829_2.4.8.patch
- vendor/magento/module-sales-rule/Model/Coupon/Usage/Processor.php
