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

lutoff
17.08.2007 02254b184d24885d825bd0d18d2b6b300a5d2160
Fix for issue #2751 (dsconfig; can't enable the default SMTP Account Status Notification Handler)

We check now if it's an absolute path.
If it's a relative path, we add the instance root path to get the actual file location
1 files modified
5 ■■■■■ changed files
opends/src/server/org/opends/server/extensions/SMTPAccountStatusNotificationHandler.java 5 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/extensions/SMTPAccountStatusNotificationHandler.java
@@ -277,6 +277,11 @@
      String path = s.substring(colonPos+1).trim();
      File f = new File(path);
      if (! f.isAbsolute() )
      {
        f = new File(DirectoryServer.getServerRoot() + File.separator +
            path);
      }
      if (! f.exists())
      {
        throw new ConfigException(ERR_SMTP_ASNH_TEMPLATE_NO_SUCH_FILE.get(