Project

General

Profile

Actions

Bug #98105

closed

DatabaseBrowser does not respect TsConfig option pageTree.altElementBrowserMountPoints anymore

Added by Christian Sonntag over 2 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2022-08-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Stabilization Sprint

Description

Via TsConfig it's supposed to be possible to set alternate mount points for BE-Users or BE-Groups. See https://docs.typo3.org/m/typo3/reference-tsconfig/main/en-us/UserTsconfig/Options.html#pagetree-altelementbrowsermountpoints

Until Typo3 11.x this also had an effect on the

\TYPO3\CMS\Recordlist\Browser\Databrowser
. On Apr 16th 2021 this functionality has been removed completeley. See https://sourcegraph.com/github.com/TYPO3-CMS/recordlist/-/commit/32258eacb313c403a69bc206b325ef9302d46578

Before the following method call had been fired right at the beginning of

DatabaseBrowser::render()

$this->setTemporaryDbMounts()

Part of that method was the call of
$backendUser->initializeWebmountsForElementBrowser()

Instead the call of

$this->getBackendUser()->initializeWebmountsForElementBrowser()
was added to
\TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler
and
\TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler

The impact is that the TsConfig option to set alternate mount points does not apply to group fields anymore. I.e. until Typo3 10 it was possible to give BE-users the rights to select DB records of sys_folders that weren't in their regular mount points.

Possible solution would be to re-add the call of

$this->getBackendUser()->initializeWebmountsForElementBrowser()
at the beginning of
DatabaseBrowser::render()
. See attached patch file


Files

Actions #1

Updated by Benni Mack over 1 year ago

  • Sprint Focus set to Stabilization Sprint
Actions #2

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79722

Actions #3

Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79722

Actions #4

Updated by Gerrit Code Review about 1 year ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81773

Actions #5

Updated by Benni Mack about 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF