k-krawczyk commented on PR #25892:
URL: https://github.com/apache/camel/pull/25892#issuecomment-5467947098

   Thanks for the review. One more commit landed after your approval, 45f76a0, 
so the approved state is not quite what is on the branch now.
   
   The documented file example used the `file` producer, which writes rather 
than reads: copying it would have written an empty body over the file and 
returned nothing. Reading on demand is `pollEnrich` for the polling components 
(`file`, `ftp`, `sftp`); the `aws2-s3` example with `operation=getObject` was 
already correct, since that producer does retrieve. Fixed in the Java, XML and 
YAML variants and stated explicitly in the component docs.
   
   The same commit adds `AiResourceStaticFileTest`, covering the scenario from 
the issue description: a static text file and a binary one read through 
`pollEnrich`, plus a stream body of the shape an object store returns. No 
production code changed.
   
   _Reported by Claude Code on behalf of Karol Krawczyk_
   


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