distribution/registry/storage/driver
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
..
azure Fix gometalint errors 2019-02-04 16:01:04 -08:00
base
factory
filesystem
gcs Fix err shadowing in gcs driver 2020-03-18 11:41:34 +01:00
inmemory
middleware Merge pull request #2272 from naveedjamil/fips 2020-02-22 17:40:41 -08:00
oss
s3-aws Ignore self reference object on empty prefix 2020-11-30 13:04:14 +01:00
swift swift: correct segment path generation 2019-06-22 23:44:43 -07:00
testdriver
testsuites Increase Unit Test Code Coverage 2020-02-22 17:09:00 -08:00
fileinfo.go
storagedriver.go
walk.go
walk_test.go