#105699Using <f:image in SystemEmail trigger exception in backend context
Description
To reproduce the bug:
in settings.php
'EXTENSIONS' => [
'backend' => [
'loginLogo' => 'fileadmin/user_upload/test.jpg',
],
],
in SystemEmail.html, use `<f:image base64="true" src="{typo3.systemConfiguration.backend.loginLogo}"></f:image>`
Then, use the “forgot password” link before you log in the backend
It will trigger this exception
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1375955684: You are not allowed to access the given folder: "_processed_" | TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException thrown in file /var/www/html/vendor/typo3/cms-core/Classes/Resource/ResourceStorage.php in line 875. Requested URL: https://test-distrib.ddev.site/typo3/login/password-reset/initiate-reset?loginProvider=1433416747
A mail sent by EXT:form in a frontend context will work nice as expected.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Using <f:image in SystemEmail trigger exception in backend context Resolves: #105699 Releases: main
Related issues 1
History 3
-
Sebastien Convers changed Related to #97733 <span data-processor="relativetime" data-value="2024-11-26T07:55:28+00:00" > 11/26/24, 07:55 </span>
-
Garvin Hicking commented and changed category status
NewAccepted <span data-processor="relativetime" data-value="2024-11-26T10:34:16+00:00" > 11/26/24, 10:34 </span> -
Benni Mack changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2026-08-06T16:02:27+00:00" > 08/06/26, 16:02 </span>
This probably is due to the FAL in backend context checking the user permissions, and in your case no valid BE user account exists. I don’t have a good idea to solve this – circumventing the BE user checks would allow for possible arbitrary file inclusion. Not using the EXT notation here has some problematic implications. And the mail must be sent in backend context due to other requirements, and we cannot just switch to “frontend mode” for the image generation here without nasty hacks.