-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9.0 Should a direct or indirect NodeType constraint allowing the node creation win? #4351
Labels
Comments
6 tasks
mhsdesign
added a commit
that referenced
this issue
Feb 1, 2024
mhsdesign
added a commit
that referenced
this issue
Feb 10, 2024
github-project-automation
bot
moved this from Under Review 👀
to Done ✅
in Neos 9.0 Release Board
Mar 11, 2024
mhsdesign
added a commit
to Flowpack/Flowpack.NodeTemplates
that referenced
this issue
Jun 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given you have this NodeType definition
now when you want to create the following node structure (either by the ui or the correct commands)
(Basically we want to insert a Text node with a text into the content collection)
you will find out that this succeeds in the "old" CR Neos 8 but will throw a NodeConstraintException in Neos 9:
on Node creation the constraint check in 8.3 looks like this:
neos-development-collection/Neos.ContentRepository/Classes/Domain/Model/Node.php
Lines 1911 to 1925 in 378a029
in Neos 9 we assert in
requireConstraintsImposedByAncestorsAreMet
first that
requireNodeTypeConstraintsImposedByParentToBeMet
AND therequireNodeTypeConstraintsImposedByGrandparentToBeMet
Discussion
I want to discuss, which behavior is correct.
@nezaniel and me already started the conversation in slack:
The text was updated successfully, but these errors were encountered: