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

gbellato
31.21.2007 407645b8549604cbffb9fcebf302c73886330e67
fix for issue 2205 : attribute missing from schema is not handled as expected by replication

When the replication code replay a modify operation on an entry
that contain historical information for an attribute that is
not defined in the schema, the modify operation
is not replayed because an AssertionError is thrown by AttributeValue constructor.

This fixes the problem by avoiding the AssertionError
1 files modified
5 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/HistVal.java 5 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/HistVal.java
@@ -99,8 +99,13 @@
      attrString = optionsToken[0];
    }
    else
    {
      attrString = token[0];
    }
    attrType = DirectoryServer.getSchema().getAttributeType(attrString);
    if (attrType == null)
      attrType = DirectoryServer.getDefaultAttributeType(attrString);
    cn = new ChangeNumber(token[1]);
    histKey = HistKey.decodeKey(token[2]);