Announcement Announcement Module
Collapse
No announcement yet.
AclPermissionCacheOptimizer throws Exception for non-ACL-ed objects Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • AclPermissionCacheOptimizer throws Exception for non-ACL-ed objects

    When I configured DefaultMethodSecurityExpressionHandler's permissionCache Optimizer with AclPermissionCacheOptimizer, it throws exception if there is any object that is not being ACL-ed. This happens in the following line
    Code:
    if (permissionCacheOptimizer != null) { 
        permissionCacheOptimizer.cachePermissionsFor(rootObject.getAuthentication(), collection); 
    }
    which will then throws exception in the following line
    Code:
    ObjectIdentity oid = oidRetrievalStrategy.getObjectIdentity(domainObject);
    This will cause a newly ACL implementation unable to use the PermissionCacheOptimizer.

    Does anyone has any idea how to resolve this? I imagine that applying Spring Security's ACL in a production system which has already a lot of data in the database whould suffer performance issue because the ACL can't be cached.
Working...
X