mirror of https://github.com/apache/archiva.git
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:
parent
6341350134
commit
9fcc3c4912
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue