Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6038FA09 for ; Tue, 6 Aug 2013 09:52:26 +0000 (UTC) Received: (qmail 29340 invoked by uid 500); 6 Aug 2013 09:52:26 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 29209 invoked by uid 500); 6 Aug 2013 09:52:25 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 29200 invoked by uid 99); 6 Aug 2013 09:52:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Aug 2013 09:52:24 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anchela@adobe.com designates 64.18.1.237 as permitted sender) Received: from [64.18.1.237] (HELO exprod6og121.obsmtp.com) (64.18.1.237) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Aug 2013 09:52:18 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob121.postini.com ([64.18.5.12]) with SMTP ID DSNKUgDHPDXo9Bdy/FB+gi7L/SZ0at2Tm4tP@postini.com; Tue, 06 Aug 2013 02:51:57 PDT Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r769mRD8021369 for ; Tue, 6 Aug 2013 02:48:27 -0700 (PDT) Received: from nacas03.corp.adobe.com (nacas03.corp.adobe.com [10.8.189.121]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r769pu6A021101 for ; Tue, 6 Aug 2013 02:51:56 -0700 (PDT) Received: from eurhub01.eur.adobe.com (10.128.4.30) by nacas03.corp.adobe.com (10.8.189.121) with Microsoft SMTP Server (TLS) id 8.3.298.1; Tue, 6 Aug 2013 02:51:56 -0700 Received: from eurmbx01.eur.adobe.com ([10.128.4.32]) by eurhub01.eur.adobe.com ([10.128.4.30]) with mapi; Tue, 6 Aug 2013 10:51:54 +0100 From: Angela Schreiber To: "oak-dev@jackrabbit.apache.org" Date: Tue, 6 Aug 2013 10:51:53 +0100 Subject: Re: Propagation of Session auto refresh behaviour to e.g. UserManager Thread-Topic: Propagation of Session auto refresh behaviour to e.g. UserManager Thread-Index: Ac6SipUIsFXlqbwKR4+nviPJ43cp/g== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.2.130206 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org hi jukka we are talking about 2 different sessions. with one single session everything works as expected. regarding attaching to the SessionDelegate: i definitely disagree. in contrast to the various plugins which are not really pluggable the various mgr security related implementations must be pluggable at runtime. therefore making the implementation depend on the internal SessionDelegate is not an option. in addition some of those classes are also used within the oak core (validators, commit hooks and so forth). i really don't want to add any dependency to oak-jcr nor the internals contained therein to the various security related parts. i deliberately avoided it. this wasn't a coincidence :-) angela On 8/6/13 11:42 AM, "Jukka Zitting" wrote: >Hi, > >On Tue, Aug 6, 2013 at 12:23 PM, Angela Schreiber >wrote: >> but in this case as michael explained the setup is that one session >> should be informed about modifications made by another session. > >Are we talking about two separate sessions (i.e. javax.jcr.Session >instances) or a session and the UserManager associated with it? > >> this works for all operations that are 'attached' to the SessionDelegate >> but the refresh doesn't work for those classes that are just associated >> with the Root (such as e.g. the UserManager which btw. makes transient >> modifications on the root associated with editing session. the >>read-write >> trick doesn't help here). > >It sounds to me as if the UserManager should also be attached to the >SessionDelegate, and use the SessionOperation mechanism whenever >accessing information bound to that session. > >BR, > >Jukka Zitting