From be9a3a7a19336ba680bc5f4a7b62add4bbfddb81 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 17 Oct 2016 22:30:41 +0200 Subject: [PATCH] OsreeFetcher: Treat 403 as not found Private Cloudfront instances return 403 for objects which don't exist rather then a 404. Change the fetcher to assume 403 is ok for download that are "optional" rather then erroring out at that step (e.g. trying to download a static delta if the remote repo doesn't have those) Closes: #531 Approved by: cgwalters --- src/libostree/ostree-fetcher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libostree/ostree-fetcher.c b/src/libostree/ostree-fetcher.c index a4d46016..18794ce1 100644 --- a/src/libostree/ostree-fetcher.c +++ b/src/libostree/ostree-fetcher.c @@ -1057,6 +1057,7 @@ on_request_sent (GObject *object, switch (msg->status_code) { case 404: + case 403: case 410: code = G_IO_ERROR_NOT_FOUND; break;