1
mirror of https://github.com/rclone/rclone synced 2025-01-09 11:46:24 +01:00
rclone/cmd/serve
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
..
dlna serve dlna: now only supported on go1.21 or later 2024-01-15 16:22:07 +00:00
docker systemd: Fix detection and switch to the coreos package everywhere 2023-12-02 14:17:15 +00:00
ftp serve ftp: fix race condition when using the auth proxy 2023-08-23 15:11:47 +01:00
http cmd: refactor and use sysdnotify in more commands 2023-09-04 16:32:04 +01:00
nfs build: update direct dependencies and fix serve nfs 2024-01-15 16:18:42 +00:00
proxy docs: Fix broken test_proxy.py link again 2024-01-08 11:54:02 +00:00
restic serve restic: fix error handling 2024-01-29 17:54:23 +00:00
s3 serve s3: fix listing oddities 2024-01-05 15:51:13 +00:00
servetest build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
sftp serve sftp: return not supported error for not supported commands 2023-10-16 12:08:22 +01:00
webdav webdav: added an rclone vendor to work with rclone serve webdav 2023-11-05 12:37:25 +00:00
serve.go serve s3: let rclone act as an S3 compatible server 2023-11-16 16:59:55 +00:00