Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-237 Run Jackrabbit query tests
  3. OAK-299

Node Type support: SQL2QueryResultTest fails

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.5
    • jcr
    • None

    Description

      Another jackrabit query test that fails: SQL2QueryResultTest#testSQL2SelectColums [0]

      I think this one is about node types [1]

      [0]
      https://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/SQL2QueryResultTest.java

      [1]
      javax.jcr.nodetype.ConstraintViolationException: Can't add node node1 at /testroot
      at org.apache.jackrabbit.oak.plugins.type.TypeValidator.throwConstraintViolationException(TypeValidator.java:213)
      at org.apache.jackrabbit.oak.plugins.type.TypeValidator.childNodeAdded(TypeValidator.java:114)
      at org.apache.jackrabbit.oak.spi.commit.CompositeValidator.childNodeAdded(CompositeValidator.java:68)
      at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.childNodeAdded(ValidatingHook.java:157)
      at org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:134)
      at org.apache.jackrabbit.oak.kernel.KernelNodeState.compareAgainstBaseState(KernelNodeState.java:233)
      at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.validate(ValidatingHook.java:112)
      at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.validate(ValidatingHook.java:103)
      at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.childNodeChanged(ValidatingHook.java:175)
      at org.apache.jackrabbit.oak.spi.state.AbstractNodeState.compareAgainstBaseState(AbstractNodeState.java:127)
      at org.apache.jackrabbit.oak.kernel.KernelNodeState.compareAgainstBaseState(KernelNodeState.java:233)
      at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.validate(ValidatingHook.java:112)
      at org.apache.jackrabbit.oak.spi.commit.ValidatingHook$ValidatorDiff.validate(ValidatingHook.java:103)
      at org.apache.jackrabbit.oak.spi.commit.ValidatingHook.processCommit(ValidatingHook.java:75)
      at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:50)
      at org.apache.jackrabbit.oak.kernel.KernelNodeStoreBranch.merge(KernelNodeStoreBranch.java:128)
      at org.apache.jackrabbit.oak.core.RootImpl$1.run(RootImpl.java:172)
      at org.apache.jackrabbit.oak.core.RootImpl$1.run(RootImpl.java:1)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:337)
      at org.apache.jackrabbit.oak.core.RootImpl.commit(RootImpl.java:167)
      at org.apache.jackrabbit.oak.jcr.SessionDelegate.save(SessionDelegate.java:225)
      at org.apache.jackrabbit.oak.jcr.SessionImpl.save(SessionImpl.java:274)
      at org.apache.jackrabbit.core.query.SQL2QueryResultTest.setUp(SQL2QueryResultTest.java:59)
      at junit.framework.TestCase.runBare(TestCase.java:132)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:456)
      at junit.framework.TestSuite.runTest(TestSuite.java:243)
      at junit.framework.TestSuite.run(TestSuite.java:238)
      at junit.framework.TestSuite.runTest(TestSuite.java:243)
      at org.apache.jackrabbit.test.ConcurrentTestSuite.access$001(ConcurrentTestSuite.java:29)
      at org.apache.jackrabbit.test.ConcurrentTestSuite$2.run(ConcurrentTestSuite.java:67)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:662)

      Attachments

        1. OAK-299-node-types.patch
          3 kB
          Alex Deparvu

        Activity

          People

            mduerig Michael Dürig
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: