Running Spring Cloud gateway (Hoxton.RELEASE) on Spring Boot 2.2.2, running into an issue where we have filtering that builds.... ridiculously long URLs.
The issue we're seeing is that when the URL exceeds roughly 4100 characters, the gateway is reporting this as a bad request and returning a 413 error. I believe this is probably coming from the path rewriting, but that's just a guess at this point.
The actual logged error is in the gateway's log, and the request doesn't reach the application.
[]: 2020-01-08 08:46:39.012 [reactor-http-nio-6] INFO r.n.h.s.AccessLog 0:0:0:0:0:0:0:1 - - [08/Jan/2020:08:46:39 -0500] "GET /bad-request HTTP/1.0" 413 0 8443 0 ms
Is there a way to configure the allowed size of the request URL that the gateway will process? If I try running the application without the gateway in front of it, it easily supports URLs much longer.
I'm aware that long URLs may not be supported by all browsers and that it's not a good idea anyway, that's another problem to solve. For the time being we're restricted to the URLs generated by a plugin until we can move past that.