/[Apache-SVN]
ViewVC logotype

Revision 1830251


Jump to revision: Previous Next
Author: markt
Date: Thu Apr 26 18:09:19 2018 UTC (6 years ago)
Changed paths: 5
Log Message:
Correct various edge cases in the new HTTP Host header validation parser.
Patch provided by Katya Todorova.

Fix IPv6/IPv4 parsing for host header:
    - chars other than : should not be allowed in IPv6 address after ]
    - ::: should not present in IPv6 address
    - IPv4 part of IPv6 address was not correctly parsed (1 symbol of IPv4 part was ignored)
    - tests added to cover IPv4/6 parsing 
    - parsed test class fixed not to throw NPE when an exception is expected but not thrown 


Changed paths

Path Details
Directorytomcat/tc8.0.x/trunk/ modified , props changed
Directorytomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java modified , text changed
Directorytomcat/tc8.0.x/trunk/res/maven/mvn-pub.xml modified , text changed
Directorytomcat/tc8.0.x/trunk/test/org/apache/tomcat/util/http/parser/TestHttpParserHost.java modified , text changed
Directorytomcat/tc8.0.x/trunk/webapps/docs/changelog.xml modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26