Bug #91221
closedPagetree does not show with an editor account and a mounted page in a system folder in Typo3 9.5.16
100%
Description
When I log in with an editor account, the pagetree does not show and an error message is shown (see attached file).
In addition to that, the protocol doesn't show an entry either.
I cleared the cache, deleted the cache files manually, checked for some db updates and nothing worked so far.
Maybe it has something to do with "Respect site for route persisted mappers". It's just a guess.
Kind regards
Files
Updated by Robert Wolle over 4 years ago
It seems, that if you have a root page assigned, the error occurs. If you assign a page inside a page root, everything works fine. But we have groups for multiple root pages. So I don't know, what to do.
Updated by Robert Wolle over 4 years ago
- Subject changed from Pagetree does not show with an editor account in Typo3 9.5.16 to Pagetree does not show with an editor account and a mounted root page in Typo3 9.5.16
Updated by Tymoteusz Motylewski over 4 years ago
Hi Robert
Thanks for the report.
Can you explain the "that if you have a root page assigned, "?
Are you saying you have root page (the one with TYPO3 logo, uid=0) assigned to the user group?
Can you attach a screenshot from group configuration? And what is stored in the db for fields be_users.db_mountpoints and be_groups.db_mountpoints ?
AFAIK it's possible to select root page (uid=0) as a db mount for editor or editor group.
Updated by Robert Wolle over 4 years ago
- File Bildschirmfoto 2020-04-28 um 18.16.07.png Bildschirmfoto 2020-04-28 um 18.16.07.png added
- File group.png group.png added
Hi Tymoteusz,
the root pages have the flag is_siteroot always and a yaml configuration is set.
We assign at least one of these pages to the db_mountpoints. be_users.db_mountpoints are not used, be_groups.db_mountpoints only. We are in pagetree level > 1 (see screenshot). But the level doesn't matter. In a different system there is the same behavior with the page on level 1.
When I select a page inside, which has no is_siteroot flag, it works.
For our user groups we have a hierarchical theme:
all user (no mounts are set) -> editor group (width multiple rights; no mounts are set) -> page group (explicit mount is set)
With over 170 user and 70 depending usergroups it is not possible to select root page (uid=0) as a db mount. Each page is an individual website.
Thank you and kind regards
Updated by Thomas Oliver Moll over 4 years ago
I can confirm there is a Problem.
I did not see the red error message myself but it was reported to me.
But the real Problem here is, that my Editors, which are in multiple groups that inherit various DB-mounts, only see their page tree last mount point (i.e. the one that gets added last) in the page tree. As if the mount points are not added to the list but replace the list:
This is our setup- Group A (DB mount A)
- Group B (DB mount B)
- ...
- Group K (DB mount K)
- MasterGroup (inheriting Group A-K, DB mount L, DB mount M, DB mount N)
None of the mount point pages have is_siteroot set, they are sub pages of a sub site.
One of the mount points is a sys folder ... let's call it "DB mount J" in the example so it's smack in the middle of the List
Only DB mount N is showing up in the page tree for members if the MasterGroup
For Admins everything looks fine.
In 9.5.15 the Editors in the MasterGroup can see DB mount A-N
Updated by Thomas Oliver Moll over 4 years ago
- PHP Version changed from 7.2 to 7.3
Updated by Tymoteusz Motylewski over 4 years ago
Hi
I'm investigating the topic.
I managed to reproduce the issue with red error when user did not have access to the page listed as db mount.
Can you please check if this is also the case in your installation?
Updated by Robert Wolle over 4 years ago
- File access.png access.png added
Hi,
the rights for the pages are set. Each page has their own group assigned (see screenshot).
Kind regards
Updated by Tymoteusz Motylewski over 4 years ago
Another issue I see, which is really a bug is that when the mounted page is under not accessible page it will not be shown.
Updated by Robert Wolle over 4 years ago
I got it. If the page is in a sys folder on level 2, the pagetree will not get generated. When I move the site root under page uid = 0 on level 1, it'll work. But as I said. We have over 70 pages in the system and they have to be sorted in sys folder for organization.
So it has nothing to do with the is_siteroot flag. I'm sorry.
Kind regards
Robert
Updated by Robert Wolle over 4 years ago
- Subject changed from Pagetree does not show with an editor account and a mounted root page in Typo3 9.5.16 to Pagetree does not show with an editor account and a mounted page in a system folder in Typo3 9.5.16
Updated by Gerrit Code Review over 4 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/+/64346
Updated by Tymoteusz Motylewski over 4 years ago
I have pushed a POC patch. Please check if it solves the issue for you.
Updated by Robert Wolle over 4 years ago
- File before.png before.png added
- File now.png now.png added
The issue is solved, but the look did change (arrow before the globe; see screenshots). I know it's a cosmetic thing, but should be adapt so that the sub pages are always expanded and no possibility to fold the site root.
Thank you so far.
Updated by König David over 4 years ago
- Has duplicate Bug #91241: Backend User has no access to pages in TYPO3 9.5.16 and 10.4.0 added
Updated by König David over 4 years ago
The same Problem exist also in TYPO3 10 since 10.4.0. as i wrote in the duplicated Issue.
The Related Patch set 1 works for us on TYPO3 9.5.16 and 10.4.1. Thanks!
Updated by Thomas Oliver Moll over 4 years ago
Patch seems to fix the issue, thanks
Updated by Patrick Schriner over 4 years ago
My guess would be this was caused by https://forge.typo3.org/issues/90880 ?
Updated by Gerrit Code Review over 4 years ago
Patch set 2 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/+/64346
Updated by Tymoteusz Motylewski over 4 years ago
- Related to Task #90880: Filter pages user has access to on query time added
Updated by Tymoteusz Motylewski over 4 years ago
@Robert Lemke
Are you sure the arrow has changed between 9.5.15 and 9.5.16?
I've just tested it in 9.5.15 and I see the same arrows and in the same places as in 9.5.16
Updated by Gerrit Code Review over 4 years ago
Patch set 3 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/+/64346
Updated by Robert Wolle over 4 years ago
Hi Tymoteusz,
I'm sorry. I forgot to tell you, that it was a cache issue on my part.
Currently we have to use 9.5.13, because of two bugs regarding multisite setups. One is solved yet. ;-)
Thank you for your effort!
Kind regards
Updated by Gerrit Code Review over 4 years ago
Patch set 4 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/+/64346
Updated by Gerrit Code Review over 4 years ago
Patch set 5 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/+/64346
Updated by Gerrit Code Review over 4 years ago
Patch set 6 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/+/64346
Updated by Gerrit Code Review over 4 years ago
Patch set 7 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/+/64346
Updated by Gerrit Code Review over 4 years ago
Patch set 8 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/+/64346
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 10.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/+/64639
Updated by Tymoteusz Motylewski over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 32d9f05c3dbc26260f551aa17362b7df0a6983c1.
Updated by Gerrit Code Review over 4 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/+/64640
Updated by Tymoteusz Motylewski over 4 years ago
- Status changed from Under Review to Resolved
Applied in changeset 88dbb594c6443e006b8afe4348868aee6faafe5a.
Updated by Gerrit Code Review over 4 years ago
- Status changed from Resolved to Under Review
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/+/64640
Updated by Tymoteusz Motylewski over 4 years ago
- Status changed from Under Review to Resolved
Applied in changeset 1ca5301998086f0f1fbca926811a31e70dd33fc3.
Updated by Torben Hansen over 4 years ago
- Related to Bug #91753: Pagetree not respecting getPagePermsClause() added