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

   ## Summary
   
   A test-only addition for CAMEL-26398, which made the file tools of the AI 
authoring tools (`camel ask`, the MCP server and the TUI) refuse a file that a 
symbolic link leads out of the directory.
   
   `AuthoringToolsFilePathsTest.aSymbolicLinkInTheProjectDoesNotLeadOutOfIt` 
already covers:
   - reads through a linked directory and through a link to a file;
   - a write through a linked directory;
   - a write through a link to nothing.
   
   It now also covers a `camel_write_file` call through a link to an 
**existing** file outside the project (`linked.yaml`). The call is refused, and 
the file outside keeps its content.
   
   No production change: `AuthoringTools.resolveFile` already resolves the link 
(the TUI's write goes through the same method).
   
   ### Tests
   - `AuthoringToolsFilePathsTest` passes (18).
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 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