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

[jira] [Created] (CAMEL-17367) Kafka endpoint DSL for producer doesn't strip //

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)