#110421Install tool answers with an empty response when an exception is handled
Description
Any uncaught exception in an install tool request produces HTTP 500 with a zero byte body. Nothing is in the response, and nothing is in the TYPO3 log – the only trace is in the web server log:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function
TYPO3\CMS\Core\Controller\ErrorPageController::__construct(), 0 passed
in GeneralUtility.php on line 2489 and exactly 4 expected
#1 ProductionExceptionHandler.php(61)
ProductionExceptionHandler::echoExceptionWeb() renders its page through ErrorPageController, which is created from the dependency injection container. The install tool runs on the failsafe container, which does not have that service, so GeneralUtility::makeInstance() falls through to constructing the class directly and dies on its required constructor arguments – inside the exception handler, which therefore replaces the exception it was about to report with a fatal error of its own.
DebugExceptionHandler is not affected; it builds its HTML itself.
Fix
Fall back to a self contained page when the regular one cannot be built, so the response keeps title, message and code of the original exception. An exception handler must never throw.
Patch
Gerrit 95186, topic database-analyzer.
Releases: main, 14.3, 13.4