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

Matthew Swift
25.07.2011 cbfdaab06afa00d98a3193d2440e3e13c24b0027
Fix OPENDJ-339: Don't register alert handler in unique attribute plugin until we are sure that the configuration is valid
1 files modified
2 ■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/plugins/UniqueAttributePlugin.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/plugins/UniqueAttributePlugin.java
@@ -141,7 +141,6 @@
  {
    configuration.addUniqueAttributeChangeListener(this);
    currentConfiguration = configuration;
    DirectoryServer.registerAlertGenerator(this);
    for (PluginType t : pluginTypes)
    {
@@ -189,6 +188,7 @@
    }
    uniqueAttrValue2Dn  = new ConcurrentHashMap<AttributeValue,DN>();
    DirectoryServer.registerAlertGenerator(this);
  }