Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 8232 invoked from network); 21 Jul 2009 08:14:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jul 2009 08:14:33 -0000 Received: (qmail 26496 invoked by uid 500); 21 Jul 2009 08:15:38 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 26409 invoked by uid 500); 21 Jul 2009 08:15:38 -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 26171 invoked by uid 99); 21 Jul 2009 08:15:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 08:15:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 08:15:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 23371234C046 for ; Tue, 21 Jul 2009 01:15:15 -0700 (PDT) Message-ID: <2028881222.1248164115143.JavaMail.jira@brutus> Date: Tue, 21 Jul 2009 01:15:15 -0700 (PDT) From: "Tobias Bocanegra (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-2159) Several test cases fail when declaring nt:base / nt:hierarchy node types as 'abstract' In-Reply-To: <1750582112.1245280447440.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733531#action_12733531 ] Tobias Bocanegra commented on JCR-2159: --------------------------------------- suggested to JSR283 to keep the abstract attribute on nt:base and nt:hierarchy node and i will adjust the tests, if no one objects. > Several test cases fail when declaring nt:base / nt:hierarchy node types as 'abstract' > --------------------------------------------------------------------------------------- > > Key: JCR-2159 > URL: https://issues.apache.org/jira/browse/JCR-2159 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-jcr-tests > Affects Versions: 2.0.0 > Reporter: Tobias Bocanegra > Assignee: Tobias Bocanegra > Priority: Blocker > Fix For: 2.0.0 > > > JSR283 introduces a new node type attribute 'abstract' and defines nt:base and nt:hierarchyNode as such. > when changing those nodetypes, the following test cases fail: > Failed tests: > testDefinedAndLegalType(org.apache.jackrabbit.test.api.nodetype.CanAddChildNodeCallWithNodeTypeTest) > testResidualAndLegalType(org.apache.jackrabbit.test.api.nodetype.CanAddChildNodeCallWithNodeTypeTest) > Tests in error: > testAddNodeConstraintViolationExceptionUndefinedNodeType(org.apache.jackrabbit.test.api.NodeTest) > testRemoveMandatoryNode(org.apache.jackrabbit.test.api.NodeTest) > testCloneNodesConstraintViolationException(org.apache.jackrabbit.test.api.WorkspaceCloneTest) > testCopyNodesConstraintViolationException(org.apache.jackrabbit.test.api.WorkspaceCopyBetweenWorkspacesTest) > testCopyNodesConstraintViolationException(org.apache.jackrabbit.test.api.WorkspaceCopyTest) > testMoveNodesConstraintViolationException(org.apache.jackrabbit.test.api.WorkspaceMoveTest) > testNodeTypeConstraintViolationWorkspaceWithHandler(org.apache.jackrabbit.test.api.SerializationTest) > testNodeTypeConstraintViolationSessionWithHandler(org.apache.jackrabbit.test.api.SerializationTest) > testNodeTypeConstraintViolationWorkspace(org.apache.jackrabbit.test.api.SerializationTest) > testNodeTypeConstraintViolationSession(org.apache.jackrabbit.test.api.SerializationTest) > testJoinFilterPrimaryType(org.apache.jackrabbit.test.api.query.SQLJoinTest) > testElementTest(org.apache.jackrabbit.test.api.query.ElementTest) > testElementTestAnyNode(org.apache.jackrabbit.test.api.query.ElementTest) > testElementTestAnyNodeNtBase(org.apache.jackrabbit.test.api.query.ElementTest) > testElementTestAnyNodeSomeNT(org.apache.jackrabbit.test.api.query.ElementTest) > testElementTestNameTest(org.apache.jackrabbit.test.api.query.ElementTest) > testElementTestNameTestNtBase(org.apache.jackrabbit.test.api.query.ElementTest) > testElementTestNameTestSomeNT(org.apache.jackrabbit.test.api.query.ElementTest) > testElementTestNameTestSomeNTWithSNS(org.apache.jackrabbit.test.api.query.ElementTest) > testNodeType(org.apache.jackrabbit.test.api.observation.AddEventListenerTest) > here's a stacktrace of a failing test: > javax.jcr.nodetype.ConstraintViolationException: nt:hierarchyNode: is an abstract node type. > at org.apache.jackrabbit.core.NodeImpl.internalAddChildNode(NodeImpl.java:768) > at org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:737) > at org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:691) > at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:2147) > at org.apache.jackrabbit.test.api.SessionTest.testMoveItemExistsException(SessionTest.java:69) > the failing tests are actually a backwards compatibility issue. nt:base and nt:hierarchyNode were > non-abstract in JCR 1.0, i.e. > node.addNode("foo", "nt:base"); > was perfectly legal. > however, as of JCR 2.0, above statement fails. all above mentioned tests fail because they > create nodes of type nt:base or nt:hierarchyNode. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.