distribution icon indicating copy to clipboard operation
distribution copied to clipboard

MediaType validation too aggressive

Open stevvooe opened this issue 8 years ago • 2 comments

The mediaType validation for the manifest getter is too aggressive: https://github.com/docker/distribution/blob/master/registry/storage/manifeststore.go#L98.

This prevents the fetching of content by digest which would fail validation on the client. This validation will make it hard to upgrade in the future.

cc @caervs

stevvooe avatar Apr 27 '17 23:04 stevvooe

Could you expand on this a little bit? Is this related to #2076?

jonjohnsonjr avatar Apr 28 '17 01:04 jonjohnsonjr

@jonjohnsonjr The registry should be fairly agnostic about the format it is returning. Also, the current code relies on the existence of an embedded mediaType field, which is problematic, as the types are supposed to be external.

In general, the current approach will make #2076 harder.

stevvooe avatar Apr 28 '17 20:04 stevvooe

@milosgajdos Is this still relevant since https://github.com/distribution/distribution/pull/2076 has since been merged? Also, should the v3 release be blocked on this?

davidspek avatar May 19 '23 14:05 davidspek

@stevvooe do you wanna close this issue?

milosgajdos avatar May 19 '23 17:05 milosgajdos

@milosgajdos Can this be closed given that https://github.com/distribution/distribution/pull/2076 was merged?

davidspek avatar Aug 09 '23 22:08 davidspek

This issue seems outdated and I'm not sure it's addressed by #2076. Equally, it's 6 years old and may already be forgotten. Not quite sure what the step forward here should be without clarification from the reporter.

milosgajdos avatar Aug 10 '23 07:08 milosgajdos

Lets close it. If the issue is still relevant it can be re-opened or a new issue can be created.

davidspek avatar Aug 29 '23 10:08 davidspek