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

Ludovic Poitou
17.22.2012 29e110d8c9877190c9344705ef544c0ab3545615
Now that validateSchema defaults to true in the LDIFImportConfig class, it must explicitely set to false in the ReplicationBackend.
The entries exposed there might not be schema compliant, which is ok, as the backend is only used for backup/restore.
1 files modified
3 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationBackend.java 3 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationBackend.java
@@ -1491,6 +1491,9 @@
      ldif = ldif.replace("\n-\n", "\n");
      ByteArrayInputStream istream = new ByteArrayInputStream(ldif.getBytes());
      LDIFImportConfig newConfig = new LDIFImportConfig(istream);
      // ReplicationBackend may contain entries that are not schema
      // compliant. Let's ignore them for now.
      newConfig.setValidateSchema(false);
      return new LDIFReader(newConfig);
    }
  }