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

Notification of regex expres for validating team-names should update

XMLWordPrintable

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

      Issue Description:

      validateTeamName regex on UI should be "^([a-z0-9](?:[._-][a-z0-9])*)$"

      Environment:

      quay-operator-bundle-container-v3.13.0-45

      Steps:

      1, According to PR https://github.com/quay/quay/pull/3126, regex:  VALID_TEAMNAME_REGEX = r"^([a-z0-9](?:[._-][a-z0-9])*)$"

      2, The New UI Validator still prompt previous regex, should be update accordingly:

       

      and

      Note:

      CLI notification has been updated:

       % curl -k -X PUT -H 'Content-Type: application/json' -H 'Authorization: Bearer ...' https://quayregistry-quay-quay-enterprise-14960.apps.quaytest-14960.qe.devcluster.openshift.com/api/v1/organization/quayorg/team/Team-with-dashes -d '{"name": "Team-with-dashes", "role": "member"}' 
      
      {"message":"Invalid team name Team-with-dashes: Namespace must match expression ^([a-z0-9]+(?:[._-][a-z0-9]+)*)$"}

              hgovinda Harish Govindarajulu
              szhao@redhat.com Sean Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: