-
Notifications
You must be signed in to change notification settings - Fork 494
Description
From issues #307 and #342 I learned that you can pass schema registry username and password in the url like this
-r https://user:[email protected]
This does work fine normally, but it fails when either the username or password contains special characters such as @ and : (Maybe others too, those were just the symbols I confirmed were a problem)
For example, if the username was [email protected] or if the password was something like "rNtyMJJA-@aAC9HI:TCc"
It fails with an error message that looks like this:
% ERROR: Failed to format message in my-example-topic [3] at offset 11384162: Avro/Schema-registry message deserialization: REST request failed (code -1): HTTP request failed: URL using bad/illegal format or missing URL: terminating
I also tried urlecoding the username and password, but that didn't help. I could get the "using bad/illegal format or missing URL" error to stop that way, but then it failed with 'REST request failed (code 401): {"error_code":401,"message":"Unauthorized"}' so I know that doesn't work.
I know the username and password I am testing with are valid, because passing them to a schema registry API call using curl's -u argument works just fine.
Is there some other way to pass the username and password besides embedding in the url, or is there some way to escape those special characters in the url?