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.
| | |
| | | * 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; |
| | |
| | | { |
| | | if (existingRule != null) |
| | | { |
| | | rules.remove(configuration.dn()); |
| | | DirectoryServer.deregisterVirtualAttribute(existingRule); |
| | | existingRule.getProvider().finalizeVirtualAttributeProvider(); |
| | | } |