#50871Remove option to delete a File Storage
Description
Currently it doesn’t make sense you can delete a storage.
When you delete a storage there is no check if there are still files in uses of this storage.
So everywhere where a reference to a sys_file of the deleted storage is present you get a Exception.
Reviews 3
Related issues 3
History 1214
-
Andreas Wolf commented and changed status
NewAccepted Is Regression 0 <span data-processor="relativetime" data-value="2014-06-20T11:06:16+00:00" > 06/20/14, 11:06 </span>I just had this case while debugging a broken installation. I think the DataMapper should check in a hook that no files are still in use from that storage (or we disallow deletion completely if that’s possible).
-
Frans Saris changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2015-01-27T07:53:35+00:00" > 01/27/15, 07:53 </span>
-
Ingo Schmitt changed Complexity medium <span data-processor="relativetime" data-value="2015-01-29T23:48:01+00:00" > 01/29/15, 23:48 </span>
-
Philipp Gampe changed status
AcceptedIn Progress <span data-processor="relativetime" data-value="2015-01-30T00:25:40+00:00" > 01/30/15, 00:25 </span> -
Alexander Opitz commented <span data-processor="relativetime" data-value="2015-01-30T10:15:38+00:00" > 01/30/15, 10:15 </span>
I think, we should left the possibility to delete storages, for example if you moved from a local to a remote storage (or vice versa). Maybe first we need to define scenarios.
But maybe this scenarios lead to a “FAL Management Extension” which is more for admins and not editors (like media).
-
Philipp Gampe commented <span data-processor="relativetime" data-value="2015-01-30T10:40:25+00:00" > 01/30/15, 10:40 </span>
I also think that deleting orphaned storages should be possible.
-
Gerrit Code Review changed status
In ProgressUnder Review <span data-processor="relativetime" data-value="2015-01-30T18:25:13+00:00" > 01/30/15, 18:25 </span> Patch set 1 for branch *master* of project *Packages/TYPO3.CMS* has been pushed to the review server. It is available at http://review.typo3.org/36456 -
Gerrit Code Review <span data-processor="relativetime" data-value="2015-01-31T14:17:03+00:00" > 01/31/15, 14:17 </span> Patch set 2 for branch *master* of project *Packages/TYPO3.CMS* has been pushed to the review server. It is available at http://review.typo3.org/36456
-
Philipp Gampe commented and changed category status
Under ReviewAccepted <span data-processor="relativetime" data-value="2015-01-31T15:49:01+00:00" > 01/31/15, 15:49 </span>The solution here is to deny deletion of any record which is still referenced.
This would also solve #55714
-
Philipp Gampe changed status
AcceptedNew <span data-processor="relativetime" data-value="2015-01-31T16:27:09+00:00" > 01/31/15, 16:27 </span> -
Anja Leichsenring changed Sprint Focus
On Location SprintRemote Sprint <span data-processor="relativetime" data-value="2015-08-10T08:02:01+00:00" > 08/10/15, 08:02 </span> -
Riccardo De Contardi changed category target version <span data-processor="relativetime" data-value="2016-05-05T22:14:55+00:00" > 05/05/16, 22:14 </span>
-
Georg Ringer commented and changed status
NewRejected <span data-processor="relativetime" data-value="2025-01-10T09:39:16+00:00" > 01/10/25, 09:39 </span>I am closing this issue. this is admin only and even editors can “destroy” the site by removing the wrong stuff, e.g. disabling the root page.
having some basic checks is not helpful at all because there could be relations to file from content elements which are located on a deleted page or on a not available page(-tree).
if there are exceptions in frontend because the storage itself is removed, this need be be fixed but deleting the storage record should always be possible
If we see a storage as a definition to connect a folder of the physical file system with the TYPO3 file abstraction layer, then we still might allow to remove the storage definition, however should catch the exceptions – or add an option to the install tool to remove a storage, it’s sys_file records (not the actual files), sys_file_references and processed files.