Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 39675 invoked from network); 26 Jun 2009 08:57:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jun 2009 08:57:20 -0000 Received: (qmail 63686 invoked by uid 500); 26 Jun 2009 08:57:30 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 63620 invoked by uid 500); 26 Jun 2009 08:57:30 -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 63563 invoked by uid 99); 26 Jun 2009 08:57:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 08:57:30 +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; Fri, 26 Jun 2009 08:57:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4DED4234C045 for ; Fri, 26 Jun 2009 01:57:08 -0700 (PDT) Message-ID: <730053973.1246006628318.JavaMail.jira@brutus> Date: Fri, 26 Jun 2009 01:57:08 -0700 (PDT) From: "angela (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2172) SystemView: Session.importXML silently imports protected nodes if their parent isn't protected In-Reply-To: <2121121690.1246006267344.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-2172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] angela updated JCR-2172: ------------------------ Attachment: SystemViewTest.java 2 tests demonstrating the behaviour described in the issue. - testImportProtectedNodes attempts to import a hierarchy of protected items - testImportProtectedNode attempts to import a single protected node without protected child nodes. > SystemView: Session.importXML silently imports protected nodes if their parent isn't protected > ---------------------------------------------------------------------------------------------- > > Key: JCR-2172 > URL: https://issues.apache.org/jira/browse/JCR-2172 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 2.0-alpha3 > Reporter: angela > Attachments: SystemViewTest.java > > > The sys-view import handled by SessionImport is intended to skip protected items or to throw an exception: > - protected properties are skipped > - child nodes of existing protected nodes are skipped > - child nodes of non-existing protected nodes result in an ConstraintViolationException and the import is aborted. > However, if the XML to be imported contains a Node that would result in a protected Node the following occurs: > - If the XML defines child nodes for the protected node the import fails (see above) > - If the XML does not define any child nodes for the protected node the import succeeds and the protected Node is > silently created and can be persisted. > This looks inconsistent to me and i consider this behavior a bug. > Not sure if this is a problem that exists for a longer time or has been introduced recently... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.