This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch tomee-10-with-ee-91
in repository https://gitbox.apache.org/repos/asf/tomee-tck.git
The following commit(s) were added to refs/heads/tomee-10-with-ee-91 by this
push:
new 8ddc037 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
8ddc037 is described below
commit 8ddc037c8bb3b8f8619a189dc271953241463b88
Author: Richard Zowalla <[email protected]>
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 345380b..6986323 100644
--- a/src/test/resources/testsuite.properties
+++ b/src/test/resources/testsuite.properties
@@ -49,6 +49,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