Return-Path: X-Original-To: apmail-sling-commits-archive@www.apache.org Delivered-To: apmail-sling-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A97C07207 for ; Wed, 23 Nov 2011 20:08:31 +0000 (UTC) Received: (qmail 3148 invoked by uid 500); 23 Nov 2011 20:08:31 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 3110 invoked by uid 500); 23 Nov 2011 20:08:31 -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 3103 invoked by uid 99); 23 Nov 2011 20:08:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 20:08:31 +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, 23 Nov 2011 20:08:30 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5CAF9238889B; Wed, 23 Nov 2011 20:08:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1205559 - /sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java Date: Wed, 23 Nov 2011 20:08:10 -0000 To: commits@sling.apache.org From: fmeschbe@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111123200810.5CAF9238889B@eris.apache.org> Author: fmeschbe Date: Wed Nov 23 20:08:09 2011 New Revision: 1205559 URL: http://svn.apache.org/viewvc?rev=1205559&view=rev Log: SLING-2299 Browser check in the Sling Authenticator now uses the User-Agent (and not the Accept) header. Modified: sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java Modified: sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java?rev=1205559&r1=1205558&r2=1205559&view=diff ============================================================================== --- sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java (original) +++ sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java Wed Nov 23 20:08:09 2011 @@ -136,8 +136,9 @@ public class AuthenticationResponseCodeT params.add(new NameValuePair("j_username", "garbage")); params.add(new NameValuePair("j_password", "garbage")); + // simulate a browser request List
headers = new ArrayList
(); - headers.add(new Header("Accept", "text/html")); + headers.add(new Header("User-Agent", "Mozilla/5.0 Sling Integration Test")); HttpMethod post = assertPostStatus(HTTP_BASE_URL + "/j_security_check", HttpServletResponse.SC_MOVED_TEMPORARILY, params, headers, null);