Bug #62853
closed
Caching datamaps within eID-requests results in incomplete cache entries
Added by Frederic Gaus almost 10 years ago.
Updated over 9 years ago.
Description
When a datamap cache entry is written while the TCA is not fully loaded (which is the case in eID-requests) incomplete cache entries are stored in the cache table cf_extbase_datamapfactory_datamap`. This breaks extbase functionality as within a normal request this datamap is restored and used.
Steps to reproduce:
Install this modified "News System"-extension (attached)
Execute SQL:
TRUNCATE TABLE cf_extbase_datamapfactory_datamap
Call test-eID:
http://typo3git.ubuntudev/index.php?eID=test
have a look at the cache-entries in cf_extbase_datamapfactory_datamap. You can compare the results also on the attached screenshots.
Files
- 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 http://review.typo3.org/33980
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33980
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33980
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33980
You are asuming that the TCA is allways loaded when building the DataMapper except when entering by eID.
What is when called by Hook? see related Feature #62742
- Status changed from Under Review to Rejected
Interacting with core API in an early bootstrap stage needs good internal knowledge of the system.
Using Extbase in eID context is not recommended and happens at own risk. The core will not deal with that situation.
I recommend having a look at https://github.com/helhum/typoscript_rendering or similar approaches and using Extbase only in a context where the Bootstrap of TYPO3 is complete.
Also available in: Atom
PDF