Andrea Cosentino created CAMEL-24297:
----------------------------------------

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


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