Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-18638

GET requests against Docker group repository returning duplicate headers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.15.0
    • Fix Version/s: 3.16.0
    • Component/s: Docker
    • Labels:
    • Story Points:
      1

      Description

      While testing NEXUS-12684, it was discovered that issuing a GET request for a manifest in a docker group repository returned duplicate headers for Docker-Distribution-Api-Version, ETag, and Last-Modified.

      Example request: 

      curl -I http://localhost:8081/repository/docker-group/v2/library/hello-world/manifests/latest -H 'accept: application/vnd.docker.distribution.manifest.v2+json'
      

      Example Response Headers:

      Content-Length →524
      Content-Security-Policy →sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
      Content-Type →application/vnd.docker.distribution.manifest.v2+json
      Date →Tue, 04 Dec 2018 02:22:54 GMT
      Docker-Content-Digest →sha256:1a6fd470b9ce10849be79e99529a88371dff60c60aab424c077007f6979b4812
      Docker-Distribution-Api-Version →registry/2.0
      Docker-Distribution-Api-Version →registry/2.0
      ETag →"sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788"
      ETag →"sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788"
      Last-Modified →Mon, 03 Dec 2018 21:11:38 GMT
      Last-Modified →Mon, 03 Dec 2018 21:11:38 GMT
      Server →Nexus/3.15.0-SNAPSHOT (PRO)
      X-Content-Type-Options →nosniff
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pkundra Parul Kundra
              Reporter:
              natemcafee Nate McAfee
              Last Updated By:
              Peter Lynch Peter Lynch
              Team:
              NXRM - Cypher
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title