Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Controller cannot be found if absolute URI is given in HTTP request [SPR-16243] #20790
Stack: Spring WebFlux 5.0.1, 5.0.2, reactor-netty 0.7.2, reactor-core 3.1.2, netty 4.1.17, java 8u154.
Some of our customers use our server as an HTTP proxy, resulting in absolute URI being sent in requests, e.g.:
Such a request results in 404 response having a controller on
While this looks like a marginal case, https://tools.ietf.org/html/rfc7230#section-5.3.2 states
So, this sounds more like a bug.
Referenced from: commits 203370a
Oleg Alexeyev commented
Seems I found a possible cause while debugging: when absolute URI is used in the request, WebFilter sees URI like this: