incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r980359 - /sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java
Date Thu, 29 Jul 2010 08:37:04 GMT
Author: bdelacretaz
Date: Thu Jul 29 08:37:03 2010
New Revision: 980359

URL: http://svn.apache.org/viewvc?rev=980359&view=rev
Log:
SLING-550 - clarify comments

Modified:
    sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java

Modified: sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java?rev=980359&r1=980358&r2=980359&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java
(original)
+++ sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java
Thu Jul 29 08:37:03 2010
@@ -59,11 +59,8 @@ class BackgroundRequestExecutionJob impl
                 parametersToRemove);
         this.slingServlet = slingServlet;
 
-        // In a normal request the ResourceResolver is added to the request
-        // attributes
-        // by the authentication service, need to do the same here as we can't
-        // reuse the
-        // original one which is closed once main request is done
+        // Need a new ResourceResolver with the same credentials as the
+        // current request, for the background request.
         final AuthenticationInfo aa = (AuthenticationInfo) request
                 .getAttribute(AuthenticationInfo.class.getName());
         if (aa == null) {



Mime
View raw message