Spring Security
  1. Spring Security
  2. SEC-1081

PersistentTokenBasedRememberMeServices int overflow

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 3.0.0 M1
    • Component/s: Core
    • Labels:
      None

      Description

      The PersistentTokenBasedRememberMeServices always throws RememberMeAuthenticationException if tokenValiditySeconds is 30 days or 2592000 seconds.

      Either tokenValiditySeconds needs to be a long or tokenValiditySeconds needs to multiply 1000L (getTokenValiditySeconds()*1000L).

        Activity

        Hide
        Luke Taylor added a comment -

        Thanks for spotting this. I've change the test class to use 100 days as a default and used 1000L in the processAutoLoginCookie method.

        Show
        Luke Taylor added a comment - Thanks for spotting this. I've change the test class to use 100 days as a default and used 1000L in the processAutoLoginCookie method.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Ben Myers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: