This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit 1ba2b127412e9437a4b9b266bec09ca434ecdc95 Author: Robert Lazarski <[email protected]> AuthorDate: Thu Aug 6 06:29:39 2026 -1000 Opt the transport and sample repositories into decoupled responses CI caught what the module-by-module runs did not: transport/tcp failed on all three JDKs and transport/udp hung the build outright at module 32 of 76, so 44 modules never ran. Both use setUseSeparateListener with a non-anonymous reply address over their own transport, and UDPTest sets an infinite client timeout, which turns a refused reply into a hang rather than a failure. They were refused twice over: decoupled responses are off by default, and the permitted scheme list is https alone, so tcp:// and udp:// would not have passed even with the gate open. Both settings are now made in the TCP transport's two config files and in the testkit's generated repository, which is what the UDP tests load. That pair of settings is the migration any deployment replying over a non-HTTP transport has to make, so the configs double as its example. The userguide Dual clients get the same treatment. They are the shipped demonstration of separate-listener replies and would otherwise no longer work when run, with a note that a real deployment also wants httpFrontendHostUrl. Co-Authored-By: Claude Fable 5 <[email protected]> --- modules/samples/userguide/conf/axis2.xml | 9 +++++++++ modules/transport/tcp/conf/axis2.xml | 8 ++++++++ modules/transport/tcp/conf/client_axis2.xml | 8 ++++++++ modules/transport/testkit/pom.xml | 17 +++++++++++++++++ 4 files changed, 42 insertions(+) diff --git a/modules/samples/userguide/conf/axis2.xml b/modules/samples/userguide/conf/axis2.xml index 9ff4b371ee..c742aa6910 100644 --- a/modules/samples/userguide/conf/axis2.xml +++ b/modules/samples/userguide/conf/axis2.xml @@ -18,6 +18,15 @@ --> <axisconfig name="AxisJava2.0"> + <!-- EchoBlockingDualClient and EchoNonBlockingDualClient reply over a + separate listener, which means a non-anonymous wsa:ReplyTo. Decoupled + responses are declined by default from 2.0.2, so the samples enable + them here. A real deployment doing this should also set + httpFrontendHostUrl, so the generated reply address is its external + URL rather than the local one. --> + <parameter name="allowNonAnonymousResponseEndpoints">true</parameter> + <parameter name="allowedResponseEndpointSchemes">http,https</parameter> + <!-- ================================================= --> <!-- Parameters --> <!-- ================================================= --> diff --git a/modules/transport/tcp/conf/axis2.xml b/modules/transport/tcp/conf/axis2.xml index 2ba2bc7dea..e2f29ac761 100644 --- a/modules/transport/tcp/conf/axis2.xml +++ b/modules/transport/tcp/conf/axis2.xml @@ -18,6 +18,14 @@ --> <axisconfig name="AxisJava2.0"> + <!-- The TCP transport's separate-listener tests reply to a non-anonymous + tcp:// endpoint. Decoupled responses are declined by default and the + permitted scheme list is https alone, so both are opted into here - + the same two settings a TCP deployment using a separate listener has + to make. --> + <parameter name="allowNonAnonymousResponseEndpoints">true</parameter> + <parameter name="allowedResponseEndpointSchemes">tcp,http,https</parameter> + <!-- ================================================= --> <!-- Parameters --> <!-- ================================================= --> diff --git a/modules/transport/tcp/conf/client_axis2.xml b/modules/transport/tcp/conf/client_axis2.xml index 9f6efb97ed..ac0c39c52c 100644 --- a/modules/transport/tcp/conf/client_axis2.xml +++ b/modules/transport/tcp/conf/client_axis2.xml @@ -18,6 +18,14 @@ --> <axisconfig name="AxisJava2.0"> + <!-- The TCP transport's separate-listener tests reply to a non-anonymous + tcp:// endpoint. Decoupled responses are declined by default and the + permitted scheme list is https alone, so both are opted into here - + the same two settings a TCP deployment using a separate listener has + to make. --> + <parameter name="allowNonAnonymousResponseEndpoints">true</parameter> + <parameter name="allowedResponseEndpointSchemes">tcp,http,https</parameter> + <!-- ================================================= --> <!-- Parameters --> <!-- ================================================= --> diff --git a/modules/transport/testkit/pom.xml b/modules/transport/testkit/pom.xml index f2bdd604f4..b0ce406714 100644 --- a/modules/transport/testkit/pom.xml +++ b/modules/transport/testkit/pom.xml @@ -134,6 +134,23 @@ <outputDirectory>${project.build.directory}/generated-resources/org/apache/axis2/transport/repo</outputDirectory> <generateFileLists>true</generateFileLists> <generatedAxis2xml> + <!-- Transport tests here use a separate listener, + which replies to a non-anonymous endpoint over + the transport under test. Decoupled responses + are declined by default and the permitted + scheme list is https alone, so both are opted + into - the same pair of settings a deployment + using a separate listener has to make. --> + <parameters> + <parameter> + <name>allowNonAnonymousResponseEndpoints</name> + <value>true</value> + </parameter> + <parameter> + <name>allowedResponseEndpointSchemes</name> + <value>http,https,tcp,udp,jms,mailto</value> + </parameter> + </parameters> <messageFormatters> <messageFormatter> <contentType>text/plain</contentType>
