Project

General

Profile

Actions

Bug #88895

closed

Auto-creates wrong folders if groupHomePath is used.

Added by Stig Nørgaard Færch over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Start date:
2019-08-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
CodingNight
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint

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.

Actions

Also available in: Atom PDF