-
Notifications
You must be signed in to change notification settings - Fork 780
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
Incorrect OCI Mediatype after copy from containers-storage #548
Comments
Thanks for the report. Yes, this is a known bug: |
@mtrmac @vrothberg Is this something we are going to fix? |
Hopefully. |
This might have been fixed by containers/image#563 . |
I confirm this problem is fixed in current master @ f72e39f. I repeated the steps of my small reproducer, with a previously installed version version 0.1.36-dev commit: 854f766: {
"mediaType": "application/vnd.oci.image.layer.v1.tar",
"digest": "sha256:519cb705bc6d8fc480c8ca57488bcc9f588997e3030978ba4b8b47030831aa67",
"size": 2861852
}, $ file blobs/sha256/519cb705bc6d8fc480c8ca57488bcc9f588997e3030978ba4b8b47030831aa67
blobs/sha256/519cb705bc6d8fc480c8ca57488bcc9f588997e3030978ba4b8b47030831aa67: gzip compressed data And now with version 0.1.40-dev commit: f72e39f {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"digest": "sha256:519cb705bc6d8fc480c8ca57488bcc9f588997e3030978ba4b8b47030831aa67",
"size": 2861852
}, Thanks ! |
Thanks for reporting and checking, @besnardjb! |
Dear maintainers,
I would like to report an oddity I've encountered while using skopeo in conjunction with buildah. Given my limited knowledge of the codebase, it appeared to me that the issue was related to the skopeo copy operation, I hope that it is correct.
This is how I encounter the issue:
buildah @ containers/buildah@08c5630
skopeo @ 82186b9
We can see that blob 8e3ba11ec2a2b39ab372c60c16b421536e50e5ce64a0bc81765c2e38381bcff6 is tagged "application/vnd.oci.image.layer.v1.tar" but practically gzipped. This may confuse a bundle extractor trusting OCI layer meta-data (e.g. umoci here https://github.com/openSUSE/umoci/blob/86a1af2e89e98bfc2327ac3d0655ab4b30554cc2/oci/layer/unpack.go#L88).
From my (limited) understanding, it seems that the resulting layer type was set when pulling the image outside of the containers-storage in the following file containers/storage/storage_image.go:192 through the following line :
It seems that it was not set back to MediaTypeImageLayerGzip afterwards.
Thanks!
The text was updated successfully, but these errors were encountered: