Project

General

Profile

Actions

Bug #80152

closed

Filelist: File can not be deleted if it was reference once

Added by Thorben Nissen over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2017-03-06
Due date:
% Done:

0%

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

Description

It is not possible to delete files that had been referenced in a record, e.g. a content element. Steps to reproduce:

  1. Upload a file in the file list
  2. Add a new content element (e.g. of type "textmedia") and add this file (and save)
  3. Delete the file (reference) from the content element (and save)
  4. Try to delete the file in the file list

The file is not removed but a warning is shown:

File not deleted
The file cannot be deleted since it is still used at the following places: [record:tt_content:15943]

I tried this with 8.6.0 and the current master. Both the same behaviour.

This happens because deleted file references are considered in the checks in the ExtendedFileUtility. Whether the sys_refindex must be updated when deleting a file reference or the deleted file reference must be ignored on the process in ExtendedFileUtility.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #81087: Filelist: cannot delete a folder where there is a file that was referenced onceClosed2017-04-29

Actions
Has duplicate TYPO3 Core - Bug #80692: Deleting old files failsClosed2017-04-05

Actions
Actions

Also available in: Atom PDF