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

Stage.quay.io should not return latest tag and link header with API "/v2/{repo}/tags/list?n=0"

XMLWordPrintable

      Description:

      This is an issue found in quay new feature "OCI-compliant pagination", following the OCI guide, when the n=0, Quay should return empty list and also should not return link header, but in stage.quay.io, Quay still return the latest tag and including link header, pls review this issue.

      ENV: stage.quay.io

      OCI Doc: https://github.com/opencontainers/distribution-spec/blob/main/spec.md#content-discovery 

      "When n is zero, this endpoint MUST return an empty list, and MUST NOT include a Link header. "

      curl --location 'https://stage.quay.io/v2/qateam/ocipagination/tags/list?n=0' --header 'Authorization: Bearer ********'| jq < date: Fri, 14 Jun 2024 08:04:16 GMT
      < content-type: application/json
      < content-length: 50
      < server: nginx/1.22.1
      < link: </v2/qateam/ocipagination/tags/list?n=1&last=latest>; rel="next"
      < vary: Cookie
      < x-frame-options: DENY
      < strict-transport-security: max-age=63072000; preload 
      {
        "name": "qateam/ocipagination",
        "tags": [
          "latest"
        ]
      } 

            DanielMesser Daniel Messer
            lzha1981 luffy zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: