mirror of https://github.com/apache/archiva.git
[MRM-1109] environment checks do not indicate which caused a violation
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751517 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aeedc2ff5e
commit
3a742eeb67
|
@ -146,8 +146,13 @@ public class SecuritySynchronization
|
||||||
for ( Entry<String, EnvironmentCheck> entry : checkers.entrySet() )
|
for ( Entry<String, EnvironmentCheck> entry : checkers.entrySet() )
|
||||||
{
|
{
|
||||||
EnvironmentCheck check = entry.getValue();
|
EnvironmentCheck check = entry.getValue();
|
||||||
log.info( "Running Environment Check: " + entry.getKey() );
|
List<String> v = new ArrayList<String>();
|
||||||
check.validateEnvironment( violations );
|
check.validateEnvironment( v );
|
||||||
|
log.info( "Environment Check: " + entry.getKey() + " -> " + v.size() + " violation(s)" );
|
||||||
|
for ( String s : v )
|
||||||
|
{
|
||||||
|
violations.add( "[" + entry.getKey() + "] " + s );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( CollectionUtils.isNotEmpty( violations ) )
|
if ( CollectionUtils.isNotEmpty( violations ) )
|
||||||
|
|
Loading…
Reference in New Issue