You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The SDK should enable the client to create an OCIManifest.
Expected behavior
CreateAsync on an OCIManifest succeeds.
Actual behavior (include Exception or Stack Trace)
Exception thrown with error code = "MANIFEST_INVALID"
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
usingMicrosoft.Azure.ContainerRegistry;usingMicrosoft.Azure.ContainerRegistry.Models;usingMicrosoft.Rest.Azure;usingSystem;usingSystem.Threading.Tasks;namespacemanifest_test{classProgram{staticasyncTaskMain(string[]args){varlogin="myregistry.azurecr.io";varusername="";varpassword="";varclient=newAzureContainerRegistryClient(newContainerRegistryCredentials(ContainerRegistryCredentials.LoginMode.Basic,loginUrl:login,username:username,password:password));stringOciManifestMediaType="application/vnd.oci.image.manifest.v1+json";stringV2ManifestMediaType="application/vnd.docker.distribution.manifest.v2+json";varrepo="hello-world";vartag="latest";varresp=awaitclient.Manifests.GetAsync("hello-world","latest",V2ManifestMediaType);client=newAzureContainerRegistryClient(newContainerRegistryCredentials(ContainerRegistryCredentials.LoginMode.Basic,loginUrl:login,username:username,password:password));V2Manifestv2Manifest=(V2Manifest)resp;OCIManifestmanifest=newOCIManifest();manifest.Config=v2Manifest.Config;manifest.Config.MediaType="application/vnd.oci.image.config.v1+json";manifest.Layers=v2Manifest.Layers;manifest.SchemaVersion=2;// MediaType should be OciManifestMediaTypeawaitclient.Manifests.CreateAsync(repo,"test-put-oci",manifest);//Throws exception with detail /* * Content "{\"errors\":[{\"code\":\"MANIFEST_INVALID\",\"message\":\"manifest invalid\",\"detail\":{}}]}\n" string */}}}
Describe the bug
The SDK should enable the client to create an OCIManifest.
Expected behavior
CreateAsync on an OCIManifest succeeds.
Actual behavior (include Exception or Stack Trace)
Exception thrown with error code = "MANIFEST_INVALID"
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
Environment:
The text was updated successfully, but these errors were encountered: