Following fix "Enable strict validation of the provided host name and port for all connectors. Requests with invalid host names and/or ports will be rejected with a 400 response. (markt) " is now restricting the use of trailing dot in hostname. As per RFC 1034 and information on this site http://www.dns-sd.org/trailingdotsindomainnames.html trailing dot is perfectly valid for a hostname. The fix is very simple and if needed I can contribute to the fix as well. Please suggest.
Created attachment 36134 [details] Possible fix with updated test cases Change in the patch simply allows a hostname to end with a dot.
This issue seems to exist for the following versions: - trunk for 9.0.8 onwards - 8.5.x for 8.5.31 onwards - 8.0.x for 8.0.52 onwards - 7.0.x for 7.0.87 onwards This is the actual fix that causes hostnames with trailing dot to fail: https://github.com/apache/tomcat85/commit/b6ac68e879033476aeb685980bb8bc6443172965
Many thanks for the report, the analysis and the patch. Fixed in: - trunk for 9.0.13 onwards - 8.5.x for 8.5.35 onwards - 7.0.x for 7.0.91 onwards
Very much appreciate for the quick resolution. Will test it again once the new releases are out.