Skip to content
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

BUGFIX: Use "stable" identifier when auto-creating child nodes #3336

Conversation

gerhard-boden
Copy link
Contributor

Since node:repair uses the buildAutoCreatedChildNodeIdentifier, it would
best to ensure the identifier is already correct when auto-creating child nodes.

Otherwise the identifier will be changed to a so called "stable"
identifier during a node:repair run which can lead to unwanted
behaviour in certain applications.

Since ``node:repair`` uses the ``buildAutoCreatedChildNodeIdentifier``,
it would best to ensure the ``identifier`` is already correct when auto-creating
child nodes.

Otherwise the identifier will be changed to a so called "stable"
identifier during a ``node:repair`` run which can lead to unwanted
behaviour in certain applications.
Copy link
Member

@kdambekalns kdambekalns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very reasonable…

@mficzel mficzel requested review from mficzel and albe April 22, 2021 10:08
@mficzel
Copy link
Member

mficzel commented Apr 23, 2021

@albe this one should be merged before we say goodbye to 4.3 ...

$childNodeType,
Utility::buildAutoCreatedChildNodeIdentifier(
$childNodeName,
$node->getNodeAggregateIdentifier()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is getNodeAggregateIdentifier() available in 4.3?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yes, seems like it

@gerhard-boden
Copy link
Contributor Author

thanks for the reviews! 👍

@gerhard-boden gerhard-boden merged commit 9cd1521 into neos:4.3 Apr 26, 2021
@gerhard-boden gerhard-boden deleted the bugfix-always-use-correct-node-identifier branch April 26, 2021 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants