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

Ludovic Poitou
17.22.2012 270f7e621b28f740f6b72ec53b14b1ed0d3b8204
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
opends/src/server/org/opends/server/replication/server/ReplicationBackend.java 3 ●●●●● patch | view | raw | blame | history
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);
    }
  }