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

Quay was failed to delete new team with 400 error code when the team role is Admin

XMLWordPrintable

      Description:

      This is an issue found when use quay 3.5.1 operator to create QuayRegistry, when create new team under new organization, and let the team member is 0, then delete this new team hit 400 error code, with error message "Deleting team 'redhat' would remove admin ability for user 'quay' in organization 'qateam'", actually as this is not the built-in team "owners", quay customers should be able to delete the new team. See screenshots.

      Note: This issue can not be reproduced when the team role is member or creator.

      Steps:

      1. Deploy Quay 3.5.1  Operator
      2. Deploy Quay 3.5.1 by using "AWS S3" as backend storage, for other components choose to managed
      3. Create new organization and image repository
      4. Create new team and assign write permissions to this new team
      5. Change the role of new team to Admin
      6. Click delete this new team

      Expected Results:

      Quay new team can be deleted successfully.

      Actual Results:

      Delete Quay team hit 400 error code with error message "Deleting team 'redhat' would remove admin ability for user 'quay' in organization 'qateam'"

       Http request header:

      General:
      Request URL: https://quay351-quay-quay352.apps.quay-perf-549.perfscale.devcluster.openshift.com/api/v1/organization/qateam/team/msnRequest 
      Method: DELETE
      Status Code: 400 
      Remote Address: 44.225.12.66:443Referrer Policy: strict-origin-when-cross-origin
      
      Request Headers:
      :authority: quay351-quay-quay352.apps.quay-perf-549.perfscale.devcluster.openshift.com
      :method: DELETE:path: /api/v1/organization/qateam/team/msn
      :scheme: https
      accept: application/json, text/plain, */*
      accept-encoding: gzip, deflate, br
      accept-language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7
      content-length: 2
      content-type: text/plain;charset=UTF-8
      cookie: sat_prevInternalCampaign=; notice_preferences=2:; notice_gdpr_prefs=0,1,2:; cmapi_gtm_bl=; cmapi_cookie_privacy=permit 1,2,3; scCidHist=701f2000001Css5AAC%7C%7C701f2000001Css5AAC%7C%7C701f2000001Css5AAC; _hjid=12e4718f-0b6d-4e8b-b595-41b6448ab1d6; hubspotutk=a01351c5b5bdf7bb438aae43a6690824; _gcl_au=1.1.1135413473.1617088857; mbox=PC#4a130946906b4e339322cf73955d8f71.35_0#1681461133|session#dfeabde79c024f0983004c80963ba3d3#1618218193; dtm_prevProp=quaysmtp-quay-quayldap.apps.quay-perf-399.perf-testing.devcluster.openshift.com%7Cquaysmtp-quay-quayldap.apps.quay-perf-399.perf-testing.devcluster.openshift.com%7Cissues.redhat.com%7Cpolarion.engineering.redhat.com%7Cpolarion.engineering.redhat.com; __hstc=6779245.a01351c5b5bdf7bb438aae43a6690824.1588078445236.1617958421887.1618216427110.16; _ga=GA1.2.13221127.1619345307; AMCV_945D02BE532957400A490D4C%40AdobeOrg=870038026%7CMCIDTS%7C18758%7CMCMID%7C18802445872667712743613319648026776244%7CMCAAMLH-1621226002%7C7%7CMCAAMB-1621226002%7CRKhpRz8krg2tLO6pguXWp5olkAcUniQYPHaMWWgdJ3xzPWQmdj0y%7CMCOPTOUT-1620628402s%7CNONE%7CMCAID%7CNONE%7CvVersion%7C5.0.0; quay.loggedin=true; quay.credentialsTab=cred-secret; quay.namespace=qateam; _csrf_token=.eJwlj0lvwjAUhP9K5DORvC-5IRWBkFALgvYY2X5-LA0JzdIDiP9eo55m5jLzzYPUceixHrvv1JKKfP1O4311WZm1uPjbuB4X99iU-hh20H3s7Jv8BN0t3uHQ_ZjN_OD607GrqW8u02aptrAlM1Jjn4YTqdA3Q8rxDLk3ookSmfZCCyUNBM1oCJaFAB4hIFImYzIoOaLn2lGk0RoPwlOgFpKMBhMDiMHxSJlTxoA3SjrPE0vcBs2Nk1E7ZAYEZy7ELIHqKPMi2BfXLfVX36Z2JNXYTxmt6Y7nth7P10SqBylenPvTNCuoKNZTW3DKWfYVF5XixXKzJ88ZmYbU_1-yqHI5D6XyypbSR1W6JFjpKU88M1ElDHn-AaJFaVE.YLiqDA.sJn77C4xuv0fzeerr_G_CFO0FBEorigin: https://quay351-quay-quay352.apps.quay-perf-549.perfscale.devcluster.openshift.comreferer: https://quay351-quay-quay352.apps.quay-perf-549.perfscale.devcluster.openshift.com/organization/qateam?tab=teamssec-ch-ua: " Not A;Brand";v="99", "Chromium";v="90", "Google Chrome";v="90"sec-ch-ua-mobile: ?0sec-fetch-dest: emptysec-fetch-mode: corssec-fetch-site: same-originuser-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36x-csrf-token: WvutzHjH7J3japtJtEzcl-6gbRdoPR8D4Vd6oEOdUoq7MAU9rhgo_0aljuMG5QdQx-requested-with: XMLHttpRequest
      
      Response:
      
      {"message":"Deleting team 'msn' would remove admin ability for user 'quay' in organization 'qateam'"}

              sleesinc Kenny Lee Sin Cheong
              lzha1981 luffy zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: