distribution/registry
Stefan Majewsky 4c9bed2507 don't swallow errors in Swift driver's GetContent()
In 326c3a9c49, which was only intended to
be a refactoring commit, the behavior of this block subtly changed so
that unknown types of errors would be swallowed instead of propagated.

I noticed this while investigating an error similar to #1539 aka
docker/docker#21290. It appears that during GetContent() for a
hashstate, the Swift proxy produces an error. Since this error was
silently swallowed, an empty []byte is used to restart the hash, then
producing the digest of the empty string instead of the layer's digest.

This PR will not fix the issue, but it should make the actual error more
visible by propagating it into `blobWriter#resumeDigest' and
'blobWriter#validateBlob', respectively.

Signed-off-by: Stefan Majewsky <stefan.majewsky@sap.com>
2016-03-30 16:11:29 +02:00
..
api Enable URLs returned from the registry to be configured as relative. 2016-03-23 15:14:32 -07:00
auth Fix some typos in comments and strings 2016-02-23 22:33:38 +01:00
client Merge pull request #1522 from RichardScothern/tag-events 2016-03-23 16:41:29 -07:00
handlers Merge pull request #1522 from RichardScothern/tag-events 2016-03-23 16:41:29 -07:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware Add pull through cache functionality to the Registry which can be configured 2015-08-04 16:09:55 -07:00
proxy Merge pull request #1502 from RichardScothern/auth-url-endpoints 2016-03-14 16:28:24 -07:00
storage don't swallow errors in Swift driver's GetContent() 2016-03-30 16:11:29 +02:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
garbagecollect.go utulize config log format within gc 2016-03-24 14:29:43 -07:00
garbagecollect_test.go utulize config log format within gc 2016-03-24 14:29:43 -07:00
registry.go Implements garbage collection subcommand 2016-02-29 14:15:21 -08:00
root.go Implements garbage collection subcommand 2016-02-29 14:15:21 -08:00