You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/06/26 05:40:25 UTC
[PR] [backport camel-4.18.x] CAMEL-23834: camel-smb - Fix forward slashes rejected on Windows during atomic rename [camel]
davsclaus opened a new pull request, #24259:
URL: https://github.com/apache/camel/pull/24259
## Backport of #24255
Cherry-pick of #24255 onto `camel-4.18.x`.
**Original PR:** #24255 - CAMEL-23834: camel-smb - Fix forward slashes rejected on Windows during atomic rename
**Original author:** @davsclaus
**Target branch:** `camel-4.18.x`
### Original description
Fix regression introduced in CAMEL-22740 where the `atomicRenameFile()` method in `SmbOperations` passes forward-slash paths directly to smbj's `DiskEntry.rename()`. Unlike `DiskShare.openFile()` which internally normalizes `/` to `\` via `SmbPath.rewritePath()`, the `rename()` method sends the path as-is to the Windows SMB server, which strictly rejects forward slashes with `STATUS_OBJECT_NAME_INVALID (0xc0000033)`.
The fix converts forward slashes to backslashes before calling `src.rename()`, matching the SMB protocol requirement.
Co-Authored-By: Claude <no...@anthropic.com>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [backport camel-4.18.x] CAMEL-23834: camel-smb - Fix forward slashes rejected on Windows during atomic rename [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #24259:
URL: https://github.com/apache/camel/pull/24259
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org