Closed gorille closed 6 years ago
Please, share with us how do you configure those user/password/doamin
.
However It looks like would be better to use UriComponentsBuilder
from Spring Web for encoding: https://docs.spring.io/spring/docs/5.0.6.RELEASE/spring-framework-reference/web.html#mvc-uri-building
I use the provided SmbSessionFactory as explained in the post.
SmbSessionFactory factory = new SmbSessionFactory()
factory.setUsername("user");
factory.setPassword("password");
...
... // and later in the code
FileTransferringMessageHandler<SmbFile> handler = new FileTransferringMessageHandler<> (factory );
Hi Folks,
I've just tried to use the spring integration smb extension to push files according to this post.
I do fill in the user/password/doamin and when I launch the code, I get an error
Please do note the user%3Apassword , this comes from here
URLEncoder.encode(domainUserPass, "UTF8");
is basically encoding the:
which is wrong. correct URL scheme should be smb://user:password@host:445 instead of smb://user%3Apassword@host:445