vsphere_exporter icon indicating copy to clipboard operation
vsphere_exporter copied to clipboard

Vcenter URL contruction failed when using a password that has a trailing question mark

Open lubyou opened this issue 7 years ago • 0 comments

Hi,

I tried to connect to a vcenter server with an account whose password has a trailing question mark. The connection to the vcenter server failed with "invalid URL port".

Changing the password to something that does not contain a trailing question mark allows the exporter to connect.

This probably a bug in url.Parse and can potentially be worked around by constructing a UserInfo object (https://golang.org/pkg/net/url/#UserPassword), instead of relying on url.Parse to parse the credentials out of the URL.

Thank you

lubyou avatar Aug 04 '17 10:08 lubyou