[FEATURE] Request id as reference in error handler output
The ProductionExceptionHandler in EXT:core outputs error details, but not for every one. As a normal visitor you don't see any tracable error information. The ProductionExceptionHandler in EXT:frontend outputs "Oops, an error occurred!" followed by a timestamp + a hash. This is part of log messages. Whenever an error/exception is logged, the log message contains the request id. With this the request id is also shown in web output of error/exception handlers as public visible error reference. Releases: main Resolves: #103441 Change-Id: I6d6a68d2ea6a6978d3e977bece4336437e6a9890 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83499 Tested-by:core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Andreas Kienast <a.fernandez@scripting-base.de> Reviewed-by:
Andreas Kienast <a.fernandez@scripting-base.de>
Showing
- typo3/sysext/core/Classes/Controller/ErrorPageController.php 2 additions, 0 deletionstypo3/sysext/core/Classes/Controller/ErrorPageController.php
- typo3/sysext/core/Documentation/Changelog/13.1/Feature-103441-RequestIdAsPublicVisibleErrorReferenceInErrorHandlersOutput.rst 28 additions, 0 deletions...tIdAsPublicVisibleErrorReferenceInErrorHandlersOutput.rst
- typo3/sysext/core/Resources/Private/Templates/ErrorPage/Error.html 1 addition, 0 deletions...ext/core/Resources/Private/Templates/ErrorPage/Error.html
- typo3/sysext/frontend/Classes/ContentObject/Exception/ProductionExceptionHandler.php 13 additions, 16 deletions...es/ContentObject/Exception/ProductionExceptionHandler.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php 2 additions, 1 deletion...nd/Tests/Unit/ContentObject/ContentObjectRendererTest.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/Exception/ProductionExceptionHandlerTest.php 10 additions, 15 deletions...ontentObject/Exception/ProductionExceptionHandlerTest.php
Please register or sign in to comment