Bug 65384

Summary: org.apache.coyote.http2.TestFlowControl test depends on user's language
Product: Tomcat 9 Reporter: Konstantin Kolinko <knst.kolinko>
Component: ConnectorsAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P2    
Version: 9.0.48   
Target Milestone: -----   
Hardware: PC   
OS: All   

Description Konstantin Kolinko 2021-06-16 15:36:45 UTC
Running the unit tests for Tomcat 9.0.48, the following test fails:

Testsuite: org.apache.coyote.http2.TestFlowControl
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1,589 sec
[...]
------------- ---------------- ---------------

Testcase: testNotFound[0] took 1,399 sec
	FAILED
expected:<...[content-language]-[[en]]
3-Header-[content-...> but was:<...[content-language]-[[ru]]
3-Header-[content-...>
junit.framework.AssertionFailedError: expected:<...[content-language]-[[en]]
3-Header-[content-...> but was:<...[content-language]-[[ru]]
3-Header-[content-...>
	at org.apache.coyote.http2.TestFlowControl.testNotFound(TestFlowControl.java:97)


Apparently it expects content-language to be English, but for some reason it differs.
Comment 1 Christopher Schultz 2021-06-16 16:21:36 UTC
$god help us if we run it in Turkish locale[1]. :)

[1] https://mattryall.net/blog/the-infamous-turkish-locale-bug
Comment 2 Mark Thomas 2021-06-18 09:22:37 UTC
Fixed in:
- 10.1.x for 10.1.0-M2 onwards
- 10.0.x for 10.0.8 onwards
- 9.0.x for 9.0.49 onwards
- 8.5.x for 8.5.69 onwards