Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 62612 invoked from network); 19 Mar 2007 13:06:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2007 13:06:55 -0000 Received: (qmail 21157 invoked by uid 500); 19 Mar 2007 13:07:01 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 20995 invoked by uid 500); 19 Mar 2007 13:07:01 -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 20953 invoked by uid 99); 19 Mar 2007 13:07:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 06:07:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 06:06:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54622714058 for ; Mon, 19 Mar 2007 06:06:32 -0700 (PDT) Message-ID: <1795339.1174309592342.JavaMail.jira@brutus> Date: Mon, 19 Mar 2007 06:06:32 -0700 (PDT) From: "Stefan Guggisberg (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-792) after enabling access manager, I can't createNode and setProperty without a node.save in the middle In-Reply-To: <31912213.1173904509388.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Guggisberg resolved JCR-792. ----------------------------------- Resolution: Invalid i ran your test code (against svn trunk). here's the console output: freshDB true checking permission on / checking permission on / checking permission on /newNode/jcr:primaryType checking permission on /newNode/ext:name checking permission on /newNode/jcr:uuid so everything seems to be working as expected.... please note that the access manager will be invoked *before* the changes are actually committed, i.e. new nodes and properties are not yet visible to other sessions. > after enabling access manager, I can't createNode and setProperty without a node.save in the middle > --------------------------------------------------------------------------------------------------- > > Key: JCR-792 > URL: https://issues.apache.org/jira/browse/JCR-792 > Project: Jackrabbit > Issue Type: Bug > Components: security > Affects Versions: 1.2.3 > Reporter: Xiaohua Lu > Attachments: jaas.config, JackrabbitTest.java, ntExts.txt, TestAccessManager.java, TestLoginManager.java > > > I added my own access manager. after that I can't get the following code working > Node n = createNewNode(parentNode); > n.setProperty(); > parentNode.save(); > It seems that setProperty will invoke access control check, but since the new node is not in the repository yet, my access manager implementation won't be able to grant permission. I also tried to use hierachyManager to get the path of the new node, it also returned null. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.