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 <[email protected]>


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to