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

Update the changetrust of existing quay image repository by API failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • quay-v3.7.0
    • quay
    • False
    • None
    • False
    • 0

      Description of problem:

      When update the changetrust of existing quay image repository by API,  response is "Internal Server Error"

      Version-Release number of selected component (if applicable):

      build   quay-operator-bundle-container-v3.7.0-93

      Index image v4.8: registry-proxy.engineering.redhat.com/rh-osbs/iib:219768

      quay-operator-rhel8@sha256:2875719b7c4c0e17dce97bc8ee42c15b0c2ec6e8cafca8a1580423b1c52f8890

      How reproducible:

      always

      Steps to Reproduce:

         * The request we sent was:

      Method: POST
      URL: https://quayregistry-quay-quay-enterprise.apps.whu48az3.qe.azure.devcluster.openshift.com/api/v1/repository/quayorg3641458163347761/imagerepo3641458163347761/changetrust
      Headers: {
        "Connection": "keep-alive",
        "authorization": "Bearer N2PDN5OmV4HdF1fGLxUueAUWjT8ZczBNtjytdZ9m",
        "Content-Type": "application/json",
        "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36",
        "accept": "/",
        "accept-encoding": "gzip, deflate",
        "content-length": 22
      }
      Body: {"trust_enabled":true}

        Actual results:

      The response we got was:

       

      Status: 500 - Internal Server Error
      Headers: {
        "server": "nginx/1.14.1",
        "date": "Fri, 22 Apr 2022 07:28:24 GMT",
        "content-type": "text/html",
        "content-length": "141",
        "set-cookie": [
          "2ed6f763f79efabe9e0e1a3e51456b5b=bfde60bd9540491cf4aa5cf6cfed672a; path=/; HttpOnly; Secure; SameSite=None"
        ],
        "connection": "close"
      }
      Body: <html>
        <head>
          <title>Internal Server Error</title>
        </head>
        <body>
          <h1><p>Internal Server Error</p></h1>    
        </body>
      </html>
       
      

      Expected results:

      should return 200

      Additional info:

      The API path "/api/v1/repository/{repository}/changetrust/"' definition:

      $ curl -k https://quayregistry-quay-quay-enterprise.apps.whu48az4.qe.azure.devcluster.openshift.com/api/v1/discovery |jq '.paths."/api/v1/repository/{repository}/changetrust"'
       {
            "x-name": "endpoints.api.repository.RepositoryTrust",
            "x-path": "/api/v1/repository/{repository}/changetrust",
            "x-tag": "repository",
            "parameters": [
              {
                "name": "repository",
                "in": "path",
                "required": true,
                "description": "The full path of the repository. e.g. namespace/name",
                "type": "string"
              }
            ]
          },

            Unassigned Unassigned
            rhwhu Weihua Hu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: