-
Bug
-
Resolution: Fixed
-
High
-
2.1
-
None
-
JBoss 4.2.0.GA
Sun JDK 1.5.0_22
CROWD 2.1.0 is NOT java 1.5 compatible! This bug only occures when SSO is configured.
I decompiled the crowd-intergration-client-common-2.1.0.jar which constains the CrowdHttpTokenHelperImpl.buildCookie(CrowdHttpTokenHelperImpl.java:194)
See below:
private Cookie buildCookie(String token, String tokenCookieKey, CookieConfiguration cookieConfig)
{
String domain = cookieConfig.getDomain();
boolean isSecure = cookieConfig.isSecure();
Cookie tokenCookie = new Cookie(tokenCookieKey, token);
tokenCookie.setPath("/");
if ((domain != null) && (!domain.isEmpty()) && (!"localhost".equals(domain)))
{ tokenCookie.setDomain(domain); }tokenCookie.setSecure(isSecure);
return tokenCookie;
}
String.isEmpty() cause the problem, this is Java 1.6 specific!
isEmpty
public boolean isEmpty()
Returns true if, and only if, length() is 0.
Returns:
true if length() is 0, otherwise false
Since:
1.6
If you look at the CROWD supported platforms page, it states that CROWD is compatible with JDK 1.5 (http://confluence.atlassian.com/display/CROWD/Supported+Platforms).
- is related to
-
CWD-2204 Crowd does not build against JDK 1.5
- Closed