From eeef999663d7da0e372aeeeac26ecf7201a3121d Mon Sep 17 00:00:00 2001 From: DaScheid <75588422+DaScheid@users.noreply.github.com> Date: Mon, 29 Jan 2024 11:01:22 +0100 Subject: [PATCH] JBERET-452: Mask db-creds from exception message --- .../src/main/java/org/jberet/repository/JdbcRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jberet-core/src/main/java/org/jberet/repository/JdbcRepository.java b/jberet-core/src/main/java/org/jberet/repository/JdbcRepository.java index 12f5483a0..0c1644597 100644 --- a/jberet-core/src/main/java/org/jberet/repository/JdbcRepository.java +++ b/jberet-core/src/main/java/org/jberet/repository/JdbcRepository.java @@ -1112,7 +1112,7 @@ private Connection getConnection() { try { return DriverManager.getConnection(dbUrl, dbProperties); } catch (final Exception e) { - throw BatchMessages.MESSAGES.failToObtainConnection(e, dbUrl, dbProperties); + throw BatchMessages.MESSAGES.failToObtainConnection(e, dbUrl, " masked"); } } }