Error when configuring hostname with a / character
Opened this issue · 1 comments
registry:
hostname: ewr.vultrcr.com/XXXX
...
I'm encountering an issue when setting the hostname configuration to include a / character in the registry URL. Specifically, when I configure the hostname as ewr.vultrcr.com/XXXX, I receive the following error:
time="2024-09-05T09:49:50Z" level=error msg="[RefreshCatalog] Error fetching catalog: Get \"https:///v2/\": http: no Host in request URL" logger=registry.client
It seems like the / character in the hostname may be causing this issue. Could you please confirm if the hostname field supports URLs with paths, or if only the domain name (without /) is allowed?
Steps to Reproduce:
Set hostname: ewr.vultrcr.com/XXXX in the configuration.
Run the registry client and try to refresh the catalog.
Observe the error message.
Expected Behavior:
I expect the catalog to refresh without errors even when the hostname contains a path.
Yea, hostname
option should not be an URL with path.
Moreover, I guess the underlying library github.com/google/go-containerregistry
may not support this either...