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

Ludovic Poitou
29.09.2012 ea6c8133fa7544dea1209a45512a5f0c464bea24
Followup fix to OPENDJ-441. The hasValue() method needs to ignore subentries (like getValue). 
This fix resolve the issue with the Nightly build tests failing.
1 files modified
6 ■■■■■ changed files
opends/src/server/org/opends/server/extensions/PasswordExpirationTimeVirtualAttributeProvider.java 6 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/extensions/PasswordExpirationTimeVirtualAttributeProvider.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2012 profiq s.r.o.
 *      Portions Copyright 2012 ForgeRock AS
 */
package org.opends.server.extensions;
@@ -94,7 +95,6 @@
                                       VirtualAttributeRule rule)
  {
    // Do not process LDAP operational entries.
    if (!entry.isSubentry() && !entry.isLDAPSubentry())
    {
      long expirationTime = getPasswordExpirationTime(entry);
@@ -145,7 +145,9 @@
  @Override
  public boolean hasValue(Entry entry, VirtualAttributeRule rule)
  {
    if (getPasswordExpirationTime(entry) == -1)
    // Do not process LDAP operational entries.
    if (entry.isSubentry() || entry.isLDAPSubentry()
        || (getPasswordExpirationTime(entry) == -1))
    {
      return false;
    }