[BUGFIX] Gracefully show missing files in IRRE relations 89/36489/3
authorJan Helke <typo3@helke.de>
Thu, 17 Apr 2014 13:24:58 +0000 (15:24 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 31 Jan 2015 11:01:41 +0000 (12:01 +0100)
commita93027380153d163d9ca372b85738d9211fef198
tree2a5af2d8cab4987517595cca6c5e789544825132
parent2b5e54a6aea11f74a1adac84bcc9b283e4dbedb1
[BUGFIX] Gracefully show missing files in IRRE relations

When the database is inconsistent and a sys_file entry linked
from sys_file_reference does not exist anymore, an exception
is shown in the "page" module in the backend:

> No file found for given UID.

We will now gracefully show the reference as "broken" and let
the action up to the editor. Works for temporarily unavailable
storages too.

Releases: master, 6.2
Resolves: #58013
Change-Id: Ibce9bb3b60e9294aa1902b95c1b99337d3a8e2e6
Reviewed-on: http://review.typo3.org/36489
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/core/Classes/Resource/Exception/InvalidUidException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php
typo3/sysext/core/Classes/Resource/Service/UserFileInlineLabelService.php