BUGFIX: Skip node data processing for invalid properties #4807
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It can happen that node properties are not available in a new version of the package. But when the properties are still part of the neos_contentrepository_domain_model_nodedata table, the migration tries to process the data for a node and throws an exception as the node property is not available in the node type schema anymore.
To prevent that exceptions in the legacy data migration, we skip the procession for such properties and output a warning for the user.
Fixes: #4804
Review instructions
As it is described in the linked issue, the twitter related properties in the Neos-Seo package have been removed in the latest version for Neos 9. When you upgrade your project from Neos 8.3 to Neos 9.0 you will increase the package version as well, but the data is still part of your database. To be able to test it, you can install a Neos 8.3 instance and change a Twitter Card property in the backend and publish that. When you now upgrade the Neos to version 9.0 and execute
![Screenshot 2023-12-15 at 18 04 02](https://private-user-images.githubusercontent.com/1014126/290892063-a1645803-9752-4cbe-85e4-dea7218a7c62.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MDIwNzgsIm5iZiI6MTczOTcwMTc3OCwicGF0aCI6Ii8xMDE0MTI2LzI5MDg5MjA2My1hMTY0NTgwMy05NzUyLTRjYmUtODVlNC1kZWE3MjE4YTdjNjIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMTAyOTM4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Yjc2YWEyNzkwMWI2ZGM5NWYwNThiZGNmOGIyNGY5MjRlMzlhNDA1Y2Q2ZWUzZTAwOGJkYTUyZGM0ZGU2YTJmNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.-Z_5CtP0x4BvjW_gnwGQNkUzHalIGI_ddGgybHIi7-Y)
./flow cr:migrateLegacyData
You should see something like that instead of an exception.Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions