Re: HTTPS not working with InjectPage or Class

2017-04-18 Thread Thiago H. de Paula Figueiredo
Hello, Geoff! Event handler method return values are processed by ComponentEventResultProcessor instances. By the way, considering you have a load balancer, the projects I work in my day job have HTTPS handled in the load balancer (haproxy) and the Tapestry webapp itself runs *without* HTTPS/secu

Re: HTTPS not working with InjectPage or Class

2017-04-17 Thread JumpStart
I’ve created https://issues.apache.org/jira/browse/TAP5-2577 . > On 15 Apr 2017, at 6:36 PM, JumpStart > wrote: > > > if (request.isSecure() == securePage) > { > if (request.isSecure() && > request.getAttribute("servletAPI.scheme").equals("https") >

Re: HTTPS not working with InjectPage or Class

2017-04-15 Thread JumpStart
I think I’ve found the cause. It would be great if someone could confirm my logic. The problem seems to be that the ALB is passing through a secure request with “http” scheme. Tapestry sees that it’s a secure request and assumes the scheme must be “https” so it returns a relative URL (because i

Re: HTTPS not working with InjectPage or Class

2017-04-14 Thread JumpStart
This is getting urgent! Can someone tell me what handles the return types from an event handler? I urgently have to fix it to ensure it returns HTTPS. BTW, I have a custom BaseURLSource in AppModule: public static void contributeServiceOverride(@SuppressWarnings("rawtypes") MappedConf

HTTPS not working with InjectPage or Class

2017-04-13 Thread JumpStart
Hi, I’ve found 2 situations where an HTTP URL is returned despite having set the whole application to “secure”. * The 2 event handlers below are not correct - they return HTTP URLs (in, of course, a 302 redirect), not HTTPS URLs. public class Page1 { @InjectPage private Page2