You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I found a strange behaviour after adding a Filter to our project that uses ServerRequest.from. After I added the filter the contextPath was gone and the pathWithinApplication contained the full path.
As we are using a reverse Proxy and want to return correct location headers we are dependent on the contextPath set by the ForwardedHeaderTransformer.
My question is if this is intended behaviour or is this a bug in the framework.
I think I found the culprit of this behaviour here:
Recently I found a strange behaviour after adding a Filter to our project that uses
ServerRequest.from
. After I added the filter the contextPath was gone and the pathWithinApplication contained the full path.As we are using a reverse Proxy and want to return correct location headers we are dependent on the contextPath set by the
ForwardedHeaderTransformer
.My question is if this is intended behaviour or is this a bug in the framework.
I think I found the culprit of this behaviour here:
in the
this.path = RequestPath.parse(uri, null);
where the context path is explicitly set to null.The issue looks similar to #25279 where the behaviour was fixed for mutating ServerHttpRequests
The text was updated successfully, but these errors were encountered: