Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2, 1.8.2-EE-GA
-
Fix Version/s: 1.8.2-EE-GA_P01, 1.8.3
-
Component/s: Framework
-
Labels:None
-
Environment:ICEFaces + Spring Security 3.0
-
Affects:Compatibility/Configuration
Description
An update is required to detect Spring Security 3.0. A user patch has been located:
static {
try {
AcegiAuthenticationClass = Class.forName("org.acegisecurity.Authentication");
AuthenticationClass = AcegiAuthenticationClass;
Log.debug("Acegi Security detected.");
} catch (Throwable t) {
Log.debug("Acegi Security not detected.");
}
try {
SpringAuthenticationClass = Class.forName("org.springframework.security.Authentication");
AuthenticationClass = SpringAuthenticationClass;
Log.debug("Spring Security detected.");
} catch (Throwable t) {
Log.debug("Spring Security not detected.");
}
// New code below
try {
SpringAuthenticationClass = Class.forName("org.springframework.security.core.Authentication");
AuthenticationClass = SpringAuthenticationClass;
Log.debug("Spring Security 3 detected.");
} catch (Throwable t) {
Log.debug("Spring Security 3 not detected.");
}
// end patch
}
static {
try {
AcegiAuthenticationClass = Class.forName("org.acegisecurity.Authentication");
AuthenticationClass = AcegiAuthenticationClass;
Log.debug("Acegi Security detected.");
} catch (Throwable t) {
Log.debug("Acegi Security not detected.");
}
try {
SpringAuthenticationClass = Class.forName("org.springframework.security.Authentication");
AuthenticationClass = SpringAuthenticationClass;
Log.debug("Spring Security detected.");
} catch (Throwable t) {
Log.debug("Spring Security not detected.");
}
// New code below
try {
SpringAuthenticationClass = Class.forName("org.springframework.security.core.Authentication");
AuthenticationClass = SpringAuthenticationClass;
Log.debug("Spring Security 3 detected.");
} catch (Throwable t) {
Log.debug("Spring Security 3 not detected.");
}
// end patch
}
Further changes are indicated in this blog posting for Spring Security 3.0
http://datenschwanz.net/2009/12/29/icefaces-and-spring-web-flow/
The suggested changes need to be evaluated for backward compatibility, etc.