Found. I have an apache frontend with mod_jk module forwarding requests to Tomcat. By default mod_jk uses option JkOptions +ForwardURIProxy
Using JkOptions ForwardURIProxy, the forwarded URI will be partially reencoded after processing inside Apache httpd and before forwarding to Tomcat.
Changing it to JkOptions +ForwardURICompatUnparsed solved the issue:
Using JkOptions ForwardURICompatUnparsed, the forwarded URI will be unparsed. It’s spec compliant and secure. It will always forward the original request URI, so rewriting URIs with mod_rewrite and then forwarding the rewritten URI will not work.
Christian, thanks again! Hope this thread will be useful for those using apache frontend.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.