You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch to the layer - the site is there. All is good is far.
Archive the site in the layer
Switch back to the project. Create a new content under the site.
Switch back to the layer. Nothing is synced. Still correct.
Go to the layer's archive and restore the site.
The expected behaviour is that the new items added to the parent site would be synced to the site in the layer after it has been restored. But instead there's an error in the logs:
10:05:38.806 ERROR c.e.x.c.i.c.ProjectContentEventListener - Project node sync failed
java.lang.IllegalArgumentException: targetContent must be set.
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:141)
at com.enonic.xp.core.impl.content.UpdatedEventSyncCommand$Builder.validate(UpdatedEventSyncCommand.java:193)
at com.enonic.xp.core.impl.content.UpdatedEventSyncCommand$Builder.build(UpdatedEventSyncCommand.java:199)
at com.enonic.xp.core.impl.content.ParentContentSynchronizer.lambda$new$5(ParentContentSynchronizer.java:72)
at com.enonic.xp.core.impl.content.ParentContentSynchronizer.createEventCommand(ParentContentSynchronizer.java:305)
at com.enonic.xp.core.impl.content.ParentContentSynchronizer.sync(ParentContentSynchronizer.java:188)
at com.enonic.xp.core.impl.content.ProjectContentEventListener.lambda$doHandleContentEvent$11(ProjectContentEventListener.java:177)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at com.enonic.xp.core.impl.content.ProjectContentEventListener.lambda$doHandleContentEvent$14(ProjectContentEventListener.java:138)
at com.enonic.xp.context.ContextImpl.runWith(ContextImpl.java:84)
at com.enonic.xp.core.impl.content.ProjectContentEventListener.doHandleContentEvent(ProjectContentEventListener.java:102)
at com.enonic.xp.core.impl.content.ProjectContentEventListener.lambda$handleContentEvent$4(ProjectContentEventListener.java:89)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
The text was updated successfully, but these errors were encountered:
The expected behaviour is that the new items added to the parent site would be synced to the site in the layer after it has been restored. But instead there's an error in the logs:
The text was updated successfully, but these errors were encountered: