You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We noticed recently that pagination is not handled properly in the search method:
def search(query = '')
response = doget "/v2/_catalog"
# parse the response
repos = JSON.parse(response)["repositories"]
if query.strip.length > 0
re = Regexp.new query
repos = repos.find_all {|e| re =~ e }
end
return repos
end
The doget "/v2/_catalog" part above works fine in case the registry does not produce the paginated output, but returns only the first page in case it does. In my case, we talk to a private registry that refuses to return a list longer than 100 items, while we have almost 300 of the repositories.
Here are how the headers look like after the doget response has been acquired:
Hi!
We noticed recently that pagination is not handled properly in the
search
method:The
doget "/v2/_catalog"
part above works fine in case the registry does not produce the paginated output, but returns only the first page in case it does. In my case, we talk to a private registry that refuses to return a list longer than 100 items, while we have almost 300 of the repositories.Here are how the headers look like after the
doget
response has been acquired:The API itself is described here: https://docs.docker.com/registry/spec/api/#listing-repositories
Thanks!
The text was updated successfully, but these errors were encountered: