mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
15837: ETHREEOH-2701: Do not allow partial initialization of file server configuration bean - Even when all of the file servers are disabled, this bean must be queryable by the rest of the system - Therefore if it fails to initialize, the server should fail to start - Fatal exceptions now propagated by AbstractServerConfigurationBean.init() git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15839 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -432,8 +432,6 @@ public abstract class AbstractServerConfigurationBean extends ServerConfiguratio
|
||||
|
||||
// Initialize the filesystems
|
||||
|
||||
boolean filesysInitOK = false;
|
||||
|
||||
try
|
||||
{
|
||||
// Process the core server configuration
|
||||
@@ -444,21 +442,15 @@ public abstract class AbstractServerConfigurationBean extends ServerConfiguratio
|
||||
|
||||
// Process the filesystems configuration
|
||||
processFilesystemsConfig();
|
||||
|
||||
// Indicate that the filesystems were initialized
|
||||
filesysInitOK = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Configuration error
|
||||
|
||||
logger.error("File server configuration error, " + ex.getMessage(), ex);
|
||||
throw new AlfrescoRuntimeException("File server configuration error, " + ex.getMessage(), ex);
|
||||
}
|
||||
|
||||
// Initialize the CIFS and FTP servers, if the filesystem(s) initialized successfully
|
||||
|
||||
if ( filesysInitOK == true)
|
||||
{
|
||||
// Initialize the CIFS server
|
||||
|
||||
try
|
||||
@@ -527,13 +519,6 @@ public abstract class AbstractServerConfigurationBean extends ServerConfiguratio
|
||||
logger.error("NFS server configuration error, " + ex.getMessage(), ex);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Log the error
|
||||
|
||||
logger.error("CIFS and FTP servers not started due to filesystem initialization error");
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract void processCoreServerConfig() throws InvalidConfigurationException;
|
||||
|
||||
|
Reference in New Issue
Block a user