Inject the session service into FileAccessControlHandler so it can use it for anonymous access checks

Created on 22 June 2017, almost 8 years ago
Updated 28 May 2025, 2 days ago

There is a @todo in the code that was added to Drupal 8 to fix https://www.drupal.org/SA-CORE-2017-003:

          // @todo - implement \Symfony\Component\DependencyInjection\ContainerInterface
          // so that services can be more properly injected.
          $allowed_temp_files = \Drupal::service('session')->get('allowed_temp_files', []);

This issue is for resolving that @todo.

📌 Task
Status

Needs work

Version

11.0 🔥

Component

file.module

Created by

🇺🇸United States David_Rothstein

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

Merge Requests

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