Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8246

Test failure: NodeSetPrimaryTypeTest.testSetPrimaryType()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.3, 1.14.0
    • Component/s: jcr
    • Labels:
      None

      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().

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                reschke Julian Reschke
                Reporter:
                mreutegg Marcel Reutegger
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: