Best approach for having Patient ID card in OpenMRS 2x and RefApp 2x

Ahhhh… it was an issue with tomcat version.

java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

Because there is | and ‘{‘, ‘}’ character or some other character which is not supported in URL query string by newer versions of Tomcat. Therefore, it throws above exception.

The URL had the pipe “|” character in query string which is causes this issue in new versions of tomcat.

I used Tomcat 9.0.0.M17, tomcat 8.5.11 and tomcat 7.0.75 , i faced same URL encoding issue. I used the lower version of tomcat (Tomcat 8.5.6) and now it is working fine.

Please share it with other developers to take care of this strict URL validation issue in newer versions of Tomcat.

Thank you, HPardess

1 Like