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.
| | |
| | | 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)) |
| | | { |