Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-6248

[New UI] Regular expression for adding a new label doesn't correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • quay-v3.10.0
    • quay-ui

      Description:

      On Quay 3.10 new UI, when input invalid info, the prompt regular expression message doesn't correct. Upper case letters look can't be the key of label. And it's better more specific for the error message

      Quay: quay-operator-bundle-container-v3.10.0-135

      Steps:

      1, Edit Labels -> Add new Label, input: my^interface=quay, click any space area, it prompts the warning message: 

      Invalid label format, key must match ^[0-9A-Za-z/\-_.]+=.+$ 


        

      2, Change to current UI, input Interface=quay or myInterface=quay

      --> "Label is of an invalid format or missing please use ^[a-z0-9](([a-z0-9]|[-.](?![.-]))*[a-z0-9])?$ format for labels"

      which means uppercase letter can't be used in the key, it can't work with New UI either.

       

      3, In new UI, when add new label fail, it prompt error message which is correct,

       

      can this be more specific?  for example, in Current UI, input

      org.opencontainers.image.licenses=GPL-2.0-only  --> Label has a reserved prefix

      eyJhbGciOiJSUzI1NiIsImtpZCI6=ui -->

      Label is of an invalid format or missing please use ^[a-z0-9](([a-z0-9]|[-.](?![.-]))*[a-z0-9])?$ format for labels

       

        1. image-2023-10-25-14-28-30-046.png
          60 kB
          Sean Zhao
        2. image-2023-10-25-14-34-49-063.png
          41 kB
          Sean Zhao
        3. image-2023-10-25-14-39-42-444.png
          25 kB
          Sean Zhao

              Unassigned Unassigned
              szhao@redhat.com Sean Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: