• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 2.1.1
    • 2.1
    • Integration/Connectors
    • 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).

            [CWD-2143] JDK 1.5 incompatibility

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1510123 ] New: JAC Bug Workflow v3 [ 3365554 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1392919 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1510123 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 274112 ] New: Simplified Crowd Development Workflow v2 [ 1392919 ]
            joe made changes -
            Link New: This issue is related to CWD-2204 [ CWD-2204 ]
            Piyawoot Songsiritat [Atlassian] made changes -
            Attachment New: jira_crowd.png [ 43456 ]
            Piyawoot Songsiritat [Atlassian] made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Technical Review [ 10028 ] New: Resolved [ 5 ]
            Piyawoot Songsiritat [Atlassian] made changes -
            Status Original: In Progress [ 3 ] New: Technical Review [ 10028 ]
            Piyawoot Songsiritat [Atlassian] made changes -
            Worklog Id Original: 93920 [ 93920 ]
            Remaining Estimate New: 0h [ 0 ]
            Time Spent New: 6h [ 21600 ]
            Piyawoot Songsiritat [Atlassian] made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            James Wong made changes -
            Assignee New: Piyawoot Songsiritat [Atlassian] [ psongsiritat ]

              psongsiritat Piyawoot Songsiritat [Atlassian]
              9d691fec9c46 Stephan Oudmaijer
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h
                  6h