networkteam / sentry_client

TYPO3 Extension for exception logging with sentry, see http://www.getsentry.com
33 stars 35 forks source link

Exception logged when page is disabled: The requested page does not exist! #46

Closed cweiske closed 2 years ago

cweiske commented 3 years ago

On TYPO3 v10, sentry_client logs an exception to sentry when a normal user (not logged in) tries to access a hidden page:

The requested page does not exist!

component: TYPO3.CMS.Frontend.Controller.TypoScriptFrontendController

The reason is that TypoScriptFrontendController logs an error before calling the page not found handler - see https://git.typo3.org/Packages/TYPO3.CMS.git/blob/9f8b73eb73f0f9834979641c02708dc168e36eda:/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php#l1386 (typo3 v10.4.14)

We cannot configure sentry_client to ignore this message because it's a log message and not an exception message.


This happens with sentry_client v3.0.2 and TYPO3 v10.4.14.

christophlehmann commented 2 years ago

404/403 are not reported anymore. Also hidden pages are 404 now instead 403.

https://review.typo3.org/c/Packages/TYPO3.CMS/+/71797