rclone/cmd/serve/restic
Michael Eischer ef2c5a1998
serve restic: fix error handling
* serve restic: return internal error if listing failed

If listing a remote failed, then rclone returned http status "not
found". This has become a problem since restic 0.16.0 which ignores "not
found"-errors while listing a directory.

Just return internal server error, if something unexpected happens while
listing a directory.

* serve restic: fix error handling if getting a file fails

If the call to `newObject` in `serveObject` fails, then rclone always
returned a "not found" error. This prevents restic from distinguishing
permanent "not found" errors from everything else.

Thus, only return "not found" if the object is not found and an internal
server error otherwise.
2024-01-29 17:54:23 +00:00
..
cache_test.go restic: refactor to use lib/http 2022-12-15 12:38:09 +00:00
cache.go restic: refactor to use lib/http 2022-12-15 12:38:09 +00:00
restic_appendonly_test.go restic: refactor to use lib/http 2022-12-15 12:38:09 +00:00
restic_privaterepos_test.go restic: refactor to use lib/http 2022-12-15 12:38:09 +00:00
restic_test.go serve restic: fix error handling 2024-01-29 17:54:23 +00:00
restic_utils_test.go restic: refactor to use lib/http 2022-12-15 12:38:09 +00:00
restic-test.sh hubic: remove backend as service has now shutdown - fixes #6481 2022-10-05 13:33:37 +01:00
restic.go serve restic: fix error handling 2024-01-29 17:54:23 +00:00
stdio_conn.go build: update to go1.19 and make go1.17 the minimum required version 2022-08-03 18:04:58 +01:00