Project

General

Profile

Actions

Bug #92761

closed

TypeError in Wizard TableController if db contains null

Added by Daniel Siepmann over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Start date:
2020-11-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

Updated by Gerrit Code Review over 3 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

Actions #2

Updated by Gerrit Code Review over 3 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

Actions #3

Updated by Gerrit Code Review over 3 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

Actions #4

Updated by Gerrit Code Review over 3 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

Actions #5

Updated by Daniel Siepmann over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF