Questions #Tagged [apache-tomcat]

Questions: 1

Getting error in Tomcat 'Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986' while processing the special character in request?

This issue is occurring in most of the tomcat versions from 7.0.88 onwards as tomcat has increased their security and no longer allows special characters in the query string. To fix this issue add relaxedQueryChars attribute under tag under server.xml (%TOMCAT_HOME%/conf) and add special characters which are needed in application in relaxedQueryChars attribute separated by comma. Below is the sample code snippet:<br> <pre><xmp><Connector port="80" protocol="HTTP/1.1" maxThreads="150" connectionTimeout="20000" redirectPort="443" compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml" relaxedQueryChars="[,]" /></xmp></pre>

 

#apache     #error     #apache-tomcat