Disable middleware while module isn't configured yet

Created on 21 February 2024, 4 months ago
Updated 6 March 2024, 4 months ago

Problem/Motivation

Pager requests fail with the following stack trace if the module isn't configured yet:

Symfony\Component\Config\Definition\BaseNode->finalize() (Line: 252)
Symfony\Component\Config\Definition\ArrayNode->finalizeValue() (Line: 421)
Symfony\Component\Config\Definition\BaseNode->finalize() (Line: 36)
Symfony\Component\Config\Definition\Processor->process() (Line: 46)
Symfony\Component\Config\Definition\Processor->processConfiguration() (Line: 295)
CrowdSec\CapiClient\Watcher->configure() (Line: 75)
CrowdSec\CapiClient\Watcher->__construct() (Line: 110)
Drupal\crowdsec\Client->watcher() (Line: 123)
Drupal\crowdsec\Client->remediation() (Line: 150)
Drupal\crowdsec\Client->verifyIp() (Line: 72)
Drupal\crowdsec\Middleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Proposed resolution

Disable middleware until module is properly configured.

πŸ“Œ Task
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

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

Comments & Activities

Production build 0.69.0 2024