Project

General

Profile

Actions

Bug #79101

closed

Story #69617: FormEngine bugs

InvalidPointerFieldValueException needs to be caught

Added by Alexander Schnitzler over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2016-12-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::getDataStructureIdentifierFromRecord tries to resolve the data structure of a record from another record in the database. This is a common practice in TemplaVoilà for instance.

If the identifier is an empty string or 0 (zero), a InvalidPointerFieldValueException is thrown, which is the right thing to do in the mentioned method.
Problem is, that the Exception is not caught in \TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::getDataStructureIdentifier.

The exception says, the problem is most likely a wrong configured TCA, which is not right if there is just no relation (yet) to a datastructure record. Thus, the exception needs to be handled properly during further execution.

Usual use case:
During the localization of a content element, the overlay usually does not get the same identifier value as its parent, thus the whole localization fails.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #78158: TcaFlexFetch::initializeDataStructure should not throw an exceptionClosed2016-10-06

Actions
Actions

Also available in: Atom PDF