[BUGFIX] Catch all exceptions in page module of form framework 56/56056/2
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Tue, 20 Feb 2018 16:40:22 +0000 (17:40 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 8 Mar 2018 11:01:00 +0000 (12:01 +0100)
commitc204adbedaecf43d3c4121906362cfefd538dffe
tree115522aec7ae35c7423adc69b5819b13fe556279
parente2af7c6ed81629aa4a089537ba4ecd202a971521
[BUGFIX] Catch all exceptions in page module of form framework

Catch the toplevel \Exception within the preview renderer hook. This
prevents that the page module shows an exception stacktrace if a
formDefinition - which is referenced within a form plugin - is moved
manually to a different location.
The problem occurs because the TYPO3\CMS\Core\Resource\Driver\LocalDriver
throws some top level exceptions (e.g. within getFileInfoByIdentifier()).

Resolves: #83777
Releases: master, 8.7
Change-Id: I686adb9e38b6f1b0bcb9830fe71d318ba0199a75
Reviewed-on: https://review.typo3.org/56056
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Classes/Hooks/FormPagePreviewRenderer.php
typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php