Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
file system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 May 2026 at 00:08 UTC
Updated:
17 Sep 2026 at 18:05 UTC
Jump to comment: Most recent
#1452100: Private file download returns access denied, when file attached to revision other than current recently was committed but only contains functional test coverage for uploading files to nodes. While this does test the FileReferenceResolver service I think it would be wise to add additional, specific test coverage for the service. This will give us greater confidence to refactor this service.
Also seems like we may be missing coverage for some of the nuanced revision and translation handling, the service is rather complex.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
mohit_aghera commentedComment #5
smustgrave commentedFrom what I can tell this properly tests the file on different revisions. Wasn't sure what else to look for but LGTM.
Comment #6
mstrelan commentedLeft some questions, feel free to restore the RTBC status once answered.
Comment #7
smustgrave commented@mohit_aghera thoughts?
Comment #8
mohit_aghera commentedResolved both the comments.
Moving back to RTBC
Comment #11
longwaveBackported to 11.x as the class was also added there.
Committed and pushed 0d32f86cfe5 to main and 64388892dc9 to 11.x. Thanks!