diff --git a/.composer.json b/.composer.json index c6cb442b48a..1f711071094 100644 --- a/.composer.json +++ b/.composer.json @@ -10,7 +10,9 @@ "lint:phpstan": "../../bin/phpstan analyse", "lint": [ "@lint:phpstan" - ] + ], + "test:behat-cli": "../../bin/behat -f progress --strict --no-interaction", + "build:composer-json": "php ../../Build/BuildEssentials/ComposerManifestMerger.php" }, "replace": { }, diff --git a/Neos.Neos/Classes/Domain/Service/UserService.php b/Neos.Neos/Classes/Domain/Service/UserService.php index f538ec08c66..0a07baf2a9b 100644 --- a/Neos.Neos/Classes/Domain/Service/UserService.php +++ b/Neos.Neos/Classes/Domain/Service/UserService.php @@ -902,8 +902,13 @@ protected function deletePersonalWorkspace($accountIdentifier) { $userWorkspace = $this->workspaceRepository->findByIdentifier(UserUtility::getPersonalWorkspaceNameForUsername($accountIdentifier)); if ($userWorkspace instanceof Workspace) { + $rootNode = $userWorkspace->getRootNodeData(); $this->publishingService->discardAllNodes($userWorkspace); $this->workspaceRepository->remove($userWorkspace); + + // Persist removal of workspace so we can remove the root node without a foreign key constraint violation + $this->persistenceManager->persistAll(); + $rootNode->remove(); } } diff --git a/Neos.Neos/Documentation/Appendixes/ChangeLogs/8317.rst b/Neos.Neos/Documentation/Appendixes/ChangeLogs/8317.rst new file mode 100644 index 00000000000..d6b3cba63a9 --- /dev/null +++ b/Neos.Neos/Documentation/Appendixes/ChangeLogs/8317.rst @@ -0,0 +1,94 @@ +`8.3.17 (2024-09-17) `_ +================================================================================================ + +Overview of merged pull requests +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +`BUGFIX: Fix autoselection of ancestor nodes in Workspace module `_ +---------------------------------------------------------------------------------------------------------------------------------- + +* Fixes: `#5231 `_ + +* Packages: ``Neos`` + +`BUGFIX: Remove rootnode when user workspace is deleted `_ +------------------------------------------------------------------------------------------------------------------------- + +* Fixes: `#2193 `_ + +**Review instructions** + +Previously all root nodes of workspaces that belonged to removed users stayed in the database. +With this change, the root nodes are removed as well. + +1. Create a user +2. Delete the new user +3. No root node should remain of the personal workspace of the removed user + +* Packages: ``Neos`` + +`BUGFIX: Translate FlashMessage if asset is still in use in media browser inspector `_ +------------------------------------------------------------------------------------------------------------------------------------------------------ + +Bugfix for `#5085 `_no error if asset still in use and show flashmessage solution set class neos-notification-container as id + +In media browser inspector if assets are deleted wich are still used no FlashMessage was showed and on second delete an error pages was showed. + +Solution: +In Neos.Media:Browser/Resources/Private/Layouts/Default.html change class neos-notification-container to id neos-notification-container, because Notification.js / Toast is searching for id neos-notification-container to insert FlashMessages. + +`
+
+
+ +
+ +
+