Details
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
- discovered while testing
-
NEXUS-12684 HEAD request to /v2/<name>/manifests/<reference> results in 404 error
-
- Closed
-