Skip to content

fix(oci): register manifest blobs in repository_blobs on push#57

Merged
The127 merged 1 commit intomasterfrom
fix/manifest-blob-unreachable-via-blobs-endpoint
Apr 17, 2026
Merged

fix(oci): register manifest blobs in repository_blobs on push#57
The127 merged 1 commit intomasterfrom
fix/manifest-blob-unreachable-via-blobs-endpoint

Conversation

@The127
Copy link
Copy Markdown
Owner

@The127 The127 commented Apr 17, 2026

Summary

Podman (via containerd) fetches sub-manifests referenced in an OCI Image Index via GET /v2/{name}/blobs/{digest} (blobs endpoint, not manifests endpoint). Manifest blobs were stored in the blobs table and blob storage but never inserted into repository_blobs, so BlobsDownload returned 404 BLOB_UNKNOWN for them.

The fix adds a repository_blobs insert in HandleUploadManifest. The ON CONFLICT (repository_id, blob_id) DO NOTHING guard (added in #55) makes this safe on re-pushes.

Test plan

  • podman push + podman pull succeeds for OCI Image Index images
  • Re-push does not error

Podman (via containerd) fetches sub-manifests referenced in an OCI Image Index
via GET /v2/{name}/blobs/{digest}. Manifest blobs were stored in the blobs table
but never inserted into repository_blobs, so BlobsDownload returned 404 for them.

Add repository_blobs insert in HandleUploadManifest. The existing ON CONFLICT
DO NOTHING guard makes this safe for re-pushes.
@The127 The127 merged commit e513401 into master Apr 17, 2026
6 checks passed
@The127 The127 deleted the fix/manifest-blob-unreachable-via-blobs-endpoint branch April 17, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant