-
Notifications
You must be signed in to change notification settings - Fork 34
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
createBranch does not push root node from master to branchId #8697
Comments
This would be breaking if we start doing that, because all existing developer's code will start failing with |
According to the code root node is always pushed immediately into a created branch. So, I need an example code, that demonstrates the bug |
could it be related to #9205 ? |
Can't reproduce it in
Most likely it was reproduced in a cluster environment, so an additional 'refresh' operation has been added to improve this case (for |
We haven't managed to reproduce the problem. Maybe it happens on cluster environments only? We added extra index refresh. It slows down branch creation a bit, and guarantees that root node existence is newly created branch is visible for sequential |
When you create a repo, the master branch will be created with a root node.
https://repo.enonic.com/public/com/enonic/xp/docs/7.6.0/docs-7.6.0-libdoc.zip!/module-repo.html#.create
When you create a branch, the root node is not pushed from the master branch unto the branchId
https://repo.enonic.com/public/com/enonic/xp/docs/7.6.0/docs-7.6.0-libdoc.zip!/module-repo.html#.createBranch
When you later try to make a node in the branch, you will get an error because the root path does not exist...
com.enonic.xp.node.NodeNotFoundException: Node with path [/] found in path-cache but not in storage
The text was updated successfully, but these errors were encountered: