Review 9.5 Merged

61534[BUGFIX] File can be deleted even if there are references to it

Georg Ringer CR +2 V +2 Easy +2 −0 updated 08/20/19, 12:01

Commit message

TYPO3 prevents files from being deleted by the user when there
are references to it in the sys_file_reference table. However
if the file is referenced without using this table, the file is
still deleted without any warnings. An example is a link to the
file in a bodytext of a text content element. Thus it is possible
to accidentally delete a file, which is referenced on the site
in multiple places and create broken links.

This change makes sure that such direct references (without using
sys_file_reference) also prevent the file from being deleted.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 1