Replace event_subscriber service with http_middleware to support more use cases

Created on 17 November 2023, 7 months ago
Updated 16 March 2024, 3 months ago

Problem/Motivation

It seems like a bug that this module is a request event subscriber rather than a middleware. Was that intentional?

Some middlewares expect to have access to the client IP address and other aspects of the request that require the trusted reverse proxy logic already being in place.

Steps to reproduce

Use another module with middleware, for example ban module, which expects to be able to get the client IP address.

Presumably this could also affect middlewares which expect to determine whether or not the request is secure (HTTPS).

Proposed resolution

Convert the request event subscriber to middleware.

Remaining tasks

If this is in fact a bug, work on a merge request.

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mfb San Francisco

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024