Bug #97853
closed
Undefined array key access in DataMapFactory
Added by Francois Suter over 2 years ago.
Updated about 2 years ago.
Description
In a couple of places class \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapFactory
accesses the TCA without checking if a definition really exists for the given table name. This causes warnings with PHP 8+.
- Status changed from New to Under Review
The scenario where I ended up having to fix the issues in the patch is the following:
- I have extension "sf_register"
- I am extending the fe_users table using extension "extender"
- I have a special field type, which requires invoking a custom TypeConverter
- when this happens, DataMapFactory is called up with the name of the extended class, which it tries to match to an Extbase-like table name ("tx_foo_domain_model_bar") which does not exist
- simply avoiding errors in the places fixed in the patch, allows the process to flow freely
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF