rclone/cmd
Nick Craig-Wood 98fd00a655 serve sftp: fix checksum detection - Fixes #6351
Before this change, rclone serve sftp operating with a new rclone
after the md5sum/sha1sum detection was reworked to just run a plain
`md5sum`/`sha1sum` command in

3ea82032e7 sftp: support md5/sha1 with rsync.net #3254

Failed to signal to the remote that md5sum/sha1sum wasn't supported as
in

71e172a139 serve/sftp: support empty "md5sum" and "sha1sum" commands

We unconditionally return good hashes even if the remote being served
doesn't support the hash type in question.

This fix checks the hash type is supported and returns an error

    MD5 hash not supported

When the backend is first contacted this will cause the sftp backend
to detect that the hash type isn't available.

Unfortunately this may have cached the wrong state so editing or
remaking the config may be necessary to fix it.
2022-08-05 17:16:23 +01:00
..
about about: improved error message 2022-05-13 12:08:10 +01:00
all bisync: implementation #5164 2021-11-01 21:00:27 +03:00
authorize config: remove log.Fatal and replace with error passing where possible 2021-03-14 16:03:35 +00:00
backend docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
bisync build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
cachestats Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cat docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
check docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
checksum docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
cleanup docs: Add full stops for consistency in rclone --help 2020-09-08 16:26:09 +01:00
cmount build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
config Error strings should not be capitalized 2022-06-23 23:26:02 +02:00
copy docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
copyto docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
copyurl copyurl: Add option to honor the HTTP header filename directive. 2022-06-20 12:06:09 +01:00
cryptcheck docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
cryptdecode Error strings should not be capitalized 2022-06-23 23:26:02 +02:00
dedupe docs: add missing code section formatting to commands and flags 2022-06-21 23:43:00 +02:00
delete docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
deletefile Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
genautocomplete docs: add missing code section formatting to commands and flags 2022-06-21 23:43:00 +02:00
gendocs refactor: replace strings.Replace with strings.ReplaceAll 2022-05-17 11:08:37 +01:00
hashsum docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
link link: use "off" value for unset expiry 2021-04-07 13:58:37 +01:00
listremotes docs: add missing code section formatting to commands and flags 2022-06-21 23:43:00 +02:00
ls docs: improve grammar and fix typos (#5361) 2021-11-04 12:50:43 +01:00
lsd docs: add missing code section formatting to commands and flags 2022-06-21 23:43:00 +02:00
lsf lsf: add metadata support with M flag 2022-06-29 14:29:36 +01:00
lsjson lsjson: add --metadata/-M flag 2022-06-29 14:29:36 +01:00
lsl cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
md5sum docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
mkdir mkdir: warn when using mkdir on remotes which can't have empty directories 2020-07-08 17:55:58 +01:00
mount Error strings should not be capitalized 2022-06-23 23:26:02 +02:00
mount2 mount: add --devname to set the device name sent to FUSE for mount display 2022-02-09 11:56:43 +00:00
mountlib Error strings should not be capitalized 2022-06-23 23:26:02 +02:00
move docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
moveto docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
ncdu docs/ncdu: note that refresh screen shortcut will fix screen corruption 2022-06-21 23:43:00 +02:00
obscure docs: add missing code section formatting to commands and flags 2022-06-21 23:43:00 +02:00
purge docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
rc Error strings should not be capitalized 2022-06-23 23:26:02 +02:00
rcat docs: add missing code section formatting to commands and flags 2022-06-21 23:43:00 +02:00
rcd rcd: Added systemd notification during the 'rclone rcd' command call. This also fixes #5073. 2021-03-11 17:12:14 +00:00
reveal cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rmdir docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
rmdirs docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
selfupdate selfupdate: replace deprecated x/crypto/openpgp package with ProtonMail/go-crypto 2022-07-04 11:24:59 +02:00
serve serve sftp: fix checksum detection - Fixes #6351 2022-08-05 17:16:23 +01:00
settier Error strings should not be capitalized 2022-06-23 23:26:02 +02:00
sha1sum docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
size docs/size: extend documentation of size command 2022-04-26 19:37:15 +02:00
sync sync: update docs and error messages to reflect fixes to overlap checks 2022-07-13 16:04:53 +01:00
test test info: check file name lengths using 1,2,3,4 byte unicode characters 2022-06-16 22:13:50 +01:00
touch touch: fix issue where directory is created instead of file 2022-01-28 20:29:12 +01:00
tree Error strings should not be capitalized 2022-06-23 23:26:02 +02:00
version Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cmd.go fs/cache: make sure we call the Shutdown method on backends 2022-06-28 12:51:59 +01:00
help.go staticcheck: use golang.org/x/text/cases instead of deprecated strings.Title 2022-07-04 11:24:59 +02:00
progress.go Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
selfupdate_disabled.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
selfupdate_enabled.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
siginfo_darwin.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
siginfo_others.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00