Andrew Rosenberg created CAMEL-17367:
----------------------------------------

             Summary: Kafka endpoint DSL for producer doesn't strip //
                 Key: CAMEL-17367
                 URL: https://issues.apache.org/jira/browse/CAMEL-17367
             Project: Camel
          Issue Type: Bug
          Components: camel-endpointdsl
    Affects Versions: 3.12.0
            Reporter: Andrew Rosenberg


I'm trying something like this

{{.toD(}}
{{ kafka("my-topic")}}
{{ .brokers("\{{kafka.brokers}}")}}
{{ 
.partitioner(org.apache.kafka.clients.producer.RoundRobinPartitioner.class.getName())}}
{{ .valueSerializer(ByteArraySerializer.class.getName()))}}

and I get this error

{{Metadata response reported invalid topics [//my-topic]}}

This is because {{parseTopicName}} in KafkaSendDynamicAware is unaware of the 
{{//}} in the uri.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to