-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GenerateDescriptorAsync doesn't use the correct header property #133
Labels
bug
Something isn't working
Comments
daniel-pebble
added
bug
Something isn't working
triage
New issues or PRs to be acknowledged by maintainers
labels
Aug 7, 2024
Hi @daniel-pebble, thanks for the issue!
I just took a look at the Azure .NET SDK and found that rawResponse.Headers.TryGetValue("Docker-Content-Digest", out string responseHeaderDigest); Would you like to go ahead and create a PR to fix this? |
daniel-pebble
added a commit
to daniel-pebble/oras-dotnet
that referenced
this issue
Aug 9, 2024
While testing against https://hub.docker.com/_/registry, "Docker-Content-Digest" headers were found on response.Headers collection rather than response.Content.Headers. Aligned internal/private variables to use _camelCase as there was some inconsistencies.
4 tasks
daniel-pebble
added a commit
to daniel-pebble/oras-dotnet
that referenced
this issue
Aug 9, 2024
While testing against https://hub.docker.com/_/registry, "Docker-Content-Digest" headers were found on response.Headers collection rather than response.Content.Headers. Aligned internal/private variables to use _camelCase as there was some inconsistencies. Signed-off-by: Daniel Robinson <daniel.robinson@pebble.tv>
daniel-pebble
added a commit
to daniel-pebble/oras-dotnet
that referenced
this issue
Aug 9, 2024
While testing against https://hub.docker.com/_/registry, "Docker-Content-Digest" headers were found on response.Headers collection rather than response.Content.Headers. Aligned internal/private variables to use _camelCase as there was some inconsistencies. Signed-off-by: Daniel Robinson <daniel.robinson@pebble.tv>
4 tasks
daniel-pebble
added a commit
to daniel-pebble/oras-dotnet
that referenced
this issue
Aug 9, 2024
While testing against https://hub.docker.com/_/registry, "Docker-Content-Digest" headers were found on response.Headers collection rather than response.Content.Headers. Aligned internal/private variables to use _camelCase as there was some inconsistencies. Signed-off-by: Daniel Robinson <daniel.robinson@pebble.tv>
Closed by #136 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened in your code base?
When attempting to use FetchAsync to download a manifest it fails as Oras isn't looking at the correct location for the "Docker-Content-Digest" header.
I've adjusted the code to check both response.Content.Headers and response.Headers and in my tests its always on response.Headers.
What did you expect to happen?
Content digest is found in the correct header location
How can we reproduce it?
What is the version or commit of the ORAS .NET library?
Commit: c58adc9
What are your OS and Runtime environments?
Windows 11 .net 8
Are you willing to submit PRs to fix it?
The text was updated successfully, but these errors were encountered: