Bug #92761
closedTypeError in Wizard TableController if db contains null
100%
Description
A TypeError might occur when using the TableController as wizard for an input field in TCA.
Given the following configuration for TCA field:
'example_field' => [ 'exclude' => true, 'label' => 'example field for table wizard', 'config' => [ 'default' => '', 'type' => 'text', 'renderType' => 'textTable', 'cols' => 80, 'rows' => 15, 'wrap' => 'off', ], ],
And the following ext_tables.sql:
example_field mediumtext,
That will result in:
(1/1) TypeError Argument 1 passed to TYPO3\CMS\Backend\Controller\Wizard\TableController::configurationStringToArray() must be of the type string, null given, called in /typo3/sysext/backend/Classes/Controller/Wizard/TableController.php on line 316
As the called method requires a string, but null is passed from db query result.
The code is the same for 9, 10 and master, the issue should exist in all three versions. We've encountered the issue in v10 LTS.
Updated by Gerrit Code Review about 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66381
Updated by Gerrit Code Review about 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66381
Updated by Gerrit Code Review about 4 years ago
Patch set 1 for branch 10.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/+/66573
Updated by Gerrit Code Review about 4 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66574
Updated by Daniel Siepmann about 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 3743a10957c0438a5eee627ce835619af1aea665.