Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (4.3/Cloud)

73687: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud)
      73547: Merged DEV to V4.2-BUG-FIX (4.2.3)
         69607: MNT-11072 : Auditing not logging when system is on read only mode
         Additional fixes are required for AuditMethodInterceptor and AuditComponentImpl to write audit on read-only server.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@74802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Will Abson
2014-06-25 16:07:13 +00:00
parent 7aa8714450
commit f8eb3f7f62
2 changed files with 1 additions and 12 deletions

View File

@@ -259,14 +259,9 @@ public class AuditComponentImpl implements AuditComponent
@Override
public boolean areAuditValuesRequired(String path)
{
if (loggerInbound.isDebugEnabled())
{
return !transactionService.isReadOnly();
}
PathMapper pathMapper = auditModelRegistry.getAuditPathMapper();
Set<String> mappedPaths = pathMapper.getMappedPathsWithPartialMatch(path);
// for performance, fall through if no mapped paths so isReadyOnly is never called
return (mappedPaths.size() > 0 && !transactionService.isReadOnly());
return mappedPaths.size() > 0;
}
/**