Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2756

Shareable node test failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.0, 2.1, 2.1.1, 2.2.13, 2.4.3, 2.5.2
    • None
    • None

    Description

      There's a problem in the ShareableNodeTest class that makes it always throw NotExcecutableExceptions due to a null argument being passed to ensureKnowsNodeType(). The following patch fixes this problem:

      — a/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ShareableNodeTest.java
      +++ b/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ShareableNodeTest.java
      @@ -45,8 +45,6 @@ import org.apache.jackrabbit.test.NotExecutableException;
      */
      public class ShareableNodeTest extends AbstractJCRTest {

      • private String mixShareable;
        -
        protected void setUp() throws Exception {
        super.setUp();
        try {
        @@ -56,7 +54,6 @@ public class ShareableNodeTest extends AbstractJCRTest { cleanUp(); throw e; }
      • mixShareable = superuser.getNamespacePrefix(NS_MIX_URI) + ":shareable";
        }

      protected void tearDown() throws Exception {

      Once this patch is applied, we get the following test failures:

      testGetName(org.apache.jackrabbit.test.api.ShareableNodeTest)
      testGetNode(org.apache.jackrabbit.test.api.ShareableNodeTest)
      testGetNodes(org.apache.jackrabbit.test.api.ShareableNodeTest)
      testGetNodesByPattern(org.apache.jackrabbit.test.api.ShareableNodeTest)

      The problem seems to be caused by the ItemManager already having the non-shared version of a node cached when the mix:shareable mixin is added.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jukkaz Jukka Zitting
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: