Bug Report
The determineBlogSetups method from SetupService determines all pages with the BLOG_POST doctype, including those from workspaces. If there is a newly created page with a subpage with the BLOG_POST doctype in a workspace that the backend user has not selected, a PageNotFoundException occurs in all blog modules.
Prerequisites
Description
Based on the preliminary analysis, the bug occurs because in the determineBlogSetups method from the SetupService class, rootlines are to be created for pages that are not available in the currently selected workspace.
One way to fix the bug is to add a corresponding restriction to the $queryBuilder: $queryBuilder->getRestrictions()->add(GeneralUtility::makeInstance(WorkspaceRestriction::class, $GLOBALS['BE_USER']->workspace));
Steps to Reproduce
- switch to a workspace
- create a page, set it to visible
- create another page of the type (doktype) Blog Post [137] as a subpage of the first page created, set it to visible
- switch to the live workspace
- call up the Blog > Setup module
Expected behavior:
Actual behavior:

Versions
Bug Report
The
determineBlogSetupsmethod fromSetupServicedetermines all pages with the BLOG_POST doctype, including those from workspaces. If there is a newly created page with a subpage with the BLOG_POST doctype in a workspace that the backend user has not selected, aPageNotFoundExceptionoccurs in all blog modules.Prerequisites
Description
Based on the preliminary analysis, the bug occurs because in the
determineBlogSetupsmethod from theSetupServiceclass, rootlines are to be created for pages that are not available in the currently selected workspace.One way to fix the bug is to add a corresponding restriction to the
$queryBuilder:$queryBuilder->getRestrictions()->add(GeneralUtility::makeInstance(WorkspaceRestriction::class, $GLOBALS['BE_USER']->workspace));Steps to Reproduce
Expected behavior:
Actual behavior:
Versions