This is an automated email from the ASF dual-hosted git repository. rzo1 pushed a commit to branch tomee-9.x in repository https://gitbox.apache.org/repos/asf/tomee-tck.git
The following commit(s) were added to refs/heads/tomee-9.x by this push: new 4e7153e Force the use of the URLConnectionHTTPConduit in CXF4 (default in 3.5.x). Newer CXF versions will use HttpClientHTTPConduit, which has some drawbacks regarding headers sent via jdk http client 4e7153e is described below commit 4e7153e4252170d52648845dd9d1eac8d4f2a022 Author: Richard Zowalla <richard.zowa...@hs-heilbronn.de> AuthorDate: Thu Aug 31 08:07:26 2023 +0200 Force the use of the URLConnectionHTTPConduit in CXF4 (default in 3.5.x). Newer CXF versions will use HttpClientHTTPConduit, which has some drawbacks regarding headers sent via jdk http client The following two test require a newer Java version (>11.0.14) to pass since they are using a previously forbidden header key 'date', which is enforced by the http client in older JDK versions. com.sun.ts.tests.jaxrs.ee.rs.core.headers.JAXRSClientgetDateTest_from_standalone com.sun.ts.tests.jaxrs.ee.rs.client.clientrequestcontext.JAXRSClientgetHeadersIsMutableTest_from_standalone This test will fail, if the HttpClientHTTPConduit is used as it adds an HTTP header with content-length 0 to the request. The old URLConnectionHTTPConduit doesn't add any content-length at all (returning -1), so the test just pass. com.sun.ts.tests.jaxrs.ee.rs.core.headers.JAXRSClientgetLengthTest_from_standalone CXF 4.0.3-SNAPSHOT introduced a system property with https://github.com/apache/cxf/commit/3d70de80fb60b74040c0214fc6a28774362556e4 to force the old implementation. We are setting it here explicitly to pass the related JAX-RS tck tests. --- src/test/resources/testsuite.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/resources/testsuite.properties b/src/test/resources/testsuite.properties index a1c6cfc..6dfbb16 100644 --- a/src/test/resources/testsuite.properties +++ b/src/test/resources/testsuite.properties @@ -50,6 +50,7 @@ command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd \ -Dopenejb.validation.output.level=3 \ -Djava.security.egd=file:/dev/./urandom \ -Dbin.dir=%bin_dir% \ + -Dorg.apache.cxf.transport.http.forceURLConnection=true \ $testExecuteClass \ $testExecuteArgs