Bug #80082
closedLinking to files using the link wizard does not store a reference to the file
0%
Description
It seems like there are problems with linking to images from within the RTE. It seems to be related to https://forge.typo3.org/issues/77866 but that report is about inline images, a similar problem occurs with linking to files using the link wizard.
Short problem: no reference to the file is stored so it can still be removed from the filelist while a link exists. When the file is removed this leads to a fatal error "No file found for given UID: 1". This already occurs while editing in the backend so there's no way for the editor to get back to a working state.
Steps to reproduce:
- Clean install of TYPO3 8.6.1
- Upload a file
- Create a page with a text element
- Create a link to the file using the link wizard in the RTE
- Delete the file in the filelist
- Open the page again in the page module, and enjoy the "Oops" screen ;-)
I could reproduce with both rtehtmlarea and ckeditor.