Description
When creating Blueprints with Subsite bootstrap content (see [1]), if you copy a folder with a facet navigation node to the new-subsite template node auto-export doesn't work and logs several errors.
Reproduction steps:
- On a new 12.0.2 archetype install the Essentials Blogs feature.
- You should now have a facet navigation node under /content/documents/myhippoproject
- Copy the entire myhippoproject node to /hippo:configuration/hippo:queries/hippo:templates/new-subsite/hippostd:templates and give it a name (for example "blogs")
- Write the changes to the repository
- Expected behaviour: Auto-export creates a new yaml file with these changes
- Actual behaviour: There are several errors (all the same error) related to the facets available with the following stack trace:
INFO 11:29:28 ERROR Processing events failed:
INFO javax.jcr.PathNotFoundException: jcr:primaryType
INFO at org.apache.jackrabbit.core.NodeImpl$11.perform(NodeImpl.java:2265) ~[jackrabbit-core-2.14.0-h2.jar:2.14.0-h2]
INFO at org.apache.jackrabbit.core.NodeImpl$11.perform(NodeImpl.java:2252) ~[jackrabbit-core-2.14.0-h2.jar:2.14.0-h2]
INFO at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) ~[jackrabbit-core-2.14.0-h2.jar:2.14.0-h2]
INFO at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) ~[jackrabbit-core-2.14.0-h2.jar:2.14.0-h2]
INFO at org.apache.jackrabbit.core.NodeImpl.getProperty(NodeImpl.java:2252) ~[jackrabbit-core-2.14.0-h2.jar:2.14.0-h2]
INFO at org.hippoecm.repository.decorating.NodeDecorator.getProperty(NodeDecorator.java:250) ~[hippo-repository-connector-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.JcrContentExporter.exportPrimaryTypeAndMixins(JcrContentExporter.java:185) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.AutoExportConfigExporter.exportProperties(AutoExportConfigExporter.java:91) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.AutoExportConfigExporter.exportNode(AutoExportConfigExporter.java:220) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.AutoExportConfigExporter.exportNode(AutoExportConfigExporter.java:250) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.AutoExportConfigExporter.exportNode(AutoExportConfigExporter.java:250) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.AutoExportConfigExporter.exportConfigNodeDelta(AutoExportConfigExporter.java:479) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.AutoExportConfigExporter.exportConfigNode(AutoExportConfigExporter.java:198) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.EventJournalProcessor.createChangesModule(EventJournalProcessor.java:545) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.EventJournalProcessor.processEvents(EventJournalProcessor.java:356) [hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.EventJournalProcessor.tryProcessEvents(EventJournalProcessor.java:253) [hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.EventJournalProcessor.lambda$new$0(EventJournalProcessor.java:127) [hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at org.onehippo.cm.engine.autoexport.EventJournalProcessor$$Lambda$115/543056314.run(Unknown Source) [hippo-repository-engine-5.0.2.jar:5.0.2]
INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_51]
INFO at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_51]
INFO at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_51]
INFO at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_51]
INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_51]
INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_51]
INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
[1] https://www.onehippo.org/library/concepts/channels/blueprints/blueprints-configuration.html