Project

General

Profile

Actions

Bug #85108

closed

Deletion of file is impossible, if filemount isn't /

Added by Markus Hofmann about 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2018-05-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

With a normal backend user it isn't possible to delete files, if the assigned sys_filemount path is not set to "/".

Way to reproduce:

  • create a sys_filemount with a path not "/" (e.g. "/user_upload/").
  • assign to a not admin backend user
  • give full access for file permissions
  • upload a new file (to wherever you want)
  • try to delete a file -> resumes to error #1375955684
#1375955684: You are not allowed to access the given folder: "" (More information)

TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException thrown in file
vendor/typo3/cms/typo3/sysext/core/Classes/Resource/ResourceStorage.php in line 765.

debugging the Method shows, that the system bubbles the folders up to "/" for checking the access. "/" is not allowed, because sys_filemount path is "/user_upload/". The backend user can't delete his own files.

I created a folder and deleted it. This worked fine.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #85079: You are not allowed to access the given folder: "user_upload"ClosedNicole Cordes2018-05-25

Actions
Actions

Also available in: Atom PDF