1
0
mirror of synced 2026-08-31 22:46:02 +00:00

SEC-951: Acl Serialization Errors that cohere with parent-child-structure of Acls. Modified tests to reproduce the issue and applied suggested fix (recursive call to set transient fields on parent).

This commit is contained in:
Luke Taylor
2009-08-31 19:15:13 +00:00
parent 98ffda85e0
commit 6236858356
2 changed files with 34 additions and 11 deletions
@@ -135,6 +135,10 @@ public class EhCacheBasedAclCache implements AclCache {
FieldUtils.setProtectedFieldValue("aclAuthorizationStrategy", value, this.aclAuthorizationStrategy);
FieldUtils.setProtectedFieldValue("auditLogger", value, this.auditLogger);
}
if (value.getParentAcl() != null) {
initializeTransientFields((MutableAcl) value.getParentAcl());
}
return value;
}