twarne / xebia-france

Automatically exported from code.google.com/p/xebia-france
0 stars 0 forks source link

XForwardedRequest does not make it to Grails gsp #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build simple grails app, add ${request.scheme} to a .gsp
2. install XForwardedFilter with X-Forwarded-Proto config
3. access .gsp over http, sending X-Forwarded-Proto: https header

What is the expected output? What do you see instead?

value should be https but is http

What version of the product are you using? On what operating system?

xebia-servlet-extras-1.0.3.jar/grails 1.2/tomcat 5.5/windows && linux

Please provide any additional information below.

Probably not a a XForwardedFilter bug but wondering if you have any ideas.

Spring Security is working correctly, and if I set a breakpoint in a Grails 
filter, the request.scheme is set correctly.  It's just in the .gsp that the 
request does not have the XForwarded parts set up correctly.  Workaround is to 
inspect headers for X-Forwarded-Proto.

We need to know protocol in .gsp to make secure refs to external resources (js 
etc) to keep IE mixed-content warning from popping up.

Original issue reported on code.google.com by joachim....@gmail.com on 20 Oct 2010 at 4:28

GoogleCodeExporter commented 9 years ago
Sorry for the late answer.
Can you enable logs on fr.xebia.servlet.filter.XForwardedFilter to be sure your 
requests are going through the XForwardedFilter ?

Original comment by cyrille....@gmail.com on 6 Nov 2010 at 2:08

GoogleCodeExporter commented 9 years ago

Original comment by cyri...@cyrilleleclerc.com on 8 Dec 2012 at 2:44