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

ludovicp
17.38.2009 2f6fb7c2062adcd0ba837060e19d48ecc73be670
Fix for defect #4057 : restore -d xxx/schema wipes out completely the schema and render the server unusable.
1 files modified
4 ■■■■ changed files
opends/src/server/org/opends/server/backends/SchemaBackend.java 4 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/backends/SchemaBackend.java
@@ -5303,12 +5303,12 @@
      String baseDirPath ;
      if (fileName.endsWith(".install"))
      {
        fileName = fileName.substring(fileName.lastIndexOf(".install"));
        fileName = fileName.substring(0,fileName.lastIndexOf(".install"));
        baseDirPath = schemaInstallDirPath;
      }
      else
      {
        fileName = fileName.substring(fileName.lastIndexOf(".instance"));
        fileName = fileName.substring(0,fileName.lastIndexOf(".instance"));
        baseDirPath = schemaInstanceDirPath;
      }