From df91d352cb3ba95f4832575e768a95ff57a11be5 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Sun, 13 Mar 2005 21:01:16 +0000 Subject: [PATCH] AbstractBasicAclEntry improved compatibility with Hibernate, as per http://forum.springframework.org/viewtopic.php?t=3949. --- .../acegisecurity/acl/basic/AbstractBasicAclEntry.java | 10 ++++++++-- doc/xdocs/changes.xml | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/acegisecurity/acl/basic/AbstractBasicAclEntry.java b/core/src/main/java/org/acegisecurity/acl/basic/AbstractBasicAclEntry.java index 98f425de18..b6837e56b8 100644 --- a/core/src/main/java/org/acegisecurity/acl/basic/AbstractBasicAclEntry.java +++ b/core/src/main/java/org/acegisecurity/acl/basic/AbstractBasicAclEntry.java @@ -1,4 +1,4 @@ -/* Copyright 2004 Acegi Technology Pty Limited +/* Copyright 2004, 2005 Acegi Technology Pty Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,7 +76,13 @@ public abstract class AbstractBasicAclEntry implements BasicAclEntry { this.mask = mask; } - protected AbstractBasicAclEntry() {} + /** + * A protected constructor for use by Hibernate. + */ + protected AbstractBasicAclEntry() { + validPermissions = getValidPermissions(); + Arrays.sort(validPermissions); + } //~ Methods ================================================================ diff --git a/doc/xdocs/changes.xml b/doc/xdocs/changes.xml index ef08df12e6..6563626af0 100644 --- a/doc/xdocs/changes.xml +++ b/doc/xdocs/changes.xml @@ -29,6 +29,7 @@ SecurityEnforcementFilter caused NullPointerException when anonymous authentication used with BasicProcessingFilterEntryPoint FilterChainProxy now supports replacement of ServletRequest and ServetResponse by Filter beans ContextHolderAwareRequestWrapper methods returns null if user is anonymous + AbstractBasicAclEntry improved compatibility with Hibernate Added Digest Authentication support (RFC 2617 and RFC 2069)