You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2026/08/03 12:57:00 UTC

[jira] [Updated] (CAMEL-24297) camel-ldif: add an opt-in for treating the message body as a URL to fetch

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

Andrea Cosentino updated CAMEL-24297:
-------------------------------------
    Fix Version/s: 4.22.0

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