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.

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

                Created:
                Updated:
                Resolved:

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