From 9f954fda5fdeda229662a466e645561639ac8402 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Sat, 27 Aug 2016 00:07:08 +0200 Subject: Moved subsystem initialization after database initialization. Previously issues with system certificates that happen during subsystem initialization were reported as database initialization error. Database initialization actually does not depend on subsystem initialization, so to avoid confusion and to simplify the code the reInitSubsystem() in SystemConfigService is now invoked after the initializeDatabase() is complete. https://fedorahosted.org/pki/ticket/2423 --- base/server/cms/src/org/dogtagpki/server/rest/SystemConfigService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'base/server/cms/src/org') diff --git a/base/server/cms/src/org/dogtagpki/server/rest/SystemConfigService.java b/base/server/cms/src/org/dogtagpki/server/rest/SystemConfigService.java index 95afa4c6a..9d7c176ec 100644 --- a/base/server/cms/src/org/dogtagpki/server/rest/SystemConfigService.java +++ b/base/server/cms/src/org/dogtagpki/server/rest/SystemConfigService.java @@ -178,6 +178,8 @@ public class SystemConfigService extends PKIService implements SystemConfigResou } initializeDatabase(data); + ConfigurationUtils.reInitSubsystem(csType); + configureCACertChain(data, domainXML); Collection certs = new ArrayList(); @@ -777,7 +779,6 @@ public class SystemConfigService extends PKIService implements SystemConfigResou ConfigurationUtils.setupReplication(); } - ConfigurationUtils.reInitSubsystem(csType); ConfigurationUtils.populateDBManager(); ConfigurationUtils.populateVLVIndexes(); } -- cgit