-
Notifications
You must be signed in to change notification settings - Fork 471
How let ControllerLinkBuilder see original request URI? #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
+1, but same goes to other link builders. In my scenario app is sitting behind the proxy. X-Forwarded-Host and X-Forwarded-Ssl do the trick, but I also need to change the path. |
As a workaround, you can rely on mod_substitute ( On Mon, Apr 14, 2014 at 9:36 AM, Aleksandr Zhuikov <[email protected]
|
Does it work for POST method returning status 201 and body? We are actually using it at the moment and it works for GET requests returning 200, but not for POST. |
Added use of X-Forwarded-Path in ControllerLinkBuilder for issue spring-projects#143. Fixed JacksonSerializationTest for Windows & Linux OS's.
Just wondering, would handling an You could then automatically inject the headers as part of your application filters... e.g. I haven't committed to this project before, so let me know if I can go ahead and submit a pull request (do you want the HeaderOverrideFilter.java from the example included too?). @aleksz - re: not working for POST - that sounds like a separate issue to this |
…ng-projects#143. Fixed JacksonSerializationTest for Windows & Linux OS's.
commit 898cd20 Author: Nick Grealy <[email protected]> Date: Mon Oct 26 13:15:36 2015 +1100 Added @author commit d069038 Author: Nick Grealy <[email protected]> Date: Mon Oct 26 12:06:54 2015 +1100 Added use of X-Forwarded-Path in ControllerLinkBuilder Added use of X-Forwarded-Path in ControllerLinkBuilder for issue spring-projects#143. Fixed JacksonSerializationTest for Windows & Linux OS's.
commit 898cd20 Author: Nick Grealy <[email protected]> Date: Mon Oct 26 13:15:36 2015 +1100 Added @author commit d069038 Author: Nick Grealy <[email protected]> Date: Mon Oct 26 12:06:54 2015 +1100 Added use of X-Forwarded-Path in ControllerLinkBuilder Added use of X-Forwarded-Path in ControllerLinkBuilder for issue spring-projects#143. Fixed JacksonSerializationTest for Windows & Linux OS's.
Added ForwardedHeaderRequestWrapper utility class - spring-projects#143
|
Should be obsolete now. Current master is delegating this to UriComponentsBuilder, which is also base-path aware. (use |
Closed since we observe standard headers as well as support relative links as well. |
Hi,
Our tomcat server can only see internal URIs due to the way we setup our servers. If a client, for example, wants to get a list of events, the external URI is
However, internally, tomcat sees
which causes all self links to have similar pattern. For example
Is there an easy way to customize ControllerLinkBuilder to re-write the URIs?
The text was updated successfully, but these errors were encountered: