Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 45881 invoked from network); 2 Nov 2006 07:11:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 07:11:08 -0000 Received: (qmail 19381 invoked by uid 500); 2 Nov 2006 07:11:19 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 19361 invoked by uid 500); 2 Nov 2006 07:11:19 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 19352 invoked by uid 99); 2 Nov 2006 07:11:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 23:11:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 23:11:07 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GfWis-0007gU-LF for users@jackrabbit.apache.org; Wed, 01 Nov 2006 23:10:46 -0800 Message-ID: <7128759.post@talk.nabble.com> Date: Wed, 1 Nov 2006 23:10:46 -0800 (PST) From: Joshua Levy To: users@jackrabbit.apache.org Subject: Re: ItemManager warning In-Reply-To: <90a8d1c00611010850w3e159aa0se276107fd2014cfb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: levy@csl.sri.com References: <7080795.post@talk.nabble.com> <90a8d1c00611010850w3e159aa0se276107fd2014cfb@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Stefan, Stefan Guggisberg wrote: > >> Is this logged at warning level for a reason, and worth >> worrying about? And any quick thoughts on what might have >> changed? > > it's logged as warning because normally it shouldn't happen. > i'd say it's definitely something worth to further investigate. > i can't find the warning in my logs therefore i guess it's > related to your custom AccessManager code. > > do you share the same session with multiple threads? > On closer inspection, it seems the issue is in ItemManager.getItem(ItemId). Previously (v. 1.0.1), this method called the AccessManager first, then checked the cache, then created the node if necessary. Now it seems an optimization has been made where it checks the cache first, and skips the access check if it is cached. In our case, the node actually gets pulled into the cache by a custom access manager, in between the cache check and the creation of the item, hence the warning. But more seriously, the access check might not even be enforced later, since the node was added to the cache. It may not be a common need, but does it seems the old version was much preferable for us. Also, if I understand it correctly, it is a little risky using the cache to enforce the access check, and this might affect others... For instance, couldn't some access manager implementations revoke read access even after an item has been read once previously in a (perhaps long-lived) session? (In fact, the old implementation seemed to accomodate this explicitly, as it evicted the node from cache on access failure.) Thanks again. Cheers, Joshua -- View this message in context: http://www.nabble.com/ItemManager-warning-tf2541411.html#a7128759 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.