Problem/Motivation
When a link references a file served from the Drupal-managed files directory (e.g. /sites/site-name/files/fiel-name.pdf), the module flags the URL as access-denied.


| Comment | File | Size | Author |
|---|---|---|---|
| #7 | access-denied-error.png | 82.84 KB | eduardo morales alberti |
| #7 | not_translated_file.png | 50.95 KB | eduardo morales alberti |
Issue fork entity_mesh-3591295
Show commands
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
eduardo morales albertiWe need more info on how to reproduce it
Comment #5
eduardo morales albertiComment #6
eduardo morales albertiComment #7
eduardo morales albertiAfter reviewing the problem with @frouco the problem comes when the media file's original language does not match the content language or is not translated.
Comment #8
eduardo morales albertiThe problem comes because the media is not translated 404/403, so it does not reach the file, as the file is the "link", we should check if the file is accessible
Comment #9
eduardo morales albertiReady to review, now it gets the file from the media, and checks the file access instead of the media.
src/Repository:checkDownloadAccessEntity
src/EntityRender:accessCheckTarget
Comment #11
lpeidro commentedI have reviewed the MR and checked it in local.
It works as expected.
It is ready to merge.
Comment #12
lpeidro commented