From 92d27055607e7e735f740585c42034c57db59947 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Thu, 17 Oct 2024 20:42:40 +0200 Subject: [PATCH] BUGFIX: Remove workspace creation from `EditorContentStreamZookeeper` neos ui part for https://github.com/neos/neos-development-collection/pull/5299 --- Classes/Controller/BackendController.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Classes/Controller/BackendController.php b/Classes/Controller/BackendController.php index 2016cc38d2..930035d88f 100644 --- a/Classes/Controller/BackendController.php +++ b/Classes/Controller/BackendController.php @@ -143,12 +143,9 @@ public function indexAction(string $node = null) $this->redirectToUri($this->uriBuilder->uriFor('index', [], 'Login', 'Neos.Neos')); } - try { - $workspace = $this->workspaceService->getPersonalWorkspaceForUser($siteDetectionResult->contentRepositoryId, $user->getId()); - } catch (WorkspaceDoesNotExist) { - // todo will cause infinite loop: https://github.com/neos/neos-development-collection/issues/4401 - $this->redirectToUri($this->uriBuilder->uriFor('index', [], 'Login', 'Neos.Neos')); - } + $this->workspaceService->createPersonalWorkspaceForUserIfMissing($siteDetectionResult->contentRepositoryId, $user); + $workspace = $this->workspaceService->getPersonalWorkspaceForUser($siteDetectionResult->contentRepositoryId, $user->getId()); + $contentGraph = $contentRepository->getContentGraph($workspace->workspaceName); $rootDimensionSpacePoints = $contentRepository->getVariationGraph()->getRootGeneralizations();