Project

General

Profile

Bug #88895

Updated by Mathias Brodala over 4 years ago

I have this configuration, which is dynamically set from a hook: 
 module.tx_form.settings.yamlSettingsOverrides.persistenceManager.allowedFileMounts.1 =1:groups/{uid}/forms/ 

 We are using the "groupHomePath userGroupHomePath core feature":https://docs.typo3.org/m/typo3/reference-inside/8.7/en-us/CoreArchitecture/AccessControl/MoreAboutFileMounts/Index.html#home-directories. feature. Here you can define a path - for example 1:groups/. Then if you are member of backendgroup with uid 200, you will automatically get a mount to 1:groups/200/ if that folders exists. 

 I have a problem when ext:form tries to create the folder. Instead of 1:groups/200/forms it created this path instead: 1:groups/200/groups/200/forms 

 The reason seems to be when \TYPO3\CMS\Core\Resource\ResourceStorage::createFolder tries to get the parentFolder - instead of getting just 1: - it gets 1:/groups/200 - probably as the user does not have access to parent folders (because of the way userGroupHome works). 
 That way it creates 1:/groups/200/ + groups/200/forms/ instead.

Back