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 "Julian Reschke (JIRA)" <ji...@apache.org> on 2019/04/16 08:02:00 UTC

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

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

Julian Reschke edited comment on OAK-8246 at 4/16/19 8:01 AM:
--------------------------------------------------------------

Note that the test is {{org.apache.jackrabbit.test.api.NodeSetPrimaryTypeTest.testSetPrimaryType}}, so we may have to fix the Jackrabbit test suite.


was (Author: reschke):
Note that the test is {{org.apache.jackrabbit.test.api.NodeSetPrimaryTypeTest.testSetPrimaryType}}, so we may have to fix Jackrabbit.

> 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
>            Assignee: 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)