[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

ACSD-68206: GraphQL server fails with rate limiting and PHP Redis extension

The ACSD-68206 patch fixes the issue where the GraphQL Application server throws an error when working with the Rate Limiting feature and the PHP Redis extension, which disrupts rate limit functionality. This patch is available when the Quality Patches Tool (QPT) 1.1.73 is installed. The patch ID is ACSD-68206. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.8-p2

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.7 - 2.4.8-p3
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

The issue occurs when the GraphQL Application server uses the Rate Limiting feature with the PHP Redis extension installed, resulting in a broken rate limit functionality.

Steps to reproduce:

  1. Install the PHP Redis extension.
  2. Configure Redis for the application.
  3. Set up the rate limiter to allow one order per customer every minute.
  4. Start the GraphQL application server.
  5. As a customer, submit an order using the PlaceOrder GraphQL mutation.
  6. Within one minute, submit a second order using the PlaceOrder GraphQL mutation for the same customer.

Expected results:

The PlaceOrder GraphQL request returns a message limiting order attempts.

Actual results:

The server returns a 500 error for the second PlaceOrder GraphQL request. The exception log records:

report.CRITICAL: Error: Call to a member function exec() on null in vendor/colinmollenhour/credis/Client.php:1336

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3