distribution/registry/storage
Ricardo Maraschini 87cbd09fa7 Ignore self reference object on empty prefix
When a given prefix is empty and we attempt to list its content AWS
returns that the prefix contains one object with key defined as the
prefix with an extra "/" at the end.

e.g.

If we call ListObjects() passing to it an existing but empty prefix,
say "my/empty/prefix", AWS will return that "my/empty/prefix/" is an
object inside "my/empty/prefix" (ListObjectsOutput.Contents).

This extra "/" causes the upload purging process to panic. On normal
circunstances we never find empty prefixes on S3 but users may touch
it.

Signed-off-by: Ricardo Maraschini <rmarasch@redhat.com>
2020-11-30 13:04:14 +01:00
..
cache Bump Redigo to v1.8.2. 2020-08-31 18:07:54 -07:00
driver Ignore self reference object on empty prefix 2020-11-30 13:04:14 +01:00
blob_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
blobserver.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
blobstore.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
blobwriter.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
blobwriter_nonresumable.go If resumable digest support is disabled, detct this when closing the blobwriter 2016-06-13 17:35:06 -07:00
blobwriter_resumable.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
catalog.go catalog: List repositories with no unique layers 2020-08-04 11:38:49 -06:00
catalog_test.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
doc.go Move storage package under registry package 2015-02-11 12:43:04 -08:00
error.go Remove old walk function 2018-01-18 13:06:07 -08:00
filereader.go Enable static checks 2018-08-06 14:49:11 -07:00
filereader_test.go Enable static checks 2018-08-06 14:49:11 -07:00
garbagecollect.go Remove err nil check 2019-02-04 16:42:44 -08:00
garbagecollect_test.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
io.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
linkedblobstore.go fix gofmt and goimports 2018-09-11 16:14:10 -07:00
linkedblobstore_test.go Add unit tests for BlobEnumerator 2019-12-06 09:38:13 +01:00
manifestlisthandler.go Fix registry stripping newlines from manifests 2018-09-05 13:40:42 -07:00
manifeststore.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
manifeststore_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
ocimanifesthandler.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
ocimanifesthandler_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
paths.go fixes to make layersPathSpec work 2019-12-05 20:48:33 +01:00
paths_test.go Add unit tests for BlobEnumerator 2019-12-06 09:38:13 +01:00
purgeuploads.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
purgeuploads_test.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
registry.go fixes to make layersPathSpec work 2019-12-05 20:48:33 +01:00
schema2manifesthandler.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
schema2manifesthandler_test.go Update schema2 builder to take media type 2016-12-14 16:17:20 -08:00
signedmanifesthandler.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
tagstore.go Merge pull request #2748 from manishtomar/tag-digests 2019-10-08 12:14:56 -07:00
tagstore_test.go better name and updated tests 2018-11-01 10:31:08 -07:00
v1unsupportedhandler.go disable schema1 by default, add a config flag to enable it 2017-12-19 10:23:25 -08:00
vacuum.go add possibility to clean untagged manifests 2018-01-05 12:20:01 +02:00