From b562edefd13e4e0e342d04b03538bccc7918e1f8 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 29 Aug 2022 22:52:10 +0200 Subject: [PATCH] add changelog for not found error handling --- changelog/unreleased/pull-194 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 changelog/unreleased/pull-194 diff --git a/changelog/unreleased/pull-194 b/changelog/unreleased/pull-194 new file mode 100644 index 0000000..a5c3a93 --- /dev/null +++ b/changelog/unreleased/pull-194 @@ -0,0 +1,13 @@ +Bugfix: Return "internal server error" if files cannot be read + +When files in a repository cannot be read by rest-server, for example after +running `restic prune` directly on the server hosting the repositories, then +rest-server returned "Not Found" as status code. This is extremely confusing +for users. + +The error handling has been fixed to only return "Not Found" if the file +actually does not exist. Otherwise an internal server error is reported to the +user and the underlying error is logged at the server side. + +https://github.com/restic/restic/issues/1871 +https://github.com/restic/rest-server/pull/194