Return-Path: Delivered-To: apmail-sling-commits-archive@www.apache.org Received: (qmail 37929 invoked from network); 29 Jul 2010 08:38:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jul 2010 08:38:23 -0000 Received: (qmail 13145 invoked by uid 500); 29 Jul 2010 08:38:23 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 13081 invoked by uid 500); 29 Jul 2010 08:38:21 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 13073 invoked by uid 99); 29 Jul 2010 08:38:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 08:38:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 08:38:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3ECE6238899C; Thu, 29 Jul 2010 08:37:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@sling.apache.org From: bdelacretaz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100729083704.3ECE6238899C@eris.apache.org> 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) {