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

neil_a_wilson
14.51.2007 873c5e7a10dc487f9f70719717eed7fd42e3bb13
opends/src/server/org/opends/server/core/PluginConfigManager.java
@@ -5411,7 +5411,7 @@
    // Get the existing plugin if it's already enabled.
    DirectoryServerPlugin<? extends PluginCfg> existingPlugin =
    DirectoryServerPlugin existingPlugin =
         registeredPlugins.get(configuration.dn());
@@ -5441,19 +5441,9 @@
      {
        adminActionRequired = true;
      }
      //The plugin-types might have been changed. Replace the plugin's
      //plugin-types with the configuration's plugin-types and re-register the
      //plugin with new types.
      Set<PluginType> currPluginTypes = existingPlugin.getPluginTypes();
      currPluginTypes.clear();
      for (PluginCfgDefn.PluginType pluginType :
           configuration.getPluginType())
      {
        currPluginTypes.add(getPluginType(pluginType));
      }
      existingPlugin.setInvokeForInternalOperations(
                          configuration.isInvokeForInternalOperations());
      registerPlugin(existingPlugin, configuration.dn(), currPluginTypes);
      return new ConfigChangeResult(resultCode, adminActionRequired, messages);
    }
@@ -5473,7 +5463,11 @@
    }
    catch (InitializationException ie)
    {
      resultCode = DirectoryServer.getServerErrorResultCode();
      if (resultCode == ResultCode.SUCCESS)
      {
        resultCode = DirectoryServer.getServerErrorResultCode();
      }
      messages.add(ie.getMessageObject());
    }