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

gbellato
07.34.2007 4ddb5e535b95ec3e89d7168c61cdcf6a6e325c58
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
opendj-sdk/opends/src/server/org/opends/server/backends/SchemaBackend.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/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))
          {