Tomcat disallows any presence of '"' (double quote) characters in URL, it is treated as invalid character as per RFC 7230.
However I have lot of service clients who are still taking to my service with URLs like http://abcd.com/userservice?user="donald"
, I am looking for the ways to rewrite this URL to http://abcd.com/userservice?user=%20donald%20
. I have to do this for multiple services (~20).
I looked at https://stackoverflow.com/questions/1279681/mod-rewrite-replace-underscores-with-dashes but it doesn't help my use-case. Apache doesn't seem to let users rewrite query parameters. Any suggestions?