Simplify private file routing

Created on 27 October 2022, about 2 years ago
Updated 16 July 2024, 5 months ago

Problem/Motivation

Fixing #3312198: Regression concerning the cache of private files is tricky because of PathProcessorFiles, which converts paths like system/files/path/to/private/file.txt to an internal path of system/files?file=path/to/private/file.txt.

PathProcessorFront claims that "the route system does not allow arbitrary amount of parameters", but Symfony supports it using route parameters and this is surely fixable in the rest of Drupal's routing system.

This would hopefully help to fix this issue and also solve a source of confusion about how the private file routing works, as I've had to trace through this before and it is always tricky.

Steps to reproduce

Proposed resolution

Refactor away PathProcessorFiles so it is no longer needed.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Needs work

Version

11.0 🔥

Component
File system 

Last updated about 5 hours ago

Created by

🇬🇧United Kingdom longwave UK

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024