Description
After changes done for OAK-8232, there is now a test failure when running on MongoDB.
https://travis-ci.org/apache/jackrabbit-oak/jobs/520361171
[ERROR] testSetPrimaryType(org.apache.jackrabbit.test.api.NodeSetPrimaryTypeTest) Time elapsed: 0.02 s <<< ERROR! javax.jcr.RepositoryException: Unable to auto-create value for /testroot/node1/jcr:activityTitle at org.apache.jackrabbit.oak.plugins.tree.TreeUtil.autoCreateItems(TreeUtil.java:358) at org.apache.jackrabbit.oak.jcr.session.NodeImpl.internalSetPrimaryType(NodeImpl.java:1369) at org.apache.jackrabbit.oak.jcr.session.NodeImpl.access$700(NodeImpl.java:110) at org.apache.jackrabbit.oak.jcr.session.NodeImpl$25.performVoid(NodeImpl.java:959) at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(SessionDelegate.java:273) at org.apache.jackrabbit.oak.jcr.session.NodeImpl.setPrimaryType(NodeImpl.java:948) at org.apache.jackrabbit.test.api.NodeSetPrimaryTypeTest.testSetPrimaryType(NodeSetPrimaryTypeTest.java:63)
The test uses the node type nt:activity which has an auto-created property not supported by TreeUtil.autoCreateItems().