Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quay.io tags list pagination broken: link now properly returns last query parameter #106

Closed
thomas-riccardi opened this issue Aug 1, 2024 · 0 comments · Fixed by #107
Closed

Comments

@thomas-riccardi
Copy link
Contributor

(Coming here from Dependabot that miss a bump of FROM quay.io/keycloak/keycloak:25.0.1 Dockerfile (there is a tag 25.0.2))

There is a special case for quay.io registry:

link_key = @uri.host.eql?('quay.io') || @uri.host.eql?('registry.access.redhat.com') ? 'next_page' : 'last'

it comes from #63, from #56, from dependabot/dependabot-core#3989

But at least now, the quay.io api does return a standard link header with last query parameter:

$ curl -I https://quay.io/v2/keycloak/keycloak/tags/list
HTTP/2 200 
date: Thu, 01 Aug 2024 14:49:55 GMT
content-type: application/json
content-length: 1043
server: nginx/1.22.1
link: </v2/keycloak/keycloak/tags/list?n=100&last=23.0.4-0>; rel="next"
vary: Cookie
x-frame-options: DENY
strict-transport-security: max-age=63072000; preload

The quay.io ticket was closed automatically, but the issue seems solved.

=>
#63 should probably be reverted; and in fact the remaining part for the redhat registry too: #92 : it seems also fixed there:

$ curl -I https://registry.access.redhat.com:443/v2/ubi8/ubi-minimal/tags/list
HTTP/1.1 200 OK
Content-Length: 1579
Content-Type: application/json
Link: </v2/ubi8/ubi-minimal/tags/list?n=100&last=8.7-1031-source>; rel="next"
Strict-Transport-Security: max-age=63072000; preload
X-Frame-Options: DENY
Expires: Thu, 01 Aug 2024 14:58:23 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Thu, 01 Aug 2024 14:58:23 GMT
Connection: keep-alive

=> I'm opening a PR soon.

thomas-riccardi added a commit to thomas-riccardi/dependabot-core that referenced this issue Sep 10, 2024
thomas-riccardi added a commit to thomas-riccardi/dependabot-core that referenced this issue Sep 10, 2024
thavaahariharangit added a commit to dependabot/dependabot-core that referenced this issue Nov 1, 2024
* Updates docker_registry2 from 1.18.0 to 1.18.2 to fix quay.io container registry pagination

Fix #10347, cf deitch/docker_registry2#106

Updates `docker_registry2` from 1.18.0 to 1.18.2

Commits
* [`b830597`](deitch/docker_registry2@b830597) bump 1.18.2 ([#108](https://redirect.github.com/deitch/docker_registry2/issues/108))
* [`2915d80`](deitch/docker_registry2@2915d80) Fix pagination for tags list pagination for quay.io & registry.access.redhat....
* [`2071379`](deitch/docker_registry2@2071379) remove gemfile.lock from gitignore and commit to git ([#105](https://redirect.github.com/deitch/docker_registry2/issues/105))
* [`c33e9f5`](deitch/docker_registry2@c33e9f5) v1.18.1 ([#104](https://redirect.github.com/deitch/docker_registry2/issues/104))
* [`4d4b968`](deitch/docker_registry2@4d4b968) Smartly join URLs ([#101](https://redirect.github.com/deitch/docker_registry2/issues/101))
* [`d11771a`](deitch/docker_registry2@d11771a) Enhancement of rubocop and tests configs ([#103](https://redirect.github.com/deitch/docker_registry2/issues/103))
* [`4c130c9`](deitch/docker_registry2@4c130c9) Fix rubocop on master ([#102](https://redirect.github.com/deitch/docker_registry2/issues/102))
* See full diff in [compare view](deitch/docker_registry2@v1.18.0...v1.18.2)

* Bump docker_registry2 in common/dependabot-common.gemspec: we need the fix

also manually reported to Gemfile.lock files

* build: ⬆️ tapioca gem

Signed-off-by: Lewis Strong <lewis.strong@qodea.com>

---------

Signed-off-by: Lewis Strong <lewis.strong@qodea.com>
Co-authored-by: Thomas Riccardi <thomas@deepomatic.com>
Co-authored-by: Hariharan Thavachelvam <164553783+thavaahariharangit@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant