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

coulbeck
18.03.2006 65b00a2a2887c0fed59b8e14b865a6142c931424
Make use of the getFileForPath method for configuration pathnames.
1 files modified
8 ■■■■ changed files
opends/src/server/org/opends/server/backends/jeb/Config.java 8 ●●●● patch | view | raw | blame | history
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