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

   [CAMEL-27250](https://issues.apache.org/jira/browse/CAMEL-27250)
   
   ### Changes
   Without `outputBaseDirectory`, the `CamelDoclingOutputFilePath` header was 
only normalized, so it could name any directory for the docling CLI `--output`.
   
   - Without `outputBaseDirectory`, the header must now be a relative path that 
does not start with `../` once normalized. This is the rule the 
`CamelDoclingCustomArguments` header already applies. An absolute path or a 
path that leaves the working directory fails the exchange with an `IOException`.
   - With `outputBaseDirectory` set, nothing changes: the header must resolve 
inside that directory, and an absolute path inside it is accepted.
   - The `outputBaseDirectory` option description and the component page 
describe the rule.
   - Upgrade guide 4.24: routes that set an absolute output directory in the 
header set `outputBaseDirectory` to a directory that contains them.
   
   ### Tests
   - `DoclingOutputPathValidationTest`: a relative header is accepted; an 
absolute header, and `out/../../x`, are rejected without `outputBaseDirectory`, 
both through a route and when the CLI command is built. The existing 
`outputBaseDirectory` tests are unchanged.
   - `mvn verify` in `camel-docling`: 113 unit tests (0 failures, 8 skipped) 
and 50 integration tests pass.
   - Catalog JSON and doc, component DSL and endpoint DSL regenerated (the 
option description only).
   
   _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