Project

General

Profile

Actions

Bug #53672

closed

Files can not be deleted anymore

Added by Martin Holtz over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-11-15
Due date:
% Done:

100%

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

Description

I uploaded an image for testing purpose on a TYPO3 6.2beta1 Web. And directly after that i wanted do delete the file again. But that is not possible, because "The file cannot be deleted since it is still used at the following places:"

But i just uploaded the file, i did not used it and the list of places is empty.


Files

53672_references_to_this_item.png (5.76 KB) 53672_references_to_this_item.png Martin Holtz, 2013-11-15 15:59
Actions #1

Updated by Martin Holtz over 10 years ago

I had a look into the database, i have two records uid 8 and uid 14 with the same image. And the image seems to reference to itself... somehow. See attached image.

Actions #2

Updated by Martin Holtz over 10 years ago

Martin Holtz wrote:

I had a look into the database, i have two records uid 8 and uid 14 with the same image. And the image seems to reference to itself... somehow. See attached image.

Ok, now i get it. The reference is sys_file_metadata:8:file. I tried to delete that record via database, which does not help. The metadata record is created automatically before i can delete the record.

Actions #3

Updated by Steffen Ritter over 10 years ago

  • Subject changed from recently uploaded file can not be deleted. to Files can not be deleted anymore
  • Status changed from New to Accepted
  • Priority changed from Should have to Must have
  • Target version set to 6.2.0

the reference check must exclude tables sys_file_metadata and sys_category as these are not usages

Actions #4

Updated by Gerrit Code Review over 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25456

Actions #5

Updated by Frans Saris over 10 years ago

The provided patch in gerrit is easy to test.

Edit de file info (title, description etc) of a new uploaded file in the filemodule and after save try to delete the file.

Actions #6

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25456

Actions #7

Updated by Markus Klein over 10 years ago

Testing instructions:

  • Upload file in Filelist via d&d for instance
  • Edit it once and save+close it. (no need to change anything, just to create the refindex)
  • try to delete the file
Actions #8

Updated by Frans Saris over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF