Bug 63403

Summary: TestHttp2InitialConnection test is failing on a non-English PC (i18n)
Product: Tomcat 9 Reporter: Konstantin Kolinko <knst.kolinko>
Component: ConnectorsAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 9.0.x   
Target Milestone: -----   
Hardware: PC   
OS: All   
Attachments: TEST-org.apache.coyote.http2.TestHttp2InitialConnection.NIO.txt
63403_testMultipleHostHeaders.png

Description Konstantin Kolinko 2019-05-05 12:13:07 UTC
Created attachment 36568 [details]
TEST-org.apache.coyote.http2.TestHttp2InitialConnection.NIO.txt

Testing releace candidate of 9.0.20 I observe the following failure:

In Ant output:

   [concat] Testsuites with failed tests:
   [concat] TEST-org.apache.coyote.http2.TestHttp2InitialConnection.NIO.txt

In TEST-org.apache.coyote.http2.TestHttp2InitialConnection.NIO.txt file:

Testcase: testMultipleHostHeaders took 0,566 sec
	FAILED
expected:<...[content-language]-[[en]]
1-Header-[content-...> but was:<...[content-language]-[[ru]]

And the same for "testNoHostHeader" test. See attached file for full details.
Comment 1 Konstantin Kolinko 2019-05-05 14:03:58 UTC
Created attachment 36569 [details]
63403_testMultipleHostHeaders.png

Screen-shot of comparing actual and expected results for test case
testMultipleHostHeaders. The size also differs.
Comment 2 Mark Thomas 2019-05-13 19:32:15 UTC
Fixed in:
- master for 9.0.21 onwards
- 8.5.x for 8.5.42 onwards