[ https://issues.apache.org/jira/browse/CAMEL-21752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-21752. --------------------------------- Resolution: Fixed Thanks for reporting and the PR > camel-smb - DFS doesn't work because SmbConfig cannot be set for smbclient > -------------------------------------------------------------------------- > > Key: CAMEL-21752 > URL: https://issues.apache.org/jira/browse/CAMEL-21752 > Project: Camel > Issue Type: Bug > Components: camel-smb > Affects Versions: 4.10.0 > Environment: * Springboot 3.4.2 (with camel camel-smb-starter) > * Java 17 > * Camel Version 4.10.0 > Reporter: Gianluca > Priority: Minor > Fix For: 4.10.1, 4.11.0 > > > When trying to connect to a server with DFS mode enabled, a connection error > appears. > To set DFS mode to true, an {{SmbConfig}} object must be created with the > {{withDFSEnable}} parameter set to {{{}true{}}}. > This object allows for advanced client configuration. > Here is an example with Camel Spring Boot: > {code:java} > @Configuration > public class SmbConfigBean { > @Bean > public SmbConfig smbConfig() { > return SmbConfig.builder() > .withDfsEnabled(true) // Active le DFS > .withMultiProtocolNegotiate(true) > .build(); > } > } {code} > > However, the configuration is not applied during the client connection. The > configuration is not passed this constructor. > {code:java} > public SmbOperations(SmbConfiguration configuration) { > this.configuration = configuration; > this.smbClient = new SMBClient(); > } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)