I need some help to understand what strategies there is to handle this error.
Our app performs a request that returns a list of ids. Some of the ids are already enconded (ie:
id=%2Fabc). Then we need to send that id to our servlet. And the servlet is immediately returning a 400 error.
Message Invalid URI: noSlash
Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
I also tried to add a servlet filter to re-encode our param, but unfortunately the filter is only triggered after the Tomcat validation.
So, what’re other options to handle this? There is something I can do so my filter is called before Tomcat validation?
As far as I read about, you can pass Tomcat an argument to allow slash encoding, but given that that configuration is customer’s responsibility, I don’t think that is actually a solution.