You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2026/05/01 13:21:00 UTC
(camel) branch camel-4.14.x updated: camel-smb: Sanitize URI for query param log warning message
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch camel-4.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.14.x by this push:
new 2b66e17db8db camel-smb: Sanitize URI for query param log warning message
2b66e17db8db is described below
commit 2b66e17db8db022f64d6592cab1aecaed1abd8c7
Author: James Netherton <ja...@users.noreply.github.com>
AuthorDate: Fri May 1 14:20:53 2026 +0100
camel-smb: Sanitize URI for query param log warning message
---
.../src/main/java/org/apache/camel/component/smb/SmbComponent.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbComponent.java b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbComponent.java
index 0b88cdcb2d52..5ea3bba70db0 100644
--- a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbComponent.java
+++ b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbComponent.java
@@ -25,6 +25,7 @@ import org.apache.camel.component.file.GenericFileComponent;
import org.apache.camel.component.file.GenericFileEndpoint;
import org.apache.camel.spi.annotations.Component;
import org.apache.camel.util.StringHelper;
+import org.apache.camel.util.URISupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -58,8 +59,8 @@ public class SmbComponent extends GenericFileComponent<FileIdBothDirectoryInform
if (path != null) {
config.setPath(path);
LOG.warn(
- "The path option should be specified in the context-path. Instead of using ?path=/mypath then specify this in the context-path in uri: "
- + uri);
+ "The path option should be specified in the context-path. Instead of using ?path=/mypath then specify this in the context-path in uri: {}",
+ URISupport.sanitizeUri(uri));
}
if (config.getShareName() == null) {