From 07565fa15fa68e5e7b38adc1bd715de56ec1bf77 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 10 Dec 2012 16:46:12 +0000 Subject: [PATCH] user can change only the order of userManagerImpls so take care of that git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1419578 13f79535-47bb-0310-9956-ffa450edef68 --- .../services/DefaultArchivaRuntimeConfigurationService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaRuntimeConfigurationService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaRuntimeConfigurationService.java index 2fa2a88a3..5b8ce713e 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaRuntimeConfigurationService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaRuntimeConfigurationService.java @@ -76,6 +76,11 @@ public class DefaultArchivaRuntimeConfigurationService // has user manager impl changed ? boolean userManagerChanged = archivaRuntimeConfiguration.getUserManagerImpls().size() != archivaRuntimeConfigurationAdmin.getArchivaRuntimeConfiguration().getUserManagerImpls().size(); + + userManagerChanged = + userManagerChanged || ( archivaRuntimeConfiguration.getUserManagerImpls().toString().hashCode() + != archivaRuntimeConfigurationAdmin.getArchivaRuntimeConfiguration().getUserManagerImpls().toString().hashCode() ); + archivaRuntimeConfigurationAdmin.updateArchivaRuntimeConfiguration( archivaRuntimeConfiguration ); if ( userManagerChanged )