Return-Path: Delivered-To: apmail-sling-commits-archive@www.apache.org Received: (qmail 32229 invoked from network); 2 Feb 2011 08:13:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2011 08:13:26 -0000 Received: (qmail 55794 invoked by uid 500); 2 Feb 2011 08:13:26 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 55718 invoked by uid 500); 2 Feb 2011 08:13:25 -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 55706 invoked by uid 99); 2 Feb 2011 08:13:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 08:13:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Wed, 02 Feb 2011 08:13:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 25DFC2388A33; Wed, 2 Feb 2011 08:13:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1066362 - /sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/RedirectTest.java Date: Wed, 02 Feb 2011 08:13:02 -0000 To: commits@sling.apache.org From: fmeschbe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110202081302.25DFC2388A33@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: fmeschbe Date: Wed Feb 2 08:13:01 2011 New Revision: 1066362 URL: http://svn.apache.org/viewvc?rev=1066362&view=rev Log: SLING-1965 Integration test ensuring request parameters on redirect Modified: sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/RedirectTest.java Modified: sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/RedirectTest.java URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/RedirectTest.java?rev=1066362&r1=1066361&r2=1066362&view=diff ============================================================================== --- sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/RedirectTest.java (original) +++ sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/RedirectTest.java Wed Feb 2 08:13:01 2011 @@ -76,6 +76,19 @@ public class RedirectTest extends HttpTe location = get.getResponseHeader("Location").getValue(); assertNotNull(location); assertTrue(location.endsWith("/index.html.html")); + + // get the created node without following redirects + get = new GetMethod(redirNodeUrl + "?param=value"); + get.setFollowRedirects(false); + status = httpClient.executeMethod(get); + + // expect temporary redirect ... + assertEquals(302, status); + + // ... to */index.html + location = get.getResponseHeader("Location").getValue(); + assertNotNull(location); + assertTrue(location.endsWith("/index.html?param=value")); } /** test 404 response when sling:target is missing */