Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3345

ACL evaluation may return non-fresh results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.5.1
    • Component/s: jackrabbit-core, security
    • Labels:
      None

      Description

      It appears that changes to access control entries are not always visible right away; in particular not to the session that caused them.

      EntryCollectorTest has recently been extended to run the existing set of tests under load as well, and occasionally we see tests failing because of ACEs not yet being returned.

      Increasing the load (see attached patch for the test) seems to make it easier to reproduce.

      The underlying reason might be that this involves multiple sessions to be in sync.

      Note that the cache in CachingEntryCollector doesn't seem to be the cause; disabling it by commenting out all write operations to the cache (making everything a cache miss) doesn't change the outcome.

        Attachments

        1. JCR-3345-pre-populate-cache.patch
          1 kB
          Marcel Reutegger
        2. JCR-3345-pre-populate-cache.patch
          2 kB
          Marcel Reutegger
        3. JCR-3345.test.patch
          0.9 kB
          Julian Reschke
        4. JCR-3345.patch
          3 kB
          Marcel Reutegger

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                reschke Julian Reschke
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: