We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is a continuation of the Forwarded headers bug, but this time for XForwardedFilter
After adding property spring.cloud.gateway.forwarded.enabled=false to https://github.com/ZIRAKrezovic/gateway-reproducer, XForwardedFilter check for remote address fails when IPv6 is parsed as remote address
spring.cloud.gateway.forwarded.enabled=false
Last conditional will fail, and X-Forwarded-For will not be added to the request.
The text was updated successfully, but these errors were encountered:
If this is a continuation of #3643, the premise in #3643 seems wrong so maybe this should be closed as well?
Sorry, something went wrong.
There is a valid IPv6 in request.getRemoteAddress(), so the problem still persists. I have updated the test to use "[]" - issue is still the same.
Note the following in ForwardedHeadersFilter
This seems to be missing in XForwardedHeadersFilter.
Here's the culprit
https://github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/util/ForwardedHeaderUtils.java#L184
Created spring-projects/spring-framework#34253 as well.
No branches or pull requests
This is a continuation of the Forwarded headers bug, but this time for XForwardedFilter
After adding property
spring.cloud.gateway.forwarded.enabled=false
to https://github.com/ZIRAKrezovic/gateway-reproducer, XForwardedFilter check for remote address fails when IPv6 is parsed as remote addressLast conditional will fail, and X-Forwarded-For will not be added to the request.
The text was updated successfully, but these errors were encountered: