jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r933203 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core: RepositoryImpl.java security/authentication/AbstractLoginModule.java
Date Mon, 12 Apr 2010 11:52:22 GMT
Author: jukka
Date: Mon Apr 12 11:52:22 2010
New Revision: 933203

URL: http://svn.apache.org/viewvc?rev=933203&view=rev
Log:
JCR-2600: AbstractLoginModule logs a warning on anonymous logins

Decrease the log level in AbstractLoginModule to debug, and add a higher level info message
for successful logins

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=933203&r1=933202&r2=933203&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Mon Apr 12 11:52:22 2010
@@ -1504,6 +1504,9 @@ public class RepositoryImpl extends Abst
                     session.setAttribute(name, sc.getAttribute(name));
                 }
             }
+
+            log.info("User {} logged in to workspace {}",
+                    session.getUserID(), workspaceName);
             return session;
         } catch (SecurityException se) {
             throw new LoginException("Unable to access authentication information", se);

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java?rev=933203&r1=933202&r2=933203&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
Mon Apr 12 11:52:22 2010
@@ -296,7 +296,7 @@ public abstract class AbstractLoginModul
         // check the availability of Credentials
         Credentials creds = getCredentials();
         if (creds == null) {
-            log.warn("No credentials available -> try default (anonymous) authentication.");
+            log.debug("No credentials available -> try default (anonymous) authentication.");
         }
         try {
             Principal userPrincipal = getPrincipal(creds);



Mime
View raw message