jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Deparvu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-7813) PrivilegeBits should also cache default privilege as long values
Date Wed, 10 Oct 2018 10:00:00 GMT

     [ https://issues.apache.org/jira/browse/OAK-7813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Alex Deparvu resolved OAK-7813.
       Resolution: Fixed
    Fix Version/s: 1.9.10


- made the map immutable
- added the extra cache and wrapped calls through it
- added an extra change to {{UnmodifiableData}}: in case it's a simple type it will no longer
keep the in memory array that is only duplicating the info, and it will create one on the
fly for the callers.

> PrivilegeBits should also cache default privilege as long values
> ----------------------------------------------------------------
>                 Key: OAK-7813
>                 URL: https://issues.apache.org/jira/browse/OAK-7813
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: security-spi
>            Reporter: Alex Deparvu
>            Assignee: Alex Deparvu
>            Priority: Trivial
>             Fix For: 1.10, 1.9.10
> I would like to add a cache to PrivilegeBits for the 'long' representation of the privileges.
The current one is [String -> PrivilegeBits], but the apis allow for creating PrivilegeBits
out of long values (depending on the bits operation).
> Also, the existing cache is currently exposed as a public map, this needs to be turned
into an immutable version to prevent changes.

This message was sent by Atlassian JIRA

View raw message