This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 012d7fd13a3d chore(deps): Upgrade mariadb-java-client to 4.0.0 (#28990)
012d7fd13a3d is described below
commit 012d7fd13a3deed045bc28b03b57177cbd70e905
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 3 15:13:51 2026 +0100
chore(deps): Upgrade mariadb-java-client to 4.0.0 (#28990)
Signed-off-by: Claus Ibsen <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[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 8479408d36cf..7c82ebd18930 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
@@ -676,6 +676,26 @@ with another element type fails. SEARCH fails on a `List`
body.
REMOVE now fails when the body is not text (a `String`, bytes or a stream) or
a `Collection` of `String` IDs. Before, a
`Map` or a number body removed the ID made of its `toString()`, which usually
removed nothing.
+=== 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 250ab4633804..cda15097393f 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>