jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-862) unsynchronized access on 'itemCache' map in ItemManager
Date Tue, 24 Apr 2007 13:30:15 GMT
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

the access 'itemCache' map in ItemManager is mostly synchronized by not via the ItemStateListener
    public void stateCreated(ItemState created) {
        ItemImpl item = retrieveItem(created.getId());
        if (item != null) {
    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.

View raw message