Bug #87540
closedcache_treelist does not take BE users into account
100%
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
Updated by Philipp Thiele almost 6 years ago
- Related to Bug #22236: cache_treelist does not take FE users into account added
Updated by Gerrit Code Review about 5 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 https://review.typo3.org/c/Packages/TYPO3.CMS/+/62172
Updated by Benni Mack almost 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a08c6b09a44257695c29292c8fcd11b7d336ed18.
Updated by Gerrit Code Review almost 5 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62284
Updated by Gerrit Code Review almost 5 years ago
Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62284
Updated by Benni Mack almost 5 years ago
- Status changed from Under Review to Resolved
Applied in changeset f16f98592f2bb5b3838160617d43438bdf62e602.