Fails to Authenticate when a "+" is present in the password using camel component

Solution Verified - Updated -

Issue

We have a camel spring boot application with a java dsl connection to a confluent kafka broker:

 final String saslJaasConfig = "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"USERNAME\" " +
        "password=\"PASSWORD\";";

        from("kafka:dev-account?brokers=my.kafka.service:9092"
            + "&groupId=AAA"
            + "&saslMechanism=PLAIN"
            + "&securityProtocol=SASL_SSL"
            + "&sslTruststoreLocation=C:\\some\\path\\truststore.jks"
            + "&sslTruststorePassword=changeit"
            + "&saslJaasConfig=" + saslJaasConfig)

Environment

  • Red Hat Fuse 7.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content