Project

Profile

Help

Issue #4314

closed

accept_headers should be checked when docker pull is performed by digest

Added by ipanova@redhat.com over 3 years ago. Updated about 3 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Docker:
Platform Release:
Target Release - Docker:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

(pulp) [vagrant@pulp3 pulp]$ curl -i -L -X GET 'http://localhost:1234/v2/haha/manifests/latest'
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
Content-Length: 14
Date: Fri, 11 Jan 2019 14:26:26 GMT
Server: Python/3.6 aiohttp/3.5.2

404: Not Found(pulp) [vagrant@pulp3 pulp]$ curl -i -L -X GET 'http://localhost:1234/v2/haha/manifests/sha256:46e71df1e5191ab8b8034c5189e325258ec44ea739bba1e5645cff83c9048ff1'
HTTP/1.1 200 OK
Content-Type: application/vnd.docker.distribution.manifest.list.v2+json
Docker-Distribution-API-Version: registry/2.0
Content-Length: 2029
Content-Disposition: attachment; filename=e71df1e5191ab8b8034c5189e325258ec44ea739bba1e5645cff83c9048ff1
Last-Modified: Tue, 08 Jan 2019 16:41:17 GMT
Accept-Ranges: bytes
Date: Fri, 11 Jan 2019 14:26:29 GMT
Server: Python/3.6 aiohttp/3.5.2

pulp: pulp_docker.app.registry:WARNING: Client does not accept Docker V2 Schema 2 and is not currently supported.
pulp: pulp_docker.app.registry:INFO: sha256:46e71df1e5191ab8b8034c5189e325258ec44ea739bba1e5645cff83c9048ff1

https://github.com/pulp/pulp_docker/pull/295/files#diff-1f37e1bf95e24a173326983f481027a7R152


Related issues

Related to Container Support - Test #4531: Fetch registry content using API callsCLOSED - WONTFIXActions
Related to Container Support - Test #4533: Test Pull Container Image by DigestCLOSED - WONTFIXActions
Actions #1

Updated by CodeHeeler over 3 years ago

  • Triaged changed from No to Yes
Actions #2

Updated by kersom about 3 years ago

  • Related to Test #4531: Fetch registry content using API calls added
Actions #3

Updated by rochacbruno about 3 years ago

  • Related to Test #4533: Test Pull Container Image by Digest added
Actions #4

Updated by ipanova@redhat.com about 3 years ago

Actually, i just tested with docker registry and it returns the image no matter what headers has been sent, if specifying the digest.

Actions #5

Updated by ipanova@redhat.com about 3 years ago

  • Status changed from NEW to CLOSED - NOTABUG
Actions #6

Updated by bmbouter about 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF