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

Ludovic Poitou
06.16.2012 65582f3ed724413a28940a241904479c1213d9d0
Fix OPENDJ-532 : When replication is enabled cn=changelog appears in namingcontexts output.
The external changelog is not a regular naming context and shouldn't be listed as such.
This fix removes it from the list of "namingContexts" in the rootDSE.
The suffix for the changelog is given by the changelog operational attribute in the rootDSE.
1 files modified
4 ■■■ changed files
opends/src/server/org/opends/server/workflowelement/externalchangelog/ECLWorkflowElement.java 4 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/workflowelement/externalchangelog/ECLWorkflowElement.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2009 Sun Microsystems, Inc.
 *      Portions Copyright 2012 ForgeRock AS
 */
package org.opends.server.workflowelement.externalchangelog;
@@ -87,6 +88,7 @@
  {
    this.replicationServer =rs;
    super.initialize(ECL_WORKFLOW_ELEMENT, ECL_WORKFLOW_ELEMENT);
    super.setPrivate(true);
    DirectoryServer.registerWorkflowElement(this);
  }
@@ -149,7 +151,7 @@
   *                               operation
   */
  @SuppressWarnings("unchecked")
  public static final <O extends Operation,L> void
  public static <O extends Operation,L> void
              attachLocalOperation (O globalOperation, L currentLocalOperation)
  {
    List<?> existingAttachment =