From e9969dd0ddf49fa575c47600d773927aa5235a36 Mon Sep 17 00:00:00 2001 From: rudolf Date: Fri, 26 Mar 2004 12:59:19 +0000 Subject: Fix zu: https://labs.cio.gv.at/bugzilla/show_bug.cgi?id=112 (RSCH) git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@104 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../moa/id/iaik/config/CertStoreConfigurationImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/id.server/src/at/gv/egovernment/moa/id/iaik/config/CertStoreConfigurationImpl.java b/id.server/src/at/gv/egovernment/moa/id/iaik/config/CertStoreConfigurationImpl.java index 012dbfbe3..c338e96fc 100644 --- a/id.server/src/at/gv/egovernment/moa/id/iaik/config/CertStoreConfigurationImpl.java +++ b/id.server/src/at/gv/egovernment/moa/id/iaik/config/CertStoreConfigurationImpl.java @@ -20,6 +20,8 @@ public class CertStoreConfigurationImpl extends ObservableImpl implements CertStoreConfiguration, DirectoryCertStoreParameters { /** identifies the rootDirectory */ private String rootDirectory; + /** ConfigurationProvider */ + private ConfigurationProvider conf; /** Array for storing all CertStoreParameters */ private CertStoreParameters[] parameters; @@ -31,17 +33,15 @@ public class CertStoreConfigurationImpl extends ObservableImpl * being read. */ public CertStoreConfigurationImpl(ConfigurationProvider conf) throws ConfigurationException { + this.conf=conf; String paramName = ConfigurationProvider.DIRECTORY_CERTSTORE_PARAMETER_PROPERTY; String certStoreRootDirParam = conf.getGenericConfigurationParameter(paramName); if (certStoreRootDirParam == null) throw new ConfigurationException( "config.08", new Object[] {paramName}); - System.out.print("certStoreRootDirParam: " + certStoreRootDirParam); - System.out.print("configRootDirectory: " + getRootDirectory()); - - rootDirectory = FileUtils.makeAbsoluteURL(certStoreRootDirParam, getRootDirectory()); - + rootDirectory = FileUtils.makeAbsoluteURL(certStoreRootDirParam, conf.getRootConfigFileDir()); + if(rootDirectory.startsWith("file:")) rootDirectory = rootDirectory.substring(6); File f = new File(rootDirectory); if (!f.isDirectory()) throw new ConfigurationException( -- cgit v1.2.3