Project

General

Profile

Actions

Bug #87540

closed

cache_treelist does not take BE users into account

Added by Philipp Thiele over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2019-01-24
Due date:
% Done:

100%

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

Description

cache_treelist table caches the tree for the current user. If the user is anonymous, fetching cached tree for logged in backend users will skip pages allowed for those users. If the backend user was logged in when cache was created, anonymous users will get a list of pages accessible to that user (basically: hidden pages are added to cache_treelist).
exspecially confusing when using \TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor and use preview of hidden page.

Example TS:

tt_content {
    nestedContentElement {
        templateName = NestedContentElement 
        dataProcessing {
            10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
            10 {
                table = tx_extensionname_domain_model_nestedcontent
                pidInList = 1
                languageField = sys_language_uid
                where.data = field:uid
                where.wrap = contentelement=|
                recursive = 99
                orderBy = sorting
                as = nestedContent
            }
        }
    }
}

Reproducable in TYPO3 8.7 & 9.5
related to / very much the same as #22236 issued with frontend users


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #22236: cache_treelist does not take FE users into accountClosedDmitry Dulepov2010-03-04

Actions
Actions

Also available in: Atom PDF