Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 62776 invoked from network); 18 May 2010 07:55:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 May 2010 07:55:10 -0000 Received: (qmail 57004 invoked by uid 500); 18 May 2010 07:55:10 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 56675 invoked by uid 500); 18 May 2010 07:55:08 -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 56663 invoked by uid 99); 18 May 2010 07:55:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 May 2010 07:55:07 +0000 X-ASF-Spam-Status: No, hits=-1437.9 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 May 2010 07:55:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4I7sjME026431 for ; Tue, 18 May 2010 07:54:45 GMT Message-ID: <10787875.100341274169285687.JavaMail.jira@thor> Date: Tue, 18 May 2010 03:54:45 -0400 (EDT) From: "angela (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2630) UserAccessControlProvider handles users who dont have Jackrabbit managed Principals or User node inconsistently. In-Reply-To: <27927942.40641273827106121.JavaMail.jira@thor> 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-2630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] angela updated JCR-2630: ------------------------ Summary: UserAccessControlProvider handles users who dont have Jackrabbit managed Principals or User node inconsistently. (was: UserAccessControlProvider handles users who dont have Jackrabbit managed Principals or User node incosistently.) > UserAccessControlProvider handles users who dont have Jackrabbit managed Principals or User node inconsistently. > ---------------------------------------------------------------------------------------------------------------- > > Key: JCR-2630 > URL: https://issues.apache.org/jira/browse/JCR-2630 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 2.0.0 > Reporter: Ian Boston > Assignee: angela > Fix For: 2.2.0 > > > JR core 2.0.0 > In UserAccessControlProvider.compilePermissions(...), if no principal relating to a user node can be found, then a set or read only compiled permissions is provided. That set gives the session read only access to the entire security workspace regardless of path. > If the user node is found, then an instance of UserAccessControlProvider.CompilePermissions is used and in UserAccessControlProvider.CompilePermissions.buildResult(...) there is a check for no user node. If there is no user node, all permissions are denied regardless of path. > Although the first case will never happen for an installation of Jackrabbit where there are no custom PrincipalManagers, I suspect, based on the impl of UserAccessControlProvider.CompilePermissions.buildResult(...) was to deny all access to the security workspace where there was no corresponding user node in a set of principals. > Since this does not effect JR unless there is an external Principal Manager its a bit hard to produce a compact unit test, the issue was found by looking at the code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.