Sven created CAMEL-21397:
----------------------------
Summary: camel-file: autoCreateStepwise not working in Windows
Key: CAMEL-21397
URL: https://issues.apache.org/jira/browse/CAMEL-21397
Project: Camel
Issue Type: Bug
Components: camel-file
Affects Versions: 4.8.1
Reporter: Sven
2 issues were found when testing this new feature on Windows with SMB shares:
* When autoCreateStepWise is enabled it will always try to set permissions on
the folder which fails as it's using Posix which throws
UnsupportedOperationException
* The path split is incorrect for as it does not take into account the SMB
servername in the URI. It seems this part of the code was never foreseen to
work for Windows style paths as it was only executed when permissions were set
(which only works in Unix).
In short: enabling autoCreateStepwise will always fail to create files on
Windows environments (SMB or not).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)