Joxit/docker-registry-ui

Pagination not working properly

aneumyvakin-aparavi opened this issue ยท 8 comments

Hi, I use this docker registry UI and I have an issue...
v2.5.3

Bug description

Pagination not working properly

How to Reproduce

For UI bug, steps to reproduce the behavior:

  1. Set TAGLIST_PAGE_SIZE=20
  2. Click on pagination page 3 etc...
  3. See error

Expected behavior

Pagination page properly open

Screenshots

image

Joxit commented

Hi, thank you for using my project and submitting issues.

Can you give me more information, I saw nothing wrong in the UI with your screenshot, and the console do not give mor intel.

Which version are you using?
What's happening when you click on different page?
Which kind of images are you using?

Hi, Joxit. Thx for this project.
Which version are you using? 2.5.3 and 2.5.4 this issue too.
What's happening when you click on different page? the page does not open.
Which kind of images are you using? the usual docker images created by the docker builder, or what did you mean?

Joxit commented

So, your screenshot is displaying page two but you have the images from the page 1 right ?

Your images in the repository app-docker-nonprod/app are amd64 images only ? Multi arch images ?
What is your docker registry UI full configuration ?
Is the page updated when you refresh ? (it uses un query param page=)

I cannot reproduce your issue, I have a test repository with 3002 images and its working even if I set TAGLIST_PAGE_SIZE=20, that's why I need more information
image

image

  1. Yes i can open 1, 2 pages
  2. Yes all images amd64
  3. I don't use docker compose, i use hashicorp nomad but the configurations are similar:
env {
  SINGLE_REGISTRY        = "true"
  REGISTRY_TITLE         = "Registry"
  DELETE_IMAGES          = "true"
  SHOW_CONTENT_DIGEST    = "false"
  SHOW_CATALOG_NB_TAGS   = "true"
  CATALOG_MIN_BRANCHES   = "1"
  CATALOG_MAX_BRANCHES   = "1"
  TAGLIST_PAGE_SIZE      = "20"
  REGISTRY_SECURED       = "false"
  CATALOG_ELEMENTS_LIMIT = "1000"
  PULL_URL               = "docker-registry.blablabla.com"
}
  1. I can only switch to the 3rd page, but not further... changing the address line page=3 (page=4 it doesn't work)

Hello, I think I meet a very similar issue.

image

When I click on page 2, I get the following error in the console.
UI remains on page 1.

image

I use docker-compose with the following docker-compose.yml file.

---
version: '3.6'

services:
  docker_registry: ...

  docker_registry_ui:
    container_name: docker-registry-ui
    image: joxit/docker-registry-ui:2.5.2-debian
    ports:
      - 127.0.0.1:8080:80 # nginx as reverse proxy
    environment:
      - REGISTRY_TITLE=Foo
      - REGISTRY_URL=https://docker-registry.foo.fr
      - PULL_URL=docker-registry.foo.fr
      - DELETE_IMAGES=false
      - SINGLE_REGISTRY=true
      - HISTORY_CUSTOM_LABELS=true
      - TAGLIST_PAGE_SIZE=20
    depends_on:
      - docker_registry

Should I open a dedicated issue ?

Joxit commented

Hi @aneumyvakin-aparavi and @cyberm8 , thank you for your updates/feedbacks, I released a fix for pagination today, could you tell me if this fixed your bug too ? Bundled in version 2.5.6

Hi @Joxit, yes it works correctly now. Thank you very much!

Joxit commented

Oh great! I'll close the issue then ๐Ÿ˜ thanks for your time