Should this module be a middleware rather than request event subscriber?

Created on 17 November 2023, over 1 year 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

πŸ› Bug report
Status

Active

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.71.5 2024