davsclaus opened a new pull request, #30170:
URL: https://github.com/apache/camel/pull/30170

   ## Backport of #29855
   
   Cherry-pick of #29855 onto `camel-4.22.x` (`git cherry-pick -x 
a91ba7e7c5c6`).
   
   **Original PR:** #29855 - CAMEL-26928: camel-file - the consumer's move, 
preMove and moveFailed honour jailStartingDirectory for symbolic links
   **Original author:** @davsclaus
   **Target branch:** `camel-4.22.x`
   **JIRA:** [CAMEL-26928](https://issues.apache.org/jira/browse/CAMEL-26928), 
fix version 4.22.3
   
   ### Port
   
   Straight cherry-pick of the code, tests and component docs: every hunk in 
the 14 files below is identical to #29855.
   
   - `components/camel-file`: `FileConsumer`, `FileOperations`, 
`GenericFileHelper`, `GenericFileOperations`, the process strategies and the 
new `DefaultMoveRenamer`
   - `components/camel-file/src/main/docs/file-component.adoc` and its catalog 
copy
   - Tests: `GenericFileHelperTest` (camel-file), 
`FileConsumerMoveJailStartingDirectorySymlinkTest` and 
`FileProducerJailStartingDirectorySymlinkMoveTest` (camel-core)
   
   Conflicts resolved mechanically, no code change:
   
   - `GenericFileHelperTest`: the two new tests are appended. The conflict came 
only from tests of another change on `main` that is not on this branch, which 
are left out.
   - The upgrade-guide changes (`camel-4x-upgrade-guide-4_18.adoc`, `4_22.adoc` 
and `4_24.adoc`) are dropped, because the upgrade guides for all versions live 
on `main`, where #29855 already added the 4.22.3 note.
   
   ### Original description
   
   See #29855 for details. With `jailStartingDirectory` enabled (the default), 
the target of a consumer move (`move`, `preMove`, `moveFailed` and the default 
`.camel` folder) inside the starting directory is checked with symbolic links 
resolved before it is deleted, its parent directories are created or the file 
is renamed onto it, as the producer already does. A file whose move target 
resolves outside the starting directory is skipped. Targets configured outside 
the starting directory keep working, and `jailStartingDirectory=false` keeps 
the previous behaviour.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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