MNT-17045: CONTENT INTEGRITY ERROR too generic. we would need to ouput the path of the missing file we check

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133998 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2016-12-22 10:09:32 +00:00
parent 934fd3414e
commit f19c49b05f
2 changed files with 3 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ system.config_check.warn.dir_root=The ''dir.root'' property is set to a relative
system.config_check.msg.dir_root=The root data directory (''dir.root'') is: {0} system.config_check.msg.dir_root=The root data directory (''dir.root'') is: {0}
system.config_check.err.indexes.duplicate_root_node=The store ''{0}'' has a duplicate root node entry. system.config_check.err.indexes.duplicate_root_node=The store ''{0}'' has a duplicate root node entry.
system.config_check.err.missing_index=CONTENT INTEGRITY ERROR: Indexes not found for {0} stores. system.config_check.err.missing_index=CONTENT INTEGRITY ERROR: Indexes not found for {0} stores.
system.config_check.err.missing_content=CONTENT INTEGRITY ERROR: System content not found in content store. system.config_check.err.missing_content=CONTENT INTEGRITY ERROR: System content not found in content store: ''{0}''
system.config_check.err.fix_dir_root=Ensure that the ''dir.root'' property ''{0}'' is pointing to the correct data location. system.config_check.err.fix_dir_root=Ensure that the ''dir.root'' property ''{0}'' is pointing to the correct data location.
system.config_check.msg.howto_index_recover=You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes. system.config_check.msg.howto_index_recover=You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
system.config_check.warn.starting_with_errors=Alfresco Content Services is starting with errors. system.config_check.warn.starting_with_errors=Alfresco Content Services is starting with errors.

View File

@@ -227,6 +227,8 @@ public class ConfigurationChecker extends AbstractLifecycleBean
{ {
// the property is there, but the content is not // the property is there, but the content is not
versionPropertiesContentAvailable = false; versionPropertiesContentAvailable = false;
String msg = I18NUtil.getMessage(ERR_MISSING_CONTENT, reader.getContentUrl());
logger.error(msg);
} }
} }
@@ -245,12 +247,6 @@ public class ConfigurationChecker extends AbstractLifecycleBean
String msgRecover = I18NUtil.getMessage(MSG_HOWTO_INDEX_RECOVER); String msgRecover = I18NUtil.getMessage(MSG_HOWTO_INDEX_RECOVER);
logger.info(msgRecover); logger.info(msgRecover);
} }
// check for missing content
if (!versionPropertiesContentAvailable)
{
String msg = I18NUtil.getMessage(ERR_MISSING_CONTENT);
logger.error(msg);
}
// handle either content or indexes missing // handle either content or indexes missing
if (missingStoreIndexes > 0 || !versionPropertiesContentAvailable) if (missingStoreIndexes > 0 || !versionPropertiesContentAvailable)
{ {