mirror of
https://github.com/distribution/distribution.git
synced 2025-08-21 00:04:10 +00:00
Revert "OCI: GET request to deleted blob URL should yield 404 response"
Using the linked blob store for blob requests fixes a conformance issue and
works correctly for newly-pushed images. However, any images that were pushed
before the change could be missing layer links (since previously it was possible
to fetch a blob without the layer link existing) and it's not possible to pull
these iamges after the change.
Revert the change to use the linked blob store, for now, until we can figure out
how to fix this without breaking existing repositories.
This reverts commit 71f1c25220
.
This commit is contained in:
parent
1fb7fffdb2
commit
37ab304645
@ -47,7 +47,7 @@ type linkedBlobStore struct {
|
||||
var _ distribution.BlobStore = &linkedBlobStore{}
|
||||
|
||||
func (lbs *linkedBlobStore) Stat(ctx context.Context, dgst digest.Digest) (distribution.Descriptor, error) {
|
||||
return lbs.blobAccessController.Stat(ctx, dgst)
|
||||
return lbs.blobStore.statter.Stat(ctx, dgst)
|
||||
}
|
||||
|
||||
func (lbs *linkedBlobStore) Get(ctx context.Context, dgst digest.Digest) ([]byte, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user