Return-Path: X-Original-To: apmail-sling-dev-archive@www.apache.org Delivered-To: apmail-sling-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 E9B0010810 for ; Tue, 8 Oct 2013 12:46:44 +0000 (UTC) Received: (qmail 13295 invoked by uid 500); 8 Oct 2013 12:46:44 -0000 Delivered-To: apmail-sling-dev-archive@sling.apache.org Received: (qmail 12970 invoked by uid 500); 8 Oct 2013 12:46:43 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 12957 invoked by uid 99); 8 Oct 2013 12:46:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 12:46:42 +0000 Date: Tue, 8 Oct 2013 12:46:42 +0000 (UTC) From: "Antonio Sanso (JIRA)" To: dev@sling.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SLING-3143) CreateUserServlet.createUser doesn't work on Oak for UserAdmin group members 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/SLING-3143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789168#comment-13789168 ] Antonio Sanso commented on SLING-3143: -------------------------------------- CreateUserServlet has currently 2 failures : - testCreateUser - testCreateUserAsUserAdminGroupMember using last version of org.apache.sling.jcr.jackrabbit.usermanager (namely 2.2.1-SNAPSHOT) makes testCreateUser to pass. Regarding testCreateUserAsUserAdminGroupMember according to the discussion held in the OAk list would make sense to disable for Sling on Oak > CreateUserServlet.createUser doesn't work on Oak for UserAdmin group members > ---------------------------------------------------------------------------- > > Key: SLING-3143 > URL: https://issues.apache.org/jira/browse/SLING-3143 > Project: Sling > Issue Type: Bug > Reporter: Bertrand Delacretaz > Assignee: Bertrand Delacretaz > Priority: Minor > Attachments: SLING-3143-forceAdminSession.patch > > > CreateUserServlet.createUser detects if the current user is a member of the UserAdmin group (group name is configurable), and if that's the case considers the user as admin and uses its session to create a new user. > This fails on Oak, our launchpad/integration-tests CreateUserTest fails. > I'll attach a patch that works around the problem by forcing the use of an admin session in this case, but I'm not sure if it's the right thing to do, I'll discuss on the dev list. -- This message was sent by Atlassian JIRA (v6.1#6144)