Skip to content

UI showing same sha256 content digest for all tags + Delete is not working #116

@cr1st1p

Description

@cr1st1p

Using UI version v1.4.0 - inside a kubernetes cluster.
After fixing Cors headers problem, I still face 3 issues when looking at an image.

Bug description

  1. looking at an image, I see the same content digest all over. I will attach a screenshot.
  2. when I try to delete an image, the wrong digest is used for the http DELETE call, mainly that duplicated ID. I get a 404 error back, "Manifest unknown".
    3- the UI does NOT show any kind of information when the DELETE call fails with that 404 error

Docker registry: version 2.7.1

Checking on the net, it looks like what needs to be given for deletion, is the value of the http header
'docker-content-digest', from when you retrieved each individual tag's manifest.
I succeeded when I did that with a curl command but with the digest from the http response headers - that's why there's no tag '1' in the screenshot, for example.

Also, that sha256 digest is probably the digest to show in the screen with the tags available for the image (i.e. in the page where I take the screenshot from).
Probably fixing 1) will automatically fix 2).

How to Reproduce

To reproduce, try deleting a docker image tag, after using the software versions I described.

Expected behavior

I would expect, for each case:

  1. correct content digest for each tag to be displayed
  2. DELETE to work
  3. in case it receives some 404 error, to show an error.

Screenshots

same-digest

System information

  • OS: Manjaro (Arch based Linux distro)
  • Browser:
    • Name: Chromium
    • Version: 79.0.*
  • Docker registry UI:
    • Version: 1.4.0
    • Interface variant: ?? [standard or static]
    • Server: docker (inside kubernetes)
    • Docker version: 18.0*
    • OS/Arch: linux/amd64
    • Tools: kubernetes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions