You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2010/07/29 10:37:04 UTC
svn commit: r980359 -
/sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java
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) {