Skip to content

No way to pass special characters like @ or : as part of schema registry username and password #467

@james00002

Description

@james00002

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions