mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
17.16.2016 e291ba407480f4fb04036382b3dfef50dcb6579a
Fix OPENDJ-3000 - Password Expiration notification calculation has integer overflow problem.
Thanks Andy Wang for pointing to the issue and the fix.
1 files modified
2 ■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/types/AccountStatusNotification.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/types/AccountStatusNotification.java
@@ -249,7 +249,7 @@
      String string = secondsToTimeString(timeToExpiration).toString();
      props.put(TIME_UNTIL_EXPIRATION, newArrayList(string));
      long expTime = System.currentTimeMillis() + (1000 * timeToExpiration);
      long expTime = System.currentTimeMillis() + (1000L * timeToExpiration);
      props.put(PASSWORD_EXPIRATION_TIME, newArrayList(new Date(expTime).toString()));
    }