You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Nicolas Bouillon (JIRA)" <de...@tapestry.apache.org> on 2010/03/25 21:33:27 UTC

[jira] Updated: (TAPESTRY-2763) Context info is lost when @Secure redirects from http to https

     [ https://issues.apache.org/jira/browse/TAPESTRY-2763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolas Bouillon updated TAPESTRY-2763:
---------------------------------------

    Attachment: tapestry-secure-test.tar.bz2

Full test case included

> Context info is lost when @Secure redirects from http to https
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-2763
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2763
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1
>         Environment: bouil@maggie:~/Documents/workspace/tapestry-secure-test$ uname -a
> Linux maggie 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 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
>         Attachments: tapestry-secure-test.tar.bz2
>
>
> When using @Secure on a page, if we get the page in http, we are redirected 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: */*
> > 
> < HTTP/1.1 302 Found
> < Location: https://localhost:8443/
> < Content-Length: 0
> < Server: Jetty(6.1.10)
> < 
> * Connection #0 to host localhost left intact
> * Closing connection #0
> bouil@maggie:~/Documents/workspace/tapestry-secure-test$ 
> 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 = context;
>     }
>     public String onPassivate() {
>         return context;
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.