You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "apupier (via GitHub)" <gi...@apache.org> on 2026/10/06 09:47:09 UTC

[PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

apupier opened a new pull request, #27433:
URL: https://github.com/apache/camel/pull/27433

   
   When default signature schemes are provided by the JVM (such as in JDK 27),
   filtering with an empty FilterParameters filters out all default schemes and
   returns an empty array (0 schemes) rather than null.
   
   Fix the test assertions to check for an empty array and remove the include pattern that erroneously matched all default schemes.
   
   Co-authored-by: IBM Bob 2.2.1
   
   # Description
   
   <!--
   - Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
   -->
   
   # Target
   
   - [ ] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch)
   
   # Tracking
   - [ ] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it).
   
   <!--
   # *Note*: trivial changes like, typos, minor documentation fixes and other small items do not require a JIRA issue. In this case your pull request should address just this issue, without pulling in other changes.
   -->
   
   # Apache Camel coding standards and style
   
   - [ ] I checked that each commit in the pull request has a meaningful subject line and body.
   
   <!--
   If you're unsure, you can format the pull request title like `[CAMEL-XXX] Fixes bug in camel-file component`, where you replace `CAMEL-XXX` with the appropriate JIRA issue.
   -->
   
   - [ ] I have run `mvn clean install -DskipTests` locally from root folder and I have committed all auto-generated changes.
   
   <!--
   You can run the aforementioned command in your module so that the build auto-formats your code. This will also be verified as part of the checks and your PR may be rejected if if there are uncommited changes after running `mvn clean install -DskipTests`.
   
   You can learn more about the contribution guidelines at https://github.com/apache/camel/blob/main/CONTRIBUTING.md
   -->
   
   # AI-assisted contributions
   
   - [ ] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on PR #27433:
URL: https://github.com/apache/camel/pull/27433#issuecomment-6519544534

   I pushed be522774d249, which applies the suggestion of 10-15: the block that asserted an empty filter gives no signature schemes is removed, and with it the AssertJ import, so the class uses JUnit assertions only. That settles the seven open threads, which are now resolved. `SSLContextParametersTest` passes on JDK 25 (24 run, the disabled JDK 26+ method skipped). The PR description now matches the changes.
   
   _Claude Code on behalf of davsclaus_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on code in PR #27433:
URL: https://github.com/apache/camel/pull/27433#discussion_r4195062696


##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1069,20 +1070,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = getSignatureSchemes(engine.getSSLParameters()).length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)

Review Comment:
   **JDK 26, and the behaviour this pins**
   
   Two questions, since this method is `@EnabledForJreRange(min = JRE.JAVA_26)` and CI only builds with 17 and 25, so it never runs there:
   - **JDK 26:** `BaseSSLContextParameters` returns `null` (keeps the defaults, with a WARN) when the JVM does not tell its default signature schemes, and the previous assertions expected exactly that. If JDK 26 GA still takes that branch, these new assertions fail there, because AssertJ's `isEmpty()` rejects `null`. If 26 and 27 differ, gating the expectation on whether the defaults are provided, or splitting the method by JRE range, would keep it green on both.
   - **Behaviour pinned here:** with defaults available, an empty `FilterParameters` now yields zero signature schemes, which makes every handshake fail. The null branch deliberately avoids that ("configuring an empty list would fail every handshake"). Is an empty result the intended `FilterParameters` semantics here, consistent with cipher suites? Or should the production code also WARN, or keep the defaults, when the filter leaves nothing?



##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1069,20 +1070,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = getSignatureSchemes(engine.getSSLParameters()).length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)
         FilterParameters filter = new FilterParameters();
-        filter.getInclude().add(".*");
         scp.setSignatureSchemesFilter(filter);
         context = scp.createSSLContext(null);
         engine = context.createSSLEngine();
         socket = (SSLSocket) context.getSocketFactory().createSocket();
         serverSocket = (SSLServerSocket) context.getServerSocketFactory().createServerSocket();
 
