-
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
-
[CWD-2143] JDK 1.5 incompatibility
Workflow | Original: Simplified Crowd Development Workflow v2 - restricted [ 1510123 ] | New: JAC Bug Workflow v3 [ 3365554 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: Simplified Crowd Development Workflow v2 [ 1392919 ] | New: Simplified Crowd Development Workflow v2 - restricted [ 1510123 ] |
Workflow | Original: Crowd Development Workflow v2 [ 274112 ] | New: Simplified Crowd Development Workflow v2 [ 1392919 ] |
Attachment | New: jira_crowd.png [ 43456 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Technical Review [ 10028 ] | New: Resolved [ 5 ] |
Status | Original: In Progress [ 3 ] | New: Technical Review [ 10028 ] |
Worklog Id | Original: 93920 [ 93920 ] | |
Remaining Estimate | New: 0h [ 0 ] | |
Time Spent | New: 6h [ 21600 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Assignee | New: Piyawoot Songsiritat [Atlassian] [ psongsiritat ] |