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

[3.12] web-ui has stricter regex than rest-api for validating team-names

XMLWordPrintable

    • False
    • None
    • False
    • Hide

      This is allowed

      curl -X PUT -H 'Content-Type: application/json' -H 'Authorization: Bearer ...' -d '{ "role": "member" }' 'https://quay.example.com/api/v1/organization/mirrors/team/team-with-dashes'

      Creating a team-with-dashes via web-ui is not permitted

      Show
      This is allowed curl -X PUT -H 'Content-Type: application/json' -H 'Authorization: Bearer ...' -d '{ "role" : "member" }' 'https: //quay.example.com/api/v1/organization/mirrors/team/team-with-dashes' Creating a team-with-dashes via web-ui is not permitted

      The rest-api has a more permissive regex, allowing for dashes and underscores in team names.

      During porting of data from another registry I added team names with dashes in, yet the web-ui won't let me add dashes into new team names.

        1. Screenshot 2024-11-20 at 15.27.44.png
          250 kB
          Weihua Hu
        2. Screenshot 2024-11-20 at 15.28.30.png
          251 kB
          Weihua Hu
        3. Screenshot 2024-11-20 at 15.29.24.png
          266 kB
          Weihua Hu
        4. Screenshot 2024-11-20 at 15.30.59.png
          251 kB
          Weihua Hu
        5. Screenshot 2024-11-20 at 15.45.03.png
          277 kB
          Weihua Hu

              hgovinda Harish Govindarajulu
              ebbex Erik Berg
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified