Bug #102404
closedField scope in sys_csp_resolution is too small
100%
Description
In frontend context the field scope in table sys_csp_resolution is filled with a concatenation of "frontend." and the site configuration identifier.
When the site identifier is too long, new entries in sys_csp_resolution fail for frontend requests:
Uncaught TYPO3 Exception: #1406: An exception occurred while executing a query: Data too long for column 'scope' at row 1
This can happen e.g. in a fresh TYPO3 installation where there was no manual site configuration. Then the site identifiert looks like this:autogenerated-1-c4ca4238a0b923820dcc509a6f75849b
The scope would then be frontend.autogenerated-1-c4ca4238a0b923820dcc509a6f75849b
which is tool long.
To mitigate the problem we need to double the field size at least. This will solve the problem for the above mentioned case.
But since the site identifier has a TCA configuration for max. 255 chars I'd go for varchar(264).
Possible implication: the scope is used in the CSP backend module in a table view. A very long field value might break the design of the table.
Updated by Gerrit Code Review about 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81794
Updated by Gerrit Code Review about 1 year ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81775
Updated by Peter Kraume about 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset dbc964d442e35b8f32adf131b08b1624d87421ee.
Updated by Garvin Hicking 3 months ago
- Related to Bug #104686: Field scope in sys_http_report is too small added