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

gbellato
07.36.2007 c916bb774987f75f48ffb2bbf40b22bec35130f4
opends/src/server/org/opends/server/synchronization/protocol/ModifyMsg.java
@@ -40,9 +40,12 @@
import org.opends.server.synchronization.common.ChangeNumber;
import org.opends.server.synchronization.plugin.Historical;
import org.opends.server.types.Attribute;
import org.opends.server.types.AttributeType;
import org.opends.server.types.AttributeUsage;
import org.opends.server.types.DN;
import org.opends.server.types.Modification;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
@@ -204,6 +207,16 @@
    for (Modification mod : mods)
    {
      Attribute attr = mod.getAttribute();
      AttributeType type = attr.getAttributeType();
      if (type != null )
      {
        if (AttributeUsage.DSA_OPERATION.equals(type.getUsage()))
        {
          // Attributes with a dsaOperation usage should not be synchronized.
          // skip them.
          continue;
        }
      }
      if (!attr.getAttributeType().equals(Historical.historicalAttrType))
      {
        LDAPModification ldapmod = new LDAPModification(