Open daolis opened 3 years ago
registry.getPaginatedJSON(url, &response) in
registry.repositories
uses a URL including protocol, and base URL at the fist call and fetches the list of repositories correctly. e.g. url =https://myrepository/v2/_catalog
BUT it returns the URL to fetch the next page without the base URL e.g.
/v2/_catalog?last=something&n=100&orderby=
next call to registry.getPaginatedJSON(url, &response) return an error:
unsupported protocol scheme ""
I guess the same error will happen for Tags (
registry.repositories
)
I fixed it on func (registry *Registry) Repositories() ([]string, error)
in repositories.go
with
url = strings.ReplaceAll(url, "%", "%%")
url = registry.url(url)
after
url, err = registry.getPaginatedJSON(url, &response)
Maybe the Tags can be fixed with the same way.
Bump on this issue - do we know if there is a work-around?
registry.getPaginatedJSON(url, &response) in
registry.repositories
uses a URL including protocol, and base URL at the fist call and fetches the list of repositories correctly. e.g. url =https://myrepository/v2/_catalog
BUT it returns the URL to fetch the next page without the base URL e.g.
/v2/_catalog?last=something&n=100&orderby=
next call to registry.getPaginatedJSON(url, &response) return an error:
unsupported protocol scheme ""
I guess the same error will happen for Tags (
registry.repositories
)