From dev-return-36396-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Sun Oct 7 01:59:05 2012 Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A825DD2D for ; Sun, 7 Oct 2012 01:59:05 +0000 (UTC) Received: (qmail 35225 invoked by uid 500); 7 Oct 2012 01:59:04 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 35113 invoked by uid 500); 7 Oct 2012 01:59:04 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 35078 invoked by uid 99); 7 Oct 2012 01:59:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2012 01:59:03 +0000 Date: Sun, 7 Oct 2012 01:59:03 +0000 (UTC) From: "Lars Michele (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1997291534.5884.1349575143533.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (JCR-2756) Shareable node test failures MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-2756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Michele updated JCR-2756: ------------------------------ Attachment: jackrabbit-core-shareable-nodes.patch > Shareable node test failures > ---------------------------- > > Key: JCR-2756 > URL: https://issues.apache.org/jira/browse/JCR-2756 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core, jackrabbit-jcr-tests > Affects Versions: 2.0, 2.1, 2.1.1, 2.2.13, 2.4.3, 2.5.2 > Reporter: Jukka Zitting > Attachments: jackrabbit-core-shareable-nodes.patch > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira