From 7a2e68abaedf25420a88118644e527575381089a Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Thu, 17 Oct 2024 20:41:42 +0200 Subject: [PATCH] BUGFIX: Remove workspace creation from `EditorContentStreamZookeeper` Resolves: https://github.com/neos/neos-development-collection/issues/4401 --- Neos.Neos/Classes/Package.php | 9 -- .../Service/EditorContentStreamZookeeper.php | 100 ------------------ 2 files changed, 109 deletions(-) delete mode 100644 Neos.Neos/Classes/Service/EditorContentStreamZookeeper.php diff --git a/Neos.Neos/Classes/Package.php b/Neos.Neos/Classes/Package.php index e849a14d7cb..448a5f64152 100644 --- a/Neos.Neos/Classes/Package.php +++ b/Neos.Neos/Classes/Package.php @@ -21,7 +21,6 @@ use Neos\Flow\Package\Package as BasePackage; use Neos\Flow\Persistence\Doctrine\PersistenceManager; use Neos\Flow\Persistence\PersistenceManagerInterface; -use Neos\Flow\Security\Authentication\AuthenticationProviderManager; use Neos\Fusion\Core\Cache\ContentCache; use Neos\Media\Domain\Model\AssetInterface; use Neos\Media\Domain\Service\AssetService; @@ -31,7 +30,6 @@ use Neos\Neos\Domain\Service\SiteService; use Neos\Neos\Fusion\Cache\AssetChangeHandlerForCacheFlushing; use Neos\Neos\Routing\Cache\RouteCacheFlusher; -use Neos\Neos\Service\EditorContentStreamZookeeper; /** * The Neos Package @@ -132,13 +130,6 @@ function ( 'flushCaches' ); - $dispatcher->connect( - AuthenticationProviderManager::class, - 'authenticatedToken', - EditorContentStreamZookeeper::class, - 'relayEditorAuthentication' - ); - $dispatcher->connect(AssetService::class, 'assetRemoved', function (AssetInterface $asset) use ($bootstrap) { /** @var GlobalAssetUsageService $globalAssetUsageService */ diff --git a/Neos.Neos/Classes/Service/EditorContentStreamZookeeper.php b/Neos.Neos/Classes/Service/EditorContentStreamZookeeper.php deleted file mode 100644 index 4ea58ba6d74..00000000000 --- a/Neos.Neos/Classes/Service/EditorContentStreamZookeeper.php +++ /dev/null @@ -1,100 +0,0 @@ -bootstrap->getActiveRequestHandler(); - if (!$requestHandler instanceof HttpRequestHandlerInterface) { - // we might be in testing context - return; - } - try { - $siteDetectionResult = SiteDetectionResult::fromRequest($requestHandler->getHttpRequest()); - } catch (SiteDetectionFailedException) { - return; - } - - $authenticatedUser = $this->userService->getCurrentUser(); - if ($authenticatedUser === null) { - return; - } - if (!array_key_exists('Neos.Neos:AbstractEditor', $this->userService->getAllRoles($authenticatedUser))) { - return; - } - $this->workspaceService->createPersonalWorkspaceForUserIfMissing($siteDetectionResult->contentRepositoryId, $authenticatedUser); - } -}