Project

General

Profile

Actions

Bug #62853

closed

Caching datamaps within eID-requests results in incomplete cache entries

Added by Frederic Gaus over 9 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2014-11-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

news_3.0.1_201411111307.zip (927 KB) news_3.0.1_201411111307.zip Modified News System Extension with eID class for testing Frederic Gaus, 2014-11-11 13:15
12.png (66.6 KB) 12.png Screenshot of cache-entry created during eID request Frederic Gaus, 2014-11-11 13:22
41.png (583 KB) 41.png Correct cache entry in datamap cache entry Frederic Gaus, 2014-11-11 13:22

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #62742: TCA schould always be loaded earlyRejected2014-11-06

Actions
Related to TYPO3 Core - Bug #68106: cf_extbase_datamapfactory_datamap created wrong with sys_categoriesClosed2015-07-14

Actions

Updated by Frederic Gaus over 9 years ago

Attach screenshots

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

Updated by Stefan Masztalerz about 9 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

Actions #7

Updated by Helmut Hummel about 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.

Actions

Also available in: Atom PDF