Issue Bug Closed

#101570TYPO3 crashes on unavailable sys_csp_resolution table while csp is enabled

Daniel Siepmann 08/03/23, 21:00 updated 07/09/24, 14:15

Description

Reproduce:

  1. Enable CSP feature for backend
  2. Ensure sys_csp_resolution table is missing, e.g. execute drop table sys_csp_resolution
  3. Log into TYPO3 backend
  1. Enable CSP feature for frontend
  2. Ensure sys_csp_resolution table is missing, e.g. execute drop table sys_csp_resolution
  3. Open TYPO3 frontend

Error:

(1/3) #1146 Doctrine\DBAL\Exception\TableNotFoundException

An exception occurred while executing a query: Table 'own_danielsiepmann.sys_csp_resolution' doesn't exist

Triggered by vendor/typo3/cms-core/Classes/Security/ContentSecurityPolicy/Reporting/ResolutionRepository.php line 58 findByScope()

Reviews 2