-        assertNull(getSignatureSchemes(engine.getSSLParameters()));
-        assertNull(getSignatureSchemes(socket.getSSLParameters()));
-        assertNull(getSignatureSchemes(serverSocket.getSSLParameters()));
-        filter.getInclude().clear();
+        assertThat(getSignatureSchemes(engine.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(socket.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(serverSocket.getSSLParameters())).isEmpty();

Review Comment:
   **Keep the JUnit assertion style of this method**
   
   This method otherwise uses JUnit assertions (and the class imports `org.junit.jupiter.api.Assertions.*`), and CLAUDE.md asks not to mix AssertJ and JUnit in the same test method and to follow the module's predominant style. Keeping JUnit here (and dropping the new `assertThat` import at line 39):
   
   ```suggestion
           assertEquals(0, getSignatureSchemes(engine.getSSLParameters()).length);
           assertEquals(0, getSignatureSchemes(socket.getSSLParameters()).length);
           assertEquals(0, getSignatureSchemes(serverSocket.getSSLParameters()).length);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #27433:
URL: https://github.com/apache/camel/pull/27433


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "apupier (via GitHub)" <gi...@apache.org>.
apupier commented on code in PR #27433:
URL: https://github.com/apache/camel/pull/27433#discussion_r4196244850


##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1069,20 +1070,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = getSignatureSchemes(engine.getSSLParameters()).length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)

Review Comment:
   > * **Behaviour pinned here:** with defaults available, an empty `FilterParameters` now yields zero signature schemes, which makes every handshake fail. The null branch deliberately avoids that ("configuring an empty list would fail every handshake"). Is an empty result the intended `FilterParameters` semantics here, consistent with cipher suites? Or should the production code also WARN, or keep the defaults, when the filter leaves nothing?
   
   this is the point I do not understand the implications and what are the implications so I don't know



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #27433:
URL: https://github.com/apache/camel/pull/27433#discussion_r4203984222


##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1069,20 +1070,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = getSignatureSchemes(engine.getSSLParameters()).length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)
         FilterParameters filter = new FilterParameters();
-        filter.getInclude().add(".*");
         scp.setSignatureSchemesFilter(filter);
         context = scp.createSSLContext(null);
         engine = context.createSSLEngine();
         socket = (SSLSocket) context.getSocketFactory().createSocket();
         serverSocket = (SSLServerSocket) context.getServerSocketFactory().createServerSocket();
 
-        assertNull(getSignatureSchemes(engine.getSSLParameters()));
-        assertNull(getSignatureSchemes(socket.getSSLParameters()));
-        assertNull(getSignatureSchemes(serverSocket.getSSLParameters()));
-        filter.getInclude().clear();
+        assertThat(getSignatureSchemes(engine.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(socket.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(serverSocket.getSSLParameters())).isEmpty();

Review Comment:
   The rest of this method and file use JUnit assertions; the CLAUDE.md rule asks not to mix styles in one method:
   
   ```suggestion
           assertEquals(0, getSignatureSchemes(engine.getSSLParameters()).length);
           assertEquals(0, getSignatureSchemes(socket.getSSLParameters()).length);
           assertEquals(0, getSignatureSchemes(serverSocket.getSSLParameters()).length);
   ```
   
   (and then the AssertJ import can be removed)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27433:
URL: https://github.com/apache/camel/pull/27433#issuecomment-6014061532

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `core/camel-core`
   
   :repeat: **1 test passed only after a retry on JDK 25** (1 retried attempt)
   
   <details><summary>Recovered flaky tests on JDK 25 (1)</summary>
   
   | Module | Test | Failed attempts | First failure |
   | --- | --- | --- | --- |
   | `core/camel-core` | `ThreadsRejectedExecutionTest.testThreadsRejectedAbortNoRedelivery` | 1 | Expected 0 messages at mock:error but got 1 ==&gt; expected: &lt;0&gt; but was: &lt;1&gt; |
   
   > :information_source: These tests did **not** fail the build. Surefire retried them and they passed.
   > Retries are enabled project-wide by `surefire.rerunFailingTestsCount` in `parent/pom.xml`.
   
   </details>
   
   ---
   
   <details><summary>:microscope: Scalpel shadow comparison — Scalpel: 25 of 698 tested, 0 compile-only — current: 0 all tested</summary>
   
   [Maveniverse Scalpel](https://github.com/maveniverse/scalpel) detected **25 affected modules** (current approach: 0).
   
   **Skip-tests mode would test 25 modules** (1 direct + 24 downstream), **skip tests for 0** (generated code, meta-modules)
   
   <details><summary>:warning: Modules only in Scalpel (25)</summary>
   
   - `camel-console`
   - `camel-core`
   - `camel-datasonnet`
   - `camel-groovy`
   - `camel-hl7`
   - `camel-jactl`
   - `camel-javascript`
   - `camel-joor`
   - `camel-jq`
   - `camel-jsonpath`
   - `camel-main`
   - `camel-management`
   - `camel-mvel`
   - `camel-ognl`
   - `camel-platform-http-jolokia`
   - `camel-python`
   - `camel-python3`
   - `camel-quickjs`
   - `camel-saxon`
   - `camel-spring-xml`
   - `camel-stax`
   - `camel-xml-io-dsl`
   - `camel-xml-jaxb-dsl`
   - `camel-xml-jaxb-dsl-test-definition`
   - `camel-xml-jaxb-dsl-test-spring`
   
   </details>
   
   
   <details><summary>Modules Scalpel would test (25)</summary>
   
   - `camel-console` ← downstream of org.apache.camel:camel-core
   - `camel-core` ← core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java
   - `camel-datasonnet` ← downstream of org.apache.camel:camel-core
   - `camel-groovy` ← downstream of org.apache.camel:camel-core
   - `camel-hl7` ← downstream of org.apache.camel:camel-core
   - `camel-jactl` ← downstream of org.apache.camel:camel-core
   - `camel-javascript` ← downstream of org.apache.camel:camel-core
   - `camel-joor` ← downstream of org.apache.camel:camel-core
   - `camel-jq` ← downstream of org.apache.camel:camel-core
   - `camel-jsonpath` ← downstream of org.apache.camel:camel-core
   - `camel-main` ← downstream of org.apache.camel:camel-core
   - `camel-management` ← downstream of org.apache.camel:camel-core
   - `camel-mvel` ← downstream of org.apache.camel:camel-core
   - `camel-ognl` ← downstream of org.apache.camel:camel-core
   - `camel-platform-http-jolokia` ← downstream of org.apache.camel:camel-core
   - `camel-python` ← downstream of org.apache.camel:camel-core
   - `camel-python3` ← downstream of org.apache.camel:camel-core
   - `camel-quickjs` ← downstream of org.apache.camel:camel-core
   - `camel-saxon` ← downstream of org.apache.camel:camel-core
   - `camel-spring-xml` ← downstream of org.apache.camel:camel-core
   - `camel-stax` ← downstream of org.apache.camel:camel-core
   - `camel-xml-io-dsl` ← downstream of org.apache.camel:camel-core
   - `camel-xml-jaxb-dsl` ← downstream of org.apache.camel:camel-core
   - `camel-xml-jaxb-dsl-test-definition` ← downstream of org.apache.camel:camel-core
   - `camel-xml-jaxb-dsl-test-spring` ← downstream of org.apache.camel:camel-core
   
   </details>
   
   > :information_source: Shadow mode — Scalpel observes but does not affect test execution. [Learn more](https://github.com/maveniverse/scalpel)
   
   </details>
   
   :warning: **Some tests are disabled on GitHub Actions** (`@DisabledIfSystemProperty(named = "ci.env.name")`) and require manual verification:
   
   - `core/camel-core`: 4 test(s) disabled on GitHub Actions
   
   <details><summary>All tested modules (25 modules, 6m 3s total)</summary>
   
   **Total reactor time:** 6m 3s
   
   | Module | Duration | Status |
   | --- | --- | --- |
   | Camel :: QuickJS | 45.0s | SUCCESS |
   | Camel :: jOOR | 41.6s | SUCCESS |
   | Camel :: Main | 36.7s | SUCCESS |
   | Camel :: HL7 | 28.1s | SUCCESS |
   | Camel :: Console | 28.1s | SUCCESS |
   | Camel :: Python 3 | 25.0s | SUCCESS |
   | Camel :: DataSonnet | 21.4s | SUCCESS |
   | Camel :: StAX | 17.9s | SUCCESS |
   | Camel :: Groovy | 17.9s | SUCCESS |
   | Camel :: JSon Path | 16.1s | SUCCESS |
   | Camel :: Saxon | 13.9s | SUCCESS |
   | Camel :: XML DSL with camel-xml-io | 12.2s | SUCCESS |
   | Camel :: JQ | 8.5s | SUCCESS |
   | Camel :: XML DSL with camel-xml-jaxb | 7.4s | SUCCESS |
   | Camel :: Platform HTTP :: Jolokia | 6.4s | SUCCESS |
   | Camel :: XML DSL Jaxb :: Test :: Definition | 6.1s | SUCCESS |
   | Camel :: Python | 6.1s | SUCCESS |
   | Camel :: XML DSL Jaxb :: Test :: Spring | 5.3s | SUCCESS |
   | Camel :: JavaScript | 5.3s | SUCCESS |
   | Camel :: OGNL (deprecated) | 5.0s | SUCCESS |
   | Camel :: MVEL | 4.8s | SUCCESS |
   | Camel :: Jactl | 4.4s | SUCCESS |
   | Camel :: Core | n/a |  |
   | Camel :: Management | n/a |  |
   | Camel :: Spring XML | n/a |  |
   
   **Top 20 slowest modules:**
   - `Camel :: QuickJS` (45.0s)
   - `Camel :: jOOR` (41.6s)
   - `Camel :: Main` (36.7s)
   - `Camel :: HL7` (28.1s)
   - `Camel :: Console` (28.1s)
   - `Camel :: Python 3` (25.0s)
   - `Camel :: DataSonnet` (21.4s)
   - `Camel :: StAX` (17.9s)
   - `Camel :: Groovy` (17.9s)
   - `Camel :: JSon Path` (16.1s)
   - `Camel :: Saxon` (13.9s)
   - `Camel :: XML DSL with camel-xml-io` (12.2s)
   - `Camel :: JQ` (8.5s)
   - `Camel :: XML DSL with camel-xml-jaxb` (7.4s)
   - `Camel :: Platform HTTP :: Jolokia` (6.4s)
   - `Camel :: XML DSL Jaxb :: Test :: Definition` (6.1s)
   - `Camel :: Python` (6.1s)
   - `Camel :: XML DSL Jaxb :: Test :: Spring` (5.3s)
   - `Camel :: JavaScript` (5.3s)
   - `Camel :: OGNL (deprecated)` (5.0s)
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/37445354289)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #27433:
URL: https://github.com/apache/camel/pull/27433#discussion_r4422229350


##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1069,20 +1070,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = getSignatureSchemes(engine.getSSLParameters()).length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)
         FilterParameters filter = new FilterParameters();
-        filter.getInclude().add(".*");
         scp.setSignatureSchemesFilter(filter);
         context = scp.createSSLContext(null);
         engine = context.createSSLEngine();
         socket = (SSLSocket) context.getSocketFactory().createSocket();
         serverSocket = (SSLServerSocket) context.getServerSocketFactory().createServerSocket();
 
-        assertNull(getSignatureSchemes(engine.getSSLParameters()));
-        assertNull(getSignatureSchemes(socket.getSSLParameters()));
-        assertNull(getSignatureSchemes(serverSocket.getSSLParameters()));
-        filter.getInclude().clear();
+        assertThat(getSignatureSchemes(engine.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(socket.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(serverSocket.getSSLParameters())).isEmpty();

Review Comment:
   Fixed in be522774d249: the empty-filter block is gone, so no AssertJ is left in this method and the import is removed. The class uses JUnit assertions only.
   
   _Claude Code on behalf of davsclaus_



##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1069,20 +1070,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = getSignatureSchemes(engine.getSSLParameters()).length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)

Review Comment:
   Addressed in be522774d249 by no longer pinning it: the block that asserted an empty filter gives an empty array is removed, and the test keeps checking that `.*` keeps the JVM defaults. The test is `@Disabled` until a JDK 26+ release is supported (CI builds with 21 and 25). Whether an empty filter should keep the defaults, as the null branch does, is a question for the production code. It is noted on CAMEL-25335 for when JDK 26+ support comes.
   
   _Claude Code on behalf of davsclaus_



##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1069,20 +1070,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = getSignatureSchemes(engine.getSSLParameters()).length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)
         FilterParameters filter = new FilterParameters();
-        filter.getInclude().add(".*");
         scp.setSignatureSchemesFilter(filter);
         context = scp.createSSLContext(null);
         engine = context.createSSLEngine();
         socket = (SSLSocket) context.getSocketFactory().createSocket();
         serverSocket = (SSLServerSocket) context.getServerSocketFactory().createServerSocket();
 
-        assertNull(getSignatureSchemes(engine.getSSLParameters()));
-        assertNull(getSignatureSchemes(socket.getSSLParameters()));
-        assertNull(getSignatureSchemes(serverSocket.getSSLParameters()));
-        filter.getInclude().clear();
+        assertThat(getSignatureSchemes(engine.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(socket.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(serverSocket.getSSLParameters())).isEmpty();

Review Comment:
   Fixed in be522774d249: the empty-filter block is gone, so no AssertJ is left in this method and the import is removed. The class uses JUnit assertions only.
   
   _Claude Code on behalf of davsclaus_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "gnodet-bot (via GitHub)" <gi...@apache.org>.
gnodet-bot commented on code in PR #27433:
URL: https://github.com/apache/camel/pull/27433#discussion_r4346028999


##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1063,20 +1069,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = engine.getSSLParameters().getSignatureSchemes().length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)
         FilterParameters filter = new FilterParameters();
-        filter.getInclude().add(".*");
         scp.setSignatureSchemesFilter(filter);
         context = scp.createSSLContext(null);
         engine = context.createSSLEngine();
         socket = (SSLSocket) context.getSocketFactory().createSocket();
         serverSocket = (SSLServerSocket) context.getServerSocketFactory().createServerSocket();
 
-        assertNull(engine.getSSLParameters().getSignatureSchemes());
-        assertNull(socket.getSSLParameters().getSignatureSchemes());
-        assertNull(serverSocket.getSSLParameters().getSignatureSchemes());
-        filter.getInclude().clear();
+        assertThat(engine.getSSLParameters().getSignatureSchemes()).isEmpty();
+        assertThat(socket.getSSLParameters().getSignatureSchemes()).isEmpty();
+        assertThat(serverSocket.getSSLParameters().getSignatureSchemes()).isEmpty();

Review Comment:
   🔧 **Assertion style (still open):** These three `assertThat(...).isEmpty()` calls still use AssertJ. If `@Disabled` is removed (as recommended above), switch to JUnit-only:
   
   ```suggestion
           assertEquals(0, engine.getSSLParameters().getSignatureSchemes().length);
           assertEquals(0, socket.getSSLParameters().getSignatureSchemes().length);
           assertEquals(0, serverSocket.getSSLParameters().getSignatureSchemes().length);
   ```



##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -29,11 +29,13 @@
 import javax.net.ssl.SSLSocket;
 
 import org.apache.camel.CamelContext;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.condition.EnabledForJreRange;
 import org.junit.jupiter.api.condition.JRE;
 import org.junit.jupiter.api.parallel.Isolated;
 
+import static org.assertj.core.api.Assertions.assertThat;

Review Comment:
   🔧 **Assertion style mismatch (still open from previous review):** AssertJ is still being imported, despite all reviewers (@oscerd, @davsclaus, and previous bot review) requesting JUnit-only style in this file.
   
   Since the test is now `@Disabled` anyway, the assertions in this block will never run — but when the test is eventually re-enabled, the project rule applies. If keeping the assertions, switch to JUnit:
   
   ```suggestion
   import static org.junit.jupiter.api.Assertions.*;
   ```
   
   (remove the `assertThat` import — `assertEquals(0, engine.getSSLParameters().getSignatureSchemes().length)` is equivalent)



##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1044,12 +1046,16 @@ public void testSignatureSchemesFilter() throws Exception {
         assertNull(serverSocket.getSSLParameters().getSignatureSchemes());
     }
 
+    // This test only runs on JDK 26 onwards, where SSLParameters.getSignatureSchemes() returns the JVM defaults
+    // instead of null. Camel supports JDK 21 and 25, which CI builds with, so the test is disabled until a JDK 26+
+    // release is supported.
     @Test
+    @Disabled("Requires JDK 26+ which Camel does not support yet (only JDK 21 and 25)")

Review Comment:
   ⚠️ **`@Disabled` and `@EnabledForJreRange` are redundant:** `@Disabled` unconditionally skips the test regardless of JRE version. The `@EnabledForJreRange(min = JRE.JAVA_26)` annotation on the next line is now dead code — it will never be evaluated.
   
   If the intent is to disable temporarily and re-enable when JDK 26 is supported, consider using `@DisabledIfSystemProperty` tied to the JDK version check, or simply leave `@EnabledForJreRange` as the sole gating condition (it already guarantees the test won't run on JDK 25-). With `@Disabled`, you'll need a manual code change to re-enable it later, which is easy to forget.
   
   Suggested minimal fix — remove `@Disabled` and keep only the existing JRE guard:
   
   ```suggestion
       @Test
       @EnabledForJreRange(min = JRE.JAVA_26)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "gnodet-bot (via GitHub)" <gi...@apache.org>.
gnodet-bot commented on code in PR #27433:
URL: https://github.com/apache/camel/pull/27433#discussion_r4305961729


##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -36,6 +36,7 @@
 import org.junit.jupiter.api.condition.JRE;
 import org.junit.jupiter.api.parallel.Isolated;
 
+import static org.assertj.core.api.Assertions.assertThat;

Review Comment:
   🔧 **Assertion style mismatch:** the PR adds `import static org.assertj.core.api.Assertions.assertThat` and uses `assertThat(...).isEmpty()` in a method where the entire file uses JUnit assertions. Both @oscerd and @davsclaus flagged this. Either switch to JUnit:
   
   ```suggestion
   import static org.junit.jupiter.api.Assertions.*;
   ```
   
   (and use `assertEquals(0, getSignatureSchemes(...).length)` for the three assertions), or follow @davsclaus's other suggestion to delete the empty-filter block entirely.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27433:
URL: https://github.com/apache/camel/pull/27433#issuecomment-6013671655

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #27433:
URL: https://github.com/apache/camel/pull/27433#discussion_r4279870335


##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1069,20 +1070,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = getSignatureSchemes(engine.getSSLParameters()).length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)
         FilterParameters filter = new FilterParameters();
-        filter.getInclude().add(".*");
         scp.setSignatureSchemesFilter(filter);
         context = scp.createSSLContext(null);
         engine = context.createSSLEngine();
         socket = (SSLSocket) context.getSocketFactory().createSocket();
         serverSocket = (SSLServerSocket) context.getServerSocketFactory().createServerSocket();
 
-        assertNull(getSignatureSchemes(engine.getSSLParameters()));
-        assertNull(getSignatureSchemes(socket.getSSLParameters()));
-        assertNull(getSignatureSchemes(serverSocket.getSSLParameters()));
-        filter.getInclude().clear();
+        assertThat(getSignatureSchemes(engine.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(socket.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(serverSocket.getSSLParameters())).isEmpty();

Review Comment:
   Delete the block that asserts the empty filter, and keep only the filter that the rest of the method uses:
   
   ```suggestion
           FilterParameters filter = new FilterParameters();
           scp.setSignatureSchemesFilter(filter);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on PR #27433:
URL: https://github.com/apache/camel/pull/27433#issuecomment-6336087220

   I rebased this PR onto `main` (the conflict came from CAMEL-22996, which replaced the `getSignatureSchemes(...)` reflection helper with direct `SSLParameters.getSignatureSchemes()` calls) and added a commit, dc63de5d73ac, that disables `testSignatureSchemesFilter_postJDK26`.
   
   The test only runs on JDK 26 onwards (`@EnabledForJreRange(min = JAVA_26)`). Camel supports JDK 21 and 25, which CI builds with, so this test never runs in CI. It now has `@Disabled` and a code comment saying why. `@EnabledForJreRange` stays, so the test can be turned back on when a JDK 26+ release is supported.
   
   One thing to look at when it is turned back on: the comment this PR removes said an empty signature-scheme list "would fail every handshake", and the test now asserts that an empty filter produces an empty array. Neither expectation has been run on JDK 26 or 27 here.
   
   _Claude Code on behalf of davsclaus_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "apupier (via GitHub)" <gi...@apache.org>.
apupier commented on PR #27433:
URL: https://github.com/apache/camel/pull/27433#issuecomment-6013665691

   @oscerd Please review it carefully, I do not understand all the implications


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "apupier (via GitHub)" <gi...@apache.org>.
apupier commented on code in PR #27433:
URL: https://github.com/apache/camel/pull/27433#discussion_r4196244850


##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1069,20 +1070,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = getSignatureSchemes(engine.getSSLParameters()).length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)

Review Comment:
   > * **Behaviour pinned here:** with defaults available, an empty `FilterParameters` now yields zero signature schemes, which makes every handshake fail. The null branch deliberately avoids that ("configuring an empty list would fail every handshake"). Is an empty result the intended `FilterParameters` semantics here, consistent with cipher suites? Or should the production code also WARN, or keep the defaults, when the filter leaves nothing?
   
   this is the point I do not understand the implications and what is the expected behavior so I don't know



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on PR #27433:
URL: https://github.com/apache/camel/pull/27433#issuecomment-6232223740

   @apupier, a gentle ping: the open threads here wait for a push. The [suggestion of 10-15](https://github.com/apache/camel/pull/27433#discussion_r) removes the block that asserts the empty filter and keeps only the filter the rest of the method uses. That also settles the assertion-style threads (no AssertJ left in this method, so the import can go) and @oscerd's question about the behaviour this pins: the end of the method already tests that `.*` keeps the JVM's default signature schemes. Once that is pushed and CI is green, this can be merged.
   
   _Claude Code on behalf of Claus Ibsen_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25335: Fix SSLContextParametersTest.testSignatureSchemesFilter_postJDK26 on JDK 27 [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #27433:
URL: https://github.com/apache/camel/pull/27433#discussion_r4422230836


##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1069,20 +1070,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = getSignatureSchemes(engine.getSSLParameters()).length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)
         FilterParameters filter = new FilterParameters();
-        filter.getInclude().add(".*");
         scp.setSignatureSchemesFilter(filter);
         context = scp.createSSLContext(null);
         engine = context.createSSLEngine();
         socket = (SSLSocket) context.getSocketFactory().createSocket();
         serverSocket = (SSLServerSocket) context.getServerSocketFactory().createServerSocket();
 
-        assertNull(getSignatureSchemes(engine.getSSLParameters()));
-        assertNull(getSignatureSchemes(socket.getSSLParameters()));
-        assertNull(getSignatureSchemes(serverSocket.getSSLParameters()));
-        filter.getInclude().clear();
+        assertThat(getSignatureSchemes(engine.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(socket.getSSLParameters())).isEmpty();
+        assertThat(getSignatureSchemes(serverSocket.getSSLParameters())).isEmpty();

Review Comment:
   Applied in be522774d249.
   
   _Claude Code on behalf of davsclaus_



##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -36,6 +36,7 @@
 import org.junit.jupiter.api.condition.JRE;
 import org.junit.jupiter.api.parallel.Isolated;
 
+import static org.assertj.core.api.Assertions.assertThat;

Review Comment:
   Fixed in be522774d249: the empty-filter block is gone, so no AssertJ is left in this method and the import is removed. The class uses JUnit assertions only.
   
   _Claude Code on behalf of davsclaus_



##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -29,11 +29,13 @@
 import javax.net.ssl.SSLSocket;
 
 import org.apache.camel.CamelContext;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.condition.EnabledForJreRange;
 import org.junit.jupiter.api.condition.JRE;
 import org.junit.jupiter.api.parallel.Isolated;
 
+import static org.assertj.core.api.Assertions.assertThat;

Review Comment:
   Fixed in be522774d249: the empty-filter block is gone, so no AssertJ is left in this method and the import is removed. The class uses JUnit assertions only.
   
   _Claude Code on behalf of davsclaus_



##########
core/camel-core/src/test/java/org/apache/camel/support/jsse/SSLContextParametersTest.java:
##########
@@ -1063,20 +1069,17 @@ public void testSignatureSchemesFilter_postJDK26() throws Exception {
 
         int defaultSignatureSchemeNumber = engine.getSSLParameters().getSignatureSchemes().length;
 
-        // a filter cannot be applied as there are no default schemes to filter, so the defaults are kept (null)
-        // instead of an empty list (which would fail every handshake)
+        // empty filter - no includes means no schemes match (empty array)
         FilterParameters filter = new FilterParameters();
-        filter.getInclude().add(".*");
         scp.setSignatureSchemesFilter(filter);
         context = scp.createSSLContext(null);
         engine = context.createSSLEngine();
         socket = (SSLSocket) context.getSocketFactory().createSocket();
         serverSocket = (SSLServerSocket) context.getServerSocketFactory().createServerSocket();
 
-        assertNull(engine.getSSLParameters().getSignatureSchemes());
-        assertNull(socket.getSSLParameters().getSignatureSchemes());
-        assertNull(serverSocket.getSSLParameters().getSignatureSchemes());
-        filter.getInclude().clear();
+        assertThat(engine.getSSLParameters().getSignatureSchemes()).isEmpty();
+        assertThat(socket.getSSLParameters().getSignatureSchemes()).isEmpty();
+        assertThat(serverSocket.getSSLParameters().getSignatureSchemes()).isEmpty();

Review Comment:
   Fixed in be522774d249: the empty-filter block is gone, so no AssertJ is left in this method and the import is removed. The class uses JUnit assertions only.
   
   _Claude Code on behalf of davsclaus_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org