You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/02/17 15:14:15 UTC

(camel) branch main updated (eaa18a72439 -> 03b7e1b4689)

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

davsclaus pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


    from eaa18a72439 feat(components): camel-telemetry-simple first implementation
     new 47c293091d7 CAMEL-21752: camel-smb - Update SMBClient instantiation to consider `SmbConfiguration` and its `SmbConfig`. This ensures proper initialization with custom configurations when available, improving flexibility and reducing potential issues with null values. (#17178)
     new 03b7e1b4689 CAMEL-21752: Regen

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/java/org/apache/camel/component/smb/SmbOperations.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


(camel) 01/02: CAMEL-21752: camel-smb - Update SMBClient instantiation to consider `SmbConfiguration` and its `SmbConfig`. This ensures proper initialization with custom configurations when available, improving flexibility and reducing potential issues with null values. (#17178)

Posted by da...@apache.org.
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

commit 47c293091d7e0377bd062fa2d67257834c60b8dd
Author: gtkow <gt...@users.noreply.github.com>
AuthorDate: Mon Feb 17 16:10:22 2025 +0100

    CAMEL-21752: camel-smb - Update SMBClient instantiation to consider `SmbConfiguration` and its `SmbConfig`. This ensures proper initialization with custom configurations when available, improving flexibility and reducing potential issues with null values. (#17178)
---
 .../src/main/java/org/apache/camel/component/smb/SmbOperations.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbOperations.java b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbOperations.java
index 238cd71ef9b..20642747e5d 100644
--- a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbOperations.java
+++ b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbOperations.java
@@ -66,7 +66,7 @@ public class SmbOperations implements SmbFileOperations {
 
     public SmbOperations(SmbConfiguration configuration) {
         this.configuration = configuration;
-        this.smbClient = new SMBClient();
+        this.smbClient = configuration == null || configuration.getSmbConfig() == null ? new SMBClient() : new SMBClient(configuration.getSmbConfig());
     }
 
     @Override


(camel) 02/02: CAMEL-21752: Regen

Posted by da...@apache.org.
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

commit 03b7e1b4689186030fcfe2aee28cb56e254b824f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Feb 17 16:14:07 2025 +0100

    CAMEL-21752: Regen
---
 .../src/main/java/org/apache/camel/component/smb/SmbOperations.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbOperations.java b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbOperations.java
index 20642747e5d..67281611a97 100644
--- a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbOperations.java
+++ b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbOperations.java
@@ -66,7 +66,8 @@ public class SmbOperations implements SmbFileOperations {
 
     public SmbOperations(SmbConfiguration configuration) {
         this.configuration = configuration;
-        this.smbClient = configuration == null || configuration.getSmbConfig() == null ? new SMBClient() : new SMBClient(configuration.getSmbConfig());
+        this.smbClient = configuration == null || configuration.getSmbConfig() == null
+                ? new SMBClient() : new SMBClient(configuration.getSmbConfig());
     }
 
     @Override