incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r617477 - in /incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl: auth/SlingAuthenticator.java request/RequestData.java
Date Fri, 01 Feb 2008 11:25:23 GMT
Author: bdelacretaz
Date: Fri Feb  1 03:25:20 2008
New Revision: 617477

URL: http://svn.apache.org/viewvc?rev=617477&view=rev
Log:
added some useful logging messages

Modified:
    incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java
    incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/request/RequestData.java

Modified: incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java?rev=617477&r1=617476&r2=617477&view=diff
==============================================================================
--- incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java
(original)
+++ incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java
Fri Feb  1 03:25:20 2008
@@ -454,9 +454,13 @@
      */
     private void setAttributes(Session session, String authType,
             HttpServletRequest request) {
+        
         request.setAttribute(HttpContext.REMOTE_USER, session.getUserID());
         request.setAttribute(HttpContext.AUTHENTICATION_TYPE, authType);
         request.setAttribute(CoreConstants.SESSION, session);
+        
+        log.debug("Session stored as request attribute: user={}, workspace={}",
+                session.getUserID(), session.getWorkspace().getName());
     }
 
     /**

Modified: incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/request/RequestData.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/request/RequestData.java?rev=617477&r1=617476&r2=617477&view=diff
==============================================================================
--- incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/request/RequestData.java
(original)
+++ incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/request/RequestData.java
Fri Feb  1 03:25:20 2008
@@ -155,6 +155,8 @@
         if (sr != null) {
             Servlet servlet = sr.resolveServlet(slingRequest);
             contentData.setServlet(servlet);
+        } else {
+            log.warn("init(): No ServletResolver available");
         }
     }
 



Mime
View raw message