[ https://issues.apache.org/jira/browse/CAMEL-19691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17749993#comment-17749993 ]
Claus Ibsen commented on CAMEL-19691: ------------------------------------- When do you really have a blank password ? > camel-kafka - Allow sslKeystorePassword to be blank > --------------------------------------------------- > > Key: CAMEL-19691 > URL: https://issues.apache.org/jira/browse/CAMEL-19691 > Project: Camel > Issue Type: Bug > Components: camel-kafka > Affects Versions: 3.21.0 > Reporter: Jake Mehring > Priority: Minor > > Currently if you try to load a keystore with a blank password camel overrides > the blank to be null. You can work around this by forcing the blank into the > kafka config by setting it via "additionalProperties.ssl.keystore.password". > > Relevant Code: > [Producer > Config|https://github.com/apache/camel/blob/main/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java#L435] > [Consumer > Config|https://github.com/apache/camel/blob/main/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java#L516] > > Solution is probably just to use addPropertyIfNotNull instead of > addPropertyIfNotEmpty for this property. -- This message was sent by Atlassian Jira (v8.20.10#820010)