distribution/docs/storage
Aaron Lehmann accfa46f9b Fix empty delete requests with Swift fs driver
The Delete method lists objects under the given path and tries to delete
all of them with a bulk delete request. If the path has no objects
underneath it, the body of this request will be empty, which causes
HTTP-level issues. Specifically, Go's HTTP client senses the empty
request buffer and doesn't include a Content-Length, which causes the
Swift server to fail the request.

This commit fixes the problem by avoiding sending empty bulk delete
requests. This is the correct thing to do anyway, since there's no
reason to request deletion of zero objects.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-11-09 15:33:05 -08:00
..
cache Update to provide small and clear interfaces 2015-10-09 16:05:49 -07:00
driver Fix empty delete requests with Swift fs driver 2015-11-09 15:33:05 -08:00
blob_test.go Functional options for NewRegistryWithDriver 2015-08-19 11:06:30 -07:00
blobcachemetrics.go Open cache interface 2015-05-15 17:56:28 -07:00
blobserver.go Add a generic error type to capture non-typed errors 2015-11-03 11:19:44 -08:00
blobstore.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
blobwriter.go registry/storage: close filereader after allocation 2015-11-02 11:55:11 -08:00
blobwriter_nonresumable.go Remove digest package's dependency on external sha implementation 2015-05-20 23:44:08 -07:00
blobwriter_resumable.go registry/storage: close filereader after allocation 2015-11-02 11:55:11 -08:00
catalog.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
catalog_test.go Functional options for NewRegistryWithDriver 2015-08-19 11:06:30 -07:00
doc.go Move storage package under registry package 2015-02-11 12:43:04 -08:00
filereader.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
filereader_test.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
filewriter.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
filewriter_test.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
linkedblobstore.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
manifeststore.go Before allowing a schema1 manifest to be stored in the registry, ensure that it 2015-11-03 15:19:46 -08:00
manifeststore_test.go Before allowing a schema1 manifest to be stored in the registry, ensure that it 2015-11-03 15:19:46 -08:00
paths.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
paths_test.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
purgeuploads.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
purgeuploads_test.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
registry.go Redundant digest verification in validateBlob 2015-10-15 22:21:14 +08:00
revisionstore.go Move manifest package to schema1 2015-08-21 16:29:47 -07:00
signaturestore.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
tagstore.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
util.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
vacuum.go Remove pathMapper object 2015-08-17 18:51:05 -07:00
walk.go Correct two golint comment issues 2015-10-19 16:42:12 -07:00
walk_test.go Make Storage Driver API calls context aware. 2015-04-27 15:58:58 -07:00