Hi Gael Make sure you have contributed values for SymbolConstants.HOSTPORT and SymbolConstants.HOSTPORT_SECURE in your applicationDefaults. The issue you are seeing is due most likely to a missing SymbolConstants.HOSTPORT_SECURE.
It should work without SymbolConstants.HOSTPORT_SECURE, but I think there is a little bug in BaseURLSourceImpl.portExtension(). I'll file a JIRA issue later today. Cheers. Alejandro. On Tue, Feb 5, 2013 at 10:22 AM, gaweL <gael.lambore...@market-ip.com> wrote: > Hi, > > Since tapestry 5.3.6 (previous 5.2.x) our https redirect is not working > anymore. > > In our AppModule : > > public void contributeMetaDataLocator(MappedConfiguration<String,String> > configuration){ > configuration.add(MetaDataConstants.SECURE_PAGE, "true"); > } > > Our tomcat is listenning two different port : 80 and 443. The behaviour in > 5.2.x was : When someone hit the webapp in http, he is automatically > redirected to the https version without any other any configuration but the > contributeMetaDataLocator ones. > > Now, if someone hit the http port, he's well redirected but tapestry add > ":80". > > http://prod.myapp.com become https://prod.myapp.com:80 > > Which is not working :) > > We could not easely use the contributeServiceOverride (see below) since this > method is based on static url and our webapp is host with a lot of different > subdomains. > > public static void > contributeServiceOverride(MappedConfiguration<Class<?>,Object> > configuration) > { > BaseURLSource source = new BaseURLSource() > { > public String getBaseURL(boolean secure) > { > String protocol = secure ? "https" : "http"; > > int port = secure ? 443 : 80; > > return String.format("%s://server:%d", protocol, port); > } > }; > > configuration.add(BaseURLSource.class, source); > } > > Why is tapestry redirecting to https but with ":80" at the end of the url ? > > Any idea how am I supposed to deal with it ? > > Thanks. > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-HTTPS-redirect-to-port-80-tp5719759.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org