You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Croway (via GitHub)" <gi...@apache.org> on 2026/06/11 15:11:49 UTC

[PR] [camel-4.18.x] CAMEL-23740: Fix WrappedFile converter for FTP/SFTP remote files [camel]

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

   ## Summary
   
   Backport of #23965 to `camel-4.18.x`.
   
   - Fix `LangChain4jAgentConverter.toAiAgentBody(WrappedFile)` to handle remote file types (FTP, SFTP) by falling back to the exchange type converter when `getFile()` does not return a `java.io.File`
   - MIME type is detected from `Exchange.FILE_NAME` header for remote files, with the same priority chain (agent header > file content type header > extension)
   - Add unit tests for remote `WrappedFile` conversion with both extension-based and header-based MIME detection
   
   ## Test plan
   
   - [x] Existing local `GenericFile<File>` conversion unchanged
   - [x] New `shouldConvertRemoteWrappedFileWithFileNameHeader` test verifies remote file → `ImageContent` via `Exchange.FILE_NAME`
   - [x] New `shouldConvertRemoteWrappedFileWithMediaTypeHeader` test verifies header-based MIME override for remote files


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [camel-4.18.x] CAMEL-23740: Fix WrappedFile converter for FTP/SFTP remote files [camel]

Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway commented on PR #23966:
URL: https://github.com/apache/camel/pull/23966#issuecomment-4689149426

   I'll fix the docs xref in a new PR


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [camel-4.18.x] CAMEL-23740: Fix WrappedFile converter for FTP/SFTP remote files [camel]

Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway merged PR #23966:
URL: https://github.com/apache/camel/pull/23966


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org