#88895Auto-creates wrong folders if groupHomePath is used.
Description
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 core 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.