[ 
https://issues.apache.org/jira/browse/CAMEL-24297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-24297.
--------------------------------------
    Resolution: Fixed

Fixed on main via PR https://github.com/apache/camel/pull/25310 — dereferencing 
a URL from the message body is now opt-in. Main-only (4.22.0).

_Claude Code on behalf of Andrea Cosentino (@oscerd)._

> camel-ldif: add an opt-in for treating the message body as a URL to fetch
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-24297
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24297
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 4.22.0
>
>
> LdifProducer treats a message body that does not start with 'version: 1' as a 
> URL and dereferences it (URI.create(body).toURL().openStream()). This 
> content-sniffed mode switch is documented but implicit. Suggested: add an 
> allowUrlBody option (default false) on LdifEndpoint; when false, a body that 
> is not valid LDIF throws IllegalArgumentException instead of being 
> dereferenced as a URL. Makes the URL-fetch mode an explicit opt-in.
> _Filed by Claude Code on behalf of Andrea Cosentino._



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to