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

coulbeck
18.03.2006 eba075abb6e9f6617463aaddd120cb63cc52835d
Make use of the getFileForPath method for configuration pathnames.
1 files modified
8 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/Config.java 8 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/Config.java
@@ -35,6 +35,7 @@
import static org.opends.server.messages.JebMessages.*;
import static org.opends.server.loggers.Error.logError;
import static org.opends.server.util.ServerConstants.*;
import static org.opends.server.util.StaticUtils.getFileForPath;
import org.opends.server.config.BooleanConfigAttribute;
import org.opends.server.config.ConfigConstants;
@@ -340,12 +341,7 @@
      String message = getMessage(msgID, configEntry.getDN().toString());
      throw new ConfigException(msgID, message);
    }
    backendDirectory = new File(backendDirectoryAttr.activeValue());
    if (!backendDirectory.isAbsolute())
    {
      backendDirectory = new File(DirectoryServer.getServerRoot(),
                                  backendDirectoryAttr.activeValue());
    }
    backendDirectory = getFileForPath(backendDirectoryAttr.activeValue());
    // ds-cfg-backendIndexEntryLimit
    // Optional, single-valued config attribute requiring admin action on change