From 2207dc48724432cafb3458b55715ccbcfa22a623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Thu, 19 Sep 2024 18:07:10 +0200 Subject: [PATCH] Fix an incorrect expected MIME type when validating manifests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Luckily this only affects error messages. Signed-off-by: Miloslav Trmač --- manifest/oci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest/oci.go b/manifest/oci.go index f714574ee..0faa866b7 100644 --- a/manifest/oci.go +++ b/manifest/oci.go @@ -60,7 +60,7 @@ func OCI1FromManifest(manifestBlob []byte) (*OCI1, error) { if err := json.Unmarshal(manifestBlob, &oci1); err != nil { return nil, err } - if err := manifest.ValidateUnambiguousManifestFormat(manifestBlob, imgspecv1.MediaTypeImageIndex, + if err := manifest.ValidateUnambiguousManifestFormat(manifestBlob, imgspecv1.MediaTypeImageManifest, manifest.AllowedFieldConfig|manifest.AllowedFieldLayers); err != nil { return nil, err }