Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 65296 invoked from network); 7 May 2007 10:20:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2007 10:20:39 -0000 Received: (qmail 99519 invoked by uid 500); 7 May 2007 10:20:43 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 99476 invoked by uid 500); 7 May 2007 10:20:43 -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 99460 invoked by uid 99); 7 May 2007 10:20:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 03:20:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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, 07 May 2007 03:20:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AFD1A714072 for ; Mon, 7 May 2007 03:20:15 -0700 (PDT) Message-ID: <22852913.1178533215715.JavaMail.jira@brutus> Date: Mon, 7 May 2007 03:20:15 -0700 (PDT) From: "Stefan Guggisberg (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-862) unsynchronized access on 'itemCache' map in ItemManager In-Reply-To: <23946339.1177421415546.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-862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Guggisberg resolved JCR-862. ----------------------------------- Resolution: Fixed fixed by applying patch (svn r35830). thanks! > unsynchronized access on 'itemCache' map in ItemManager > -------------------------------------------------------- > > Key: JCR-862 > URL: https://issues.apache.org/jira/browse/JCR-862 > Project: Jackrabbit > Issue Type: Bug > Components: core > Affects Versions: 1.2.3 > Reporter: Tobias Bocanegra > Assigned To: Stefan Guggisberg > Fix For: 1.4 > > Attachments: ItemManager.patch, stacktrace.txt > > > the access 'itemCache' map in ItemManager is mostly synchronized by not via the ItemStateListener methods: > [...] > public void stateCreated(ItemState created) { > ItemImpl item = retrieveItem(created.getId()); > if (item != null) { > item.stateCreated(created); > } > } > [...] > private ItemImpl retrieveItem(ItemId id) { > return (ItemImpl) itemCache.get(id); > } > [...] > this can result in a corruption of a map (eg subsequent accesses may result in a endless loop). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.