Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3249

Cache not properly used in JcrPropertyMap

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: JCR Resource 2.2.8
    • Fix Version/s: JCR Resource 2.3.0
    • Component/s: JCR
    • Labels:

      Description

      JcrPropertyMap class has internal cache for properties an values.
      The cache is not used correctly, e.g. reading the same property twice still results in access to underlying node.

      The problem is with get() methods, when property is red it is put into the cache, but the cache is never checked if it already contains the property.
      The only way to force the caching is to use readFully() method indirectly, in this case read method is examining the cache.

      It looks this has been introduced by fixing SLING-2425.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cziegeler Carsten Ziegeler
                Reporter:
                ppakulski Przemo Pakulski
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: