userManagerImpls must not be empty so add a check and if empty add at least jdo

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1420722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-12 14:57:47 +00:00
parent 6341350134
commit 9fcc3c4912
1 changed files with 9 additions and 0 deletions

View File

@ -105,6 +105,15 @@ public class DefaultArchivaRuntimeConfigurationAdmin
updateArchivaRuntimeConfiguration( archivaRuntimeConfiguration );
}
// we must ensure userManagerImpls list is not empty if so put at least jdo one !
if ( archivaRuntimeConfiguration.getUserManagerImpls().isEmpty() )
{
log.info(
"archivaRuntimeConfiguration with empty userManagerImpls so force at least jdo implementation !" );
archivaRuntimeConfiguration.getUserManagerImpls().add( "jdo" );
}
}
catch ( RepositoryAdminException e )
{