You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2019/04/16 07:49:00 UTC

[jira] [Commented] (OAK-8246) Test failure: NodeSetPrimaryTypeTest.testSetPrimaryType()

    [ https://issues.apache.org/jira/browse/OAK-8246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16818744#comment-16818744 ] 

Marcel Reutegger commented on OAK-8246:
---------------------------------------

The reason why this only happens on DocumentNodeStore fixtures is the 'native' child order of nodes. Unordered nodes are backend NodeStore implementation specific and not the same for DocumentNodeStore and SegmentNodeStore. The test simply picks the first node type it thinks is suitable. Even though on a DocumentNodeStore the nt:activity it picks can/should only be used under /jcr:system/jcr:activities.

> Test failure: NodeSetPrimaryTypeTest.testSetPrimaryType()
> ---------------------------------------------------------
>
>                 Key: OAK-8246
>                 URL: https://issues.apache.org/jira/browse/OAK-8246
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.14.0
>
>
> 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
> {noformat}
> [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)
> {noformat}
> The test uses the node type nt:activity which has an auto-created property not supported by {{TreeUtil.autoCreateItems()}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)