Bug #53672
closedFiles can not be deleted anymore
100%
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
Updated by Martin Holtz about 11 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.
Updated by Martin Holtz about 11 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.
Updated by Steffen Ritter about 11 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
Updated by Gerrit Code Review about 11 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
Updated by Frans Saris about 11 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.
Updated by Gerrit Code Review almost 11 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
Updated by Markus Klein almost 11 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
Updated by Frans Saris almost 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 95e8e33069b260becd7d96d271717aa9e1f14fb1.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed