srikotesh
asked on
Tomcat is returning HTTP Status 400 status when i send special characters in URL
Hi Experts,
i have set below properties in tomcat9 server.xml
relaxedPathChars
" < > [ \ ] ^ ` { | }
relaxedQueryChars
" < > [ \ ] ^ ` { | }
but still if i passe url path variable as %5c getting 400 status
i have read below link
https://jira.atlassian.com/browse/CONFSERVER-57582
will this work-->\?
relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^\`"<>"
one more blog showing need to add properties
https://tomcat.apache.org/tomcat-5.5-doc/config/systemprops.html
org.apache.catalina.connector. CoyoteAdapter.ALLOW_BACKSLASH
org.apache.tomcat.util.buf. UDecoder.ALLOW_ENCODED_SLASH
in which path i have to set above properties?
specify the filename and path.
Please suggest if any other solutions are there.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.