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

boli
15.00.2009 d48d4addde449e41a091bbdce651a41589a7ac80
Fix for issue 3343: The previous virtual attribute rule was not removed after it was disabled. Upon re-enabling, the rule is assumed to already exist.
1 files modified
3 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/core/VirtualAttributeConfigManager.java 3 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/VirtualAttributeConfigManager.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2007-2008 Sun Microsystems, Inc.
 *      Copyright 2007-2009 Sun Microsystems, Inc.
 */
package org.opends.server.core;
import org.opends.messages.Message;
@@ -447,6 +447,7 @@
    {
      if (existingRule != null)
      {
        rules.remove(configuration.dn());
        DirectoryServer.deregisterVirtualAttribute(existingRule);
        existingRule.getProvider().finalizeVirtualAttributeProvider();
      }