Project

Profile

Help

Issue #2992

closed

GET by manifest digest should infer media type

Added by twaugh over 5 years ago. Updated over 3 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version - Crane:
master
Platform Release:
Target Release - Crane:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

When issuing a GET request for a manifest (schema 1, schema 2 image manifest, or schema 2 manifest list) by its digest, the Docker Distribution registry returns the requested object regardless of any Accept: header in the request.

Is it possible for Crane to do this? I guess it isn't because it would need to be told the full inventory of manifest digests... just noting the discrepancy and asking the question. I'm not away of any specific problem this causes right now.

Right now if there is (for example) a manifest list at sha256:0123456..., a GET request for /v2/{name}/manifests/sha256:012346... but without any Accept: header redirects the client to /pulp/docker/.../manifests/1/sha256:012346..., not to the .../list/... location.

Perhaps there is a way of achieving this using symbolic links in /pulp/docker?

Also available in: Atom PDF