From c7fdfabe19ff553f614e66969b55d9443e41f6fb Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 28 Feb 2013 22:02:47 +0000 Subject: [PATCH] I missed to override a method. see logs on dev@ http://markmail.org/message/ecmo3jqopuh6rfj2 git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1451377 13f79535-47bb-0310-9956-ffa450edef68 --- .../ArchivaConfigurableUsersManager.java | 32 +++++++++++++++++++ .../src/test/tomcat/log4j2-test.xml | 2 ++ 2 files changed, 34 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java index 973c2c48b..082a15c68 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java @@ -485,6 +485,38 @@ public class ArchivaConfigurableUsersManager return user; } + + @Override + public boolean userExists( String userName ) + throws UserManagerException + { + Exception lastException = null; + boolean allFailed = true; + boolean exists = false; + for ( UserManager userManager : userManagerPerId.values() ) + { + try + { + + if ( userManager.userExists( userName ) ) + { + exists = true; + } + allFailed = false; + + } + catch ( Exception e ) + { + lastException = e; + } + } + if ( lastException != null && allFailed ) + { + throw new UserManagerException( lastException.getMessage(), lastException ); + } + return exists; + } + @Override public boolean isFinalImplementation() { diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml index 49d4b6536..990436b22 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml @@ -86,6 +86,8 @@ + + -- 2.39.5