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

Cache not properly used in JcrPropertyMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 2.2.8
    • JCR Resource 2.3.0
    • JCR

    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

              cziegeler Carsten Ziegeler
              ppakulski Przemyslaw Pakulski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: