Skip to content

Commit

Permalink
BUGFIX: Remove workspace creation from EditorContentStreamZookeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign authored and bwaidelich committed Oct 22, 2024
1 parent 1831094 commit 92d2705
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 92d2705

Please sign in to comment.