Skip to content

Getting fileplans runs into caching issue due to security interceptorΒ #2439

Open
@swagnerfaw

Description

When RM is enabled and there is a basic RM site, this caching issue occurs, which can lead to unnecessary DB calls.
Every time FilePlanServiceImpl Set<NodeRef> getFilePlans(final StoreRef storeRef) gets called, it is intercepted, and the resulting set gets cleared, when the user does not have read permissions.
The issue occurs when the cached value is returned, because it does not return a copy of the set in the cache, but the set itself. So the GLOBAL shared set inside the cache gets emptied every time it's returned from cache.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions