Description:
This is an issue found when trying to crate a new Tag on Quay 3.10 new UI, when input long tag name(e.g. 140 characters), Quay new UI report error message "Can't create new Tag", checked the API response found the max supported length is 128 characters, so Quay new UI should validate the input and block the request to Quay backend when the input tag name is not valid, and give users reasonable error message like "tag name is too long, max length is 128 Characters",
Pls review this issue.
Quay: quay-operator-bundle-container-v3.10.0-113
Python3:
>>> len("ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhhhhhjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjkkkkkkkkkkkkkkkkkkk")
140
The API response of create new tag:
PUT https://quayregistry.apps.quaytest-1517.qe.devcluster.openshift.com/api/v1/repository/quay/demo/tag/ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhhhhhjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjkkkkkkkkkkkkkkkkkkk 400 error code {"message": "Invalid tag: must match [A-Za-z0-9_.-], NOT start with \".\" or \"-\", and can contain 1-128 characters"}
- is incorporated by
-
PROJQUAY-8710 Quay new UI known issues List
-
- New
-