Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 262 invoked from network); 3 May 2010 08:56:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 May 2010 08:56:21 -0000 Received: (qmail 91225 invoked by uid 500); 3 May 2010 08:56:21 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 91096 invoked by uid 500); 3 May 2010 08:56:19 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 91076 invoked by uid 99); 3 May 2010 08:56:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 08:56:19 +0000 X-ASF-Spam-Status: No, hits=-1379.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 08:56:18 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o438tvSX025022 for ; Mon, 3 May 2010 08:55:58 GMT Message-ID: <25162338.11391272876957957.JavaMail.jira@thor> Date: Mon, 3 May 2010 04:55:57 -0400 (EDT) From: =?utf-8?Q?Ulrich_St=C3=A4rk_=28JIRA=29?= To: commits@tapestry.apache.org Subject: [jira] Updated: (TAP5-1080) Context info is lost when @Secure redirects from http to https In-Reply-To: <240151043.496741269548967441.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TAP5-1080?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Ulrich St=C3=A4rk updated TAP5-1080: ------------------------------- Original Estimate: 0h Remaining Estimate: 0h Fix Version/s: 5.2.0 Affects Version/s: 5.2 > Context info is lost when @Secure redirects from http to https > -------------------------------------------------------------- > > Key: TAP5-1080 > URL: https://issues.apache.org/jira/browse/TAP5-1080 > Project: Tapestry 5 > Issue Type: Bug > Components: tapestry-core > Affects Versions: 5.2, 5.1.0.5 > Environment: bouil@maggie:~/Documents/workspace/tapestry-secure-t= est$ uname -a > Linux maggie 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 201= 0 i686 GNU/Linux > bouil@maggie:~/Documents/workspace/tapestry-secure-test$ java -version > java version "1.6.0_16" > Java(TM) SE Runtime Environment (build 1.6.0_16-b01) > Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode) > Reporter: Nicolas Bouillon > Assignee: Ulrich St=C3=A4rk > Fix For: 5.2.0 > > Attachments: secure_redirect_context.patch, tapestry-secure-test.= tar.bz2 > > Original Estimate: 0h > Remaining Estimate: 0h > > When using @Secure on a page, if we get the page in http, we are redirect= ed to the https page. But the context path is lost. > Example : > bouil@maggie:~/Documents/workspace/tapestry-secure-test$ curl -k -v http:= //localhost:8080/World > * About to connect() to localhost port 8080 (#0) > * Trying ::1... connected > * Connected to localhost (::1) port 8080 (#0) > > GET /World HTTP/1.1 > > User-Agent: curl/7.19.5 (i486-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.= 8g zlib/1.2.3.3 libidn/1.15 > > Host: localhost:8080 > > Accept: */* > >=20 > < HTTP/1.1 302 Found > < Location: https://localhost:8443/ > < Content-Length: 0 > < Server: Jetty(6.1.10) > <=20 > * Connection #0 to host localhost left intact > * Closing connection #0 > bouil@maggie:~/Documents/workspace/tapestry-secure-test$=20 > The Index.java page contains : > package org.bouil.tapestry.pages; > import org.apache.tapestry5.annotations.Property; > import org.apache.tapestry5.annotations.Secure; > @Secure > public class Index { > @Property > private String context; > public void onActivate(String context) { > this.context =3D context; > } > public String onPassivate() { > return context; > } > } --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.