mPDF can't access private files for image creation

Created on 24 July 2014, over 10 years ago
Updated 28 January 2023, about 2 years ago

When rendering the pdf file the module appears as an anonymous user instead of the active session user and this blocks the access the site's private files.
To bypass the problem currently I'm creating a copy of the files in the public:// directory and deleting them after the pdf creation. This is a quick/dirty fix and works fine but I suppose that the module should be using the active user when rendering the file. Am I doing something wrong or is the correct behavior?

๐Ÿ› Bug report
Status

Needs work

Version

2.2

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ฑChile dpliscoff

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