From 2add3e0bce252bef363966b7b5c0cb7ddc716ada Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Sun, 11 May 2008 06:17:32 +0000 Subject: [PATCH] [MRM-773] -return false if not authorized git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@655254 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/archiva/security/ArchivaServletAuthenticator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaServletAuthenticator.java b/archiva-modules/archiva-web/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaServletAuthenticator.java index 21dcc3e80..018992009 100644 --- a/archiva-modules/archiva-web/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaServletAuthenticator.java +++ b/archiva-modules/archiva-web/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaServletAuthenticator.java @@ -74,10 +74,12 @@ public class ArchivaServletAuthenticator if ( !authzResult.isAuthorized() ) { if ( authzResult.getException() != null ) - { + { log.info( "Authorization Denied [ip=" + request.getRemoteAddr() + ",isWriteRequest=" + isWriteRequest + ",permission=" + permission + ",repo=" + repositoryId + "] : " + authzResult.getException().getMessage() ); + + return false; } } -- 2.39.5