harbor icon indicating copy to clipboard operation
harbor copied to clipboard

Retagging Artifacts doesn't work for same project/repository

Open gustavoramos00 opened this issue 3 months ago • 4 comments

Expected behavior and actual behavior: As stated in the documentation here, it should be possible to copy a tag to another within the same project and repository, e.g from release/app:stg to release/app:prd.

But when trying to do this, the following error message appears:

A repository name is broken up into path components. A component of a repository name must be at least one lowercase, alpha-numeric characters, optionally separated by periods, dashes or underscores. More strictly, it must match the regular expression [a-z0-9]+(?:[._-][a-z0-9]+)*.If a repository name has two or more path components, they must be separated by a forward slash ('/').The total length of a repository name, including slashes, must be less the 256 characters.

Steps to reproduce the problem: Select an artifact from repositories view, go to Actions menu, then Copy. Fill the project and set the full imagem name, with the tag, ex cdms/arquivo/frontend-arquivo:prd

Versions:

  • harbor version: v2.13.1-9384ed0e
Image

gustavoramos00 avatar Sep 25 '25 18:09 gustavoramos00

the cdms/arquivo/frontend-arquivio:prd is the full image name, the input requires repository name, such as frontend-arquivio, if you need to rename the tag, you should create a new tag for the copied artifact.

stonezdj avatar Sep 29 '25 05:09 stonezdj

Thanks for the reply @stonezdj, but the documentation says that in the "Retagging Artifacts" feature it is possible to copy from "release/app:stg" to "release/app:prd". How do I do this?

gustavoramos00 avatar Sep 30 '25 11:09 gustavoramos00

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

github-actions[bot] avatar Nov 30 '25 09:11 github-actions[bot]

Still relevant

gustavoramos00 avatar Dec 03 '25 19:12 gustavoramos00