This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch chore-mariadb-4
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 2a485a132ecfd6f9c5849adbbc80b020afb2c0c3
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 2 22:25:57 2026 +0100

    chore(deps): Upgrade mariadb-java-client to 4.0.0
    
    MariaDB Connector/J 4 enables TLS by default (sslMode=verify-full), which
    rejects the self-signed certificate of MariaDB4j, so the camel-sql stored
    function test sets sslMode=trust. camel run downloads this driver version,
    so the breaking changes go in the 4.24 upgrade guide.
    
    Supersedes #28931.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../sql/stored/SqlFunctionDataSourceTest.java        |  3 ++-
 .../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc      | 20 ++++++++++++++++++++
 parent/pom.xml                                       |  2 +-
 3 files changed, 23 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-sql/src/test/java/org/apache/camel/component/sql/stored/SqlFunctionDataSourceTest.java
 
b/components/camel-sql/src/test/java/org/apache/camel/component/sql/stored/SqlFunctionDataSourceTest.java
index d51346802ba5..636f6f5e0af5 100644
--- 
a/components/camel-sql/src/test/java/org/apache/camel/component/sql/stored/SqlFunctionDataSourceTest.java
+++ 
b/components/camel-sql/src/test/java/org/apache/camel/component/sql/stored/SqlFunctionDataSourceTest.java
@@ -84,7 +84,8 @@ public class SqlFunctionDataSourceTest extends 
CamelTestSupport {
 
         DriverManagerDataSource dataSource = new DriverManagerDataSource();
         dataSource.setDriverClassName("org.mariadb.jdbc.Driver");
-        dataSource.setUrl(db.getConfiguration().getURL(DB_NAME));
+        // MariaDB Connector/J 4 defaults to sslMode=verify-full, which 
rejects the self-signed certificate of MariaDB4j
+        dataSource.setUrl(db.getConfiguration().getURL(DB_NAME) + 
"?sslMode=trust");
         dataSource.setUsername("root");
         dataSource.setPassword("");
 
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index 2e58a5d51433..2029f98d15c7 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -603,6 +603,26 @@ which embeds its own relocated copy of Vert.x. The `vertx` 
option of `camel-aran
 See the 
https://github.com/fabric8io/kubernetes-client/blob/main/doc/MIGRATION-v8.md[Kubernetes
 client 8 migration guide]
 for the other changes.
 
+=== camel-jbang - camel run uses MariaDB Connector/J 4
+
+Camel is upgraded to MariaDB Connector/J 4.0 
(`org.mariadb.jdbc:mariadb-java-client`), which is the version
+`camel run` downloads for a route or application that uses the MariaDB JDBC 
driver. The driver has these breaking
+changes:
+
+* TLS is enabled by default: `sslMode` defaults to `verify-full`. A server 
without TLS, or with a certificate the
+  client does not trust (such as a self-signed one), now fails the connection. 
Configure the trust store, or set
+  the `sslMode` option in the JDBC URL, for example `sslMode=trust` for a test 
database with a self-signed
+  certificate, or `sslMode=allow`.
+* `PreparedStatement.executeQuery()` rejects a statement that returns no 
result set. The `permitNoResults=true`
+  option in the JDBC URL restores the former behavior.
+* `setSavepoint()` throws in auto-commit mode.
+* AWS IAM authentication moved to the separate 
`org.mariadb.jdbc:mariadb-java-client-aws` artifact, which an
+  application using it must now add.
+* Java 17 is the minimum, and the `useReadAheadInput` option is removed.
+
+See the 
https://github.com/mariadb-corporation/mariadb-connector-j/blob/main/CHANGELOG.md[MariaDB
 Connector/J changelog]
+for the other changes.
+
 === camel-resilience4j, camel-microprofile-fault-tolerance - a circuit breaker 
in a doTry
 
 A circuit breaker in the steps of a `doTry` no longer ends that `doTry` for 
the steps after it. Before, when the
diff --git a/parent/pom.xml b/parent/pom.xml
index 238c4cc4bb25..583175c92c31 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -241,7 +241,7 @@
         <hibernate-version>7.4.13.Final</hibernate-version>
         <hivemq-mqtt-client-version>1.4.0</hivemq-mqtt-client-version>
         <hsqldb-version>2.7.4</hsqldb-version>
-        <mariadb-version>3.5.10</mariadb-version>
+        <mariadb-version>4.0.0</mariadb-version>
         <mariadb4j-version>3.3.1</mariadb4j-version>
         <httpcore-version>5.4.4</httpcore-version>
         <httpclient-version>5.6.5</httpclient-version>

Reply via email to