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

gbellato
07.34.2007 072fda65e786436d4c76f71ff6d47f8bfa03f5a2
Fix for  issue 2587 : Schema initialisation fails with dependency error

dsreplication enable fails to initialise schema of the peer if the user schema
contains a new objectClass dependent on a new attributeType.

This was happening because the validation of the new objectClasses was done using the
old schema while it must be done with the new schema currently being modified.
1 files modified
2 ■■■ changed files
opends/src/server/org/opends/server/backends/SchemaBackend.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/backends/SchemaBackend.java
@@ -4353,7 +4353,7 @@
        for (AttributeValue v : a.getValues())
        {
          ObjectClass newObjectClass = ObjectClassSyntax.decodeObjectClass(
              v.getValue(), schema, false);
              v.getValue(), newSchema, false);
          String schemaFile = newObjectClass.getSchemaFile();
          if (schemaFile.equals(CONFIG_SCHEMA_ELEMENTS_FILE))
          {