Bug #62853
closedCaching datamaps within eID-requests results in incomplete cache entries
0%
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
Updated by Gerrit Code Review about 10 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 http://review.typo3.org/33980
Updated by Gerrit Code Review about 10 years ago
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
Updated by Gerrit Code Review about 10 years ago
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
Updated by Gerrit Code Review about 10 years ago
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
Updated by Stefan Masztalerz almost 10 years ago
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
Updated by Helmut Hummel over 9 years ago
- 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.