Uploaded image for project: 'Kafka Connector'
  1. Kafka Connector
  2. KAFKA-351

Certain passwords raise an error in the URI

    • Type: Icon: Question Question
    • Resolution: Works as Designed
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 1.8.1
    • Component/s: Source

      When attempting to connect to a mongodb replicaset, if a password contains a "%", the following error will appear in kafka connect hub: Invalid value [URI] for configuration connection.uri: URLDecoder: Illegal hex characters in escape (%) pattern - Error at index 0 in: [string after %]

       

      URI structure:

      mongodb://user@password@host:port,user@password@host:port,user@password@host:port

      There are no options to connect to the cluster with a username and password so it cannot be used as a workaround. We are forced to use the URI as shown in the options.png screenshot.

      Connector version:
      mongodb/kafka-connect-mongodb:1.8.1

        1. options.PNG
          options.PNG
          14 kB
        2. mongodberror.jpg
          mongodberror.jpg
          13 kB

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            marta.carrasco@airenetworks.es Marta Carrasco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: