#108612DB mounts are removed if more than one workspace mount exists
Description
Situation: A user has configured DB mounts, and is member of a workspace that has more than one workspace mount configured.
If the user switches to that workspace, no pages are visible because all DB mounts are removed in BackendUserAuhtentication::initializeDbMountpointsInWorkspace().
The check wrongly checks each DB mount against each workspace mount, and if the DB mount is not part of the WS mount, it is dropped. So it effectively checks if the DB mount is part of all workspace mounts, while it would be sufficient to check if it is part of any (= at least one) workspace mount.
The relevant code was apparently introduced in 2020 via #91594 and #91918.
Reviews 1
History 16
-
Gerrit Code Review pushed patch set 1 for main to change 92270 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2026-01-09T15:18:15+00:00" > 01/09/26, 15:18 </span> -
Gerrit Code Review pushed patch set 2 for main to change 92270 <span data-processor="relativetime" data-value="2026-01-23T15:48:44+00:00" > 01/23/26, 15:48 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 92270 <span data-processor="relativetime" data-value="2026-04-22T06:27:49+00:00" > 04/22/26, 06:27 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 92270 <span data-processor="relativetime" data-value="2026-08-06T20:00:21+00:00" > 08/06/26, 20:00 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 92270 <span data-processor="relativetime" data-value="2026-10-07T14:13:28+00:00" > 10/07/26, 14:13 </span>
See https://github.com/andreaswolf/typo3-dev-env/tree/main/108612-fix-workspace-db-mounts for a DB dump that aids in reproducing this issue.
The `admin` user has password `Password123!`. To see the issue, switch user to `ed.itor` and open workspace `WS mount test`.