Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2143

JDK 1.5 incompatibility

XMLWordPrintable

    • 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).

            psongsiritat Piyawoot Songsiritat [Atlassian]
            9d691fec9c46 Stephan Oudmaijer
            Votes:
            0 Vote for this issue
            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