Issue Bug Closed

#106103Usergroups created by bin/typo3 setup:begroups:default have fileadmin access but no file mount

Lina Wolf 02/06/25, 18:32 updated 12/02/25, 14:27

Description

I think also creating a file mount for fileadmin/user_upload would be a good default

Currently when you create the Editor or Advanced editor using command

bin/typo3 setup:begroups:default

A usergroup with fileadmin access but access to no folder is generated. If they go to the fileadmin there will be a red flash box

Missing folder permissions
You have no access to the folder "1:/user_upload/".

I they create a link in the RTE and go to the “files” tab they get an exception

(1/1) #1375955684 TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException
You are not allowed to access the given folder: ""

in /var/www/html/vendor/typo3/cms-core/Classes/Resource/ResourceStorage.php line 876

Without even the possibility to switch back to another tab.

You can try this out with the docs team demo project:

https://github.com/TYPO3-Documentation/site-introduction

And user e.doe (editor) or a.doe (advanced editor)

Reviews 2

Files 1

History 512

  1. Lina Wolf commented <span data-processor="relativetime" data-value="2025-02-06T18:39:41+00:00" > 02/06/25, 18:39 </span>

    When the user is trying to use a content element with image they will get the following exception:

    Call to a member function getRootLevelFolder() on false
    in /var/www/html/vendor/typo3/cms-filelist/Classes/ElementBrowser/AbstractResourceBrowser.php line 123
  2. Lina Wolf commented <span data-processor="relativetime" data-value="2025-02-07T13:48:34+00:00" > 02/07/25, 13:48 </span>

    The Error in the RTE with You are not allowed to access the given folder: “” is resolved in the current main Core. The user is just not seeing any folder and cannot link to a file. This makes more sense then an exception, however I still think, user_upload would be a good default

  3. Lina Wolf commented and changed attached clipboard-202502071450-bdnpy.png <span data-processor="relativetime" data-value="2025-02-07T13:50:10+00:00" > 02/07/25, 13:50 </span>

    The exception in the image linking widget is also removed, however a more helpful error message for the editor might be helpful:

    clipboard-202502071450-bdnpy.png

  4. Lina Wolf commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-03-27T21:30:07+00:00" > 03/27/25, 21:30 </span>

    Applied in changeset commit:659d399bda15ec351502901f79cc0e1ddb34e72c.