Set retry enabled to FALSE in config settings has no effect

Created on 4 May 2023, over 1 year ago
Updated 17 May 2023, over 1 year ago

Problem/Motivation

If we set the retry enabled to false in the settings UI, it has no effect. It still executes the retry.

Steps to reproduce

Just install the module and go to the system settings. Just disable the Enable retries setting. Then execute a client request that runs in an error.

Note: If you pass retry_enabled => FALSE to the options, it works.

Proposed resolution

In the class, src/HTTP/HttpClientMiddleware.php do not use the array_filter function. It filters all false values. But we want false here. The next line, then, sets the value to true.

We have PHP 8.1 in place in our installation.

I will provide a patch.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany danielspeicher Steisslingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024