Pass URI to elasticsearch client instead of string
requested to merge 13739-elasticsearch-integration-throws-a-401-with-special-character-in-password into master
What does this MR do and why?
Because we were URL encoding username and password
but passing uri.to_s
to the elasticsearch client,
elasticsearch client was URL encoding the username
and password a second time which resulted in 401
errors.
Passing a URI to elasticsearch client fixes this.
Changelog: fixed EE: true
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #13739 (closed)
Edited by John Mason