-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMB: FileTransferringMessageHandler not creating folders #250
Comments
Show, please, the whole stack trace for such an error.
So, if you add a DEBUG logging level for the Tell us also, please, how it works if you don't have that |
full path from log: int2/PRJ/data/20220303/provider/IN/
1
2
...
|
This is the part of JCIFS where that exception is thrown:
Doesn't looks like there is something we can do with this problem in this project. Perhaps you got some limits for your requests?.. |
seems that I found out the problem in the end: |
Hm.
According to your findings it looks like we also have to add If that is what you are thinking, too, feel free to contribute the fix. Thank you! |
Not sure if this is a good idea to always force a forward slash at the end... I'd like to understand all the use cases before we allow this in the code. As stated this is mitigated anyways by the configuration setting in the SmbSessionFactory initialization. |
Yes. We can live with that workaround and give it some flexibility when same configuration without "forward slash at the end" works in other environment. |
I've created a class like this:
Then used it in a spring integration flow like this:
And when I run the flow everything is fine as long as at least the folders dir1, dir2, dir3 are already created, it managed to create dir4 if is not available. But if dir3 (or below, like dir1 or dir2) are not already created, the component fails with:
What can I do in order to make it create all the necessary folders, no matter how many?
The text was updated successfully, but these errors were encountered: