From 9fcc3c4912cc32eb1e93bf462865781c6bd4da7a Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 12 Dec 2012 14:57:47 +0000 Subject: [PATCH] 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 --- .../runtime/DefaultArchivaRuntimeConfigurationAdmin.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultArchivaRuntimeConfigurationAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultArchivaRuntimeConfigurationAdmin.java index 4817c6b75..f9dc0c8ac 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultArchivaRuntimeConfigurationAdmin.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultArchivaRuntimeConfigurationAdmin.java @@ -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 ) {