1
mirror of https://github.com/rclone/rclone synced 2024-11-25 02:47:14 +01:00
rclone/backend
nielash 8470bdf810 s3: fix 405 error on HEAD for delete marker with versionId
When getting an object by specifying a versionId in the request, if the
specified version is a delete marker, it returns 405 (Method Not Allowed),
instead of 404 (Not Found) which would be returned without a versionId. See
https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html

Before this change, we were only looking for 404 (and not 405) to determine
whether the object exists. This meant that in some circumstances (ex. when
Versioning is enabled for the bucket and we have a non-null X-Amz-Version-Id), we
deemed the object to exist when we should not have.

After this change, 405 (Method Not Allowed) is treated the same as 404 (Not
Found) for the purposes of headObject.

See https://forum.rclone.org/t/bisync-rename-failed-method-not-allowed/45723/13
2024-06-13 18:09:29 +01:00
..
alias local: implement modtime and metadata for directories 2024-02-28 16:09:04 +00:00
all Add a new backend for uloz.to 2024-03-26 09:46:47 +00:00
azureblob s3, googlecloudstorage, azureblob: fix encoding issue with dir path comparison 2024-06-11 11:54:54 +01:00
azurefiles build: fix linting issues reported by running golangci-lint with different GOOS 2024-04-22 19:29:12 +02:00
b2 b2: update URLs to new home 2024-06-06 09:25:17 +01:00
box backend: fs implements the Shutdowner interface 2023-12-09 11:44:50 +00:00
cache cache: fix tests when testing for Object.SetMetadata 2024-06-08 17:44:11 +01:00
chunker fs: define the optional interface SetMetadata and implement it in wrapping backends 2024-05-14 12:51:03 +01:00
combine fs: define the optional interface SetMetadata and implement it in wrapping backends 2024-05-14 12:51:03 +01:00
compress fs: define the optional interface SetMetadata and implement it in wrapping backends 2024-05-14 12:51:03 +01:00
crypt fs: define the optional interface SetMetadata and implement it in wrapping backends 2024-05-14 12:51:03 +01:00
drive drive: fix tests for backend query command 2024-06-08 17:44:11 +01:00
dropbox dropbox: add option to override root namespace 2024-06-11 12:49:01 +01:00
fichier fichier: fix error code parsing 2023-08-11 00:47:01 +09:00
filefabric filefabric: use atomic types 2023-08-22 12:52:13 +01:00
ftp ftp: fix mkdir with rsftp which is returning the wrong code 2024-02-07 22:09:56 +00:00
googlecloudstorage s3, googlecloudstorage, azureblob: fix encoding issue with dir path comparison 2024-06-11 11:54:54 +01:00
googlephotos googlephotos: remove unnecessary nil check 2024-06-11 11:55:42 +01:00
hasher fs: define the optional interface SetMetadata and implement it in wrapping backends 2024-05-14 12:51:03 +01:00
hdfs build: fix linting issues reported by running golangci-lint with different GOOS 2024-04-22 19:29:12 +02:00
hidrive backend: fs implements the Shutdowner interface 2023-12-09 11:44:50 +00:00
http backend http: Adding no-escape flag for option to not escape URL metacharacters in path names - fixes issue #7637 2024-04-22 17:57:09 +01:00
imagekit imagekit: Added ImageKit backend 2023-11-24 18:18:01 +00:00
internetarchive fs: implement --metadata-mapper to transform metatadata with a user supplied program 2023-11-18 17:49:35 +00:00
jottacloud jottacloud: set metadata on server side copy and move - fixes #7900 2024-06-13 16:19:36 +01:00
koofr backend koofr: remove trailing bracket - fixes #7600 2024-04-04 20:03:26 +01:00
linkbox linkbox: fix list paging and optimized synchronization. 2024-03-24 12:05:58 +00:00
local local: implement Object.SetMetadata 2024-05-14 12:51:03 +01:00
mailru mailru: attempt to fix throttling by decreasing min sleep to 100ms 2024-06-08 17:44:11 +01:00
mega docs: fix typos found by codespell in docs and code comments 2023-09-23 12:20:01 +01:00
memory memory: fix incorrect list entries when rooted at subdirectory 2024-03-27 11:43:26 -04:00
netstorage build: fix linting issues reported by golangci-lint on windows 2024-04-22 19:29:12 +02:00
onedrive onedrive: add --onedrive-hard-delete to permanently delete files 2024-06-11 17:48:15 +01:00
opendrive opendrive: fix moving file/folder within the same parent dir - #7591 2024-02-21 18:02:19 +00:00
oracleobjectstorage build: fix linting issues reported by running golangci-lint with different GOOS 2024-04-22 19:29:12 +02:00
pcloud backend: fs implements the Shutdowner interface 2023-12-09 11:44:50 +00:00
pikpak pikpak: implement configurable chunk size for multipart upload 2024-06-12 13:19:25 +09:00
premiumizeme backend: fs implements the Shutdowner interface 2023-12-09 11:44:50 +00:00
protondrive protondrive: don't auth with an empty access token 2024-06-11 12:46:00 +01:00
putio rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
qingstor build: fix linting issues reported by running golangci-lint with different GOOS 2024-04-22 19:29:12 +02:00
quatrix quatrix: fix f.String() not including subpath 2024-05-13 18:32:41 +01:00
s3 s3: fix 405 error on HEAD for delete marker with versionId 2024-06-13 18:09:29 +01:00
seafile netstorage,quatrix,seafile: fix Root to return correct directory when pointing to a file 2024-03-07 14:44:45 +00:00
sftp sftp: --sftp-connections to limit maximum number of connections 2024-06-09 18:36:30 +01:00
sharefile tree-wide: replace /bin/bash with /usr/bin/env bash 2024-06-11 12:47:47 +01:00
sia rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
smb smb: fix shares not listed by updating go-smb2 2023-11-29 15:39:27 +00:00
storj build: fix linting issues reported by running golangci-lint with different GOOS 2024-04-22 19:29:12 +02:00
sugarsync rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
swift swift: implement --swift-use-segments-container to allow >5G files on Blomp 2024-04-25 11:14:14 +01:00
ulozto ulozto: fix panic in various integration tests 2024-06-08 17:44:11 +01:00
union fs: define the optional interface SetMetadata and implement it in wrapping backends 2024-05-14 12:51:03 +01:00
uptobox rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
webdav Fix new lint issues reported by golangci-lint v1.59.0 2024-05-31 09:48:32 +02:00
yandex yandex: fix 400 Bad Request on transfer failure 2023-06-11 11:11:43 +01:00
zoho zoho: sleep for 60 seconds if rate limit error received 2024-06-12 16:34:30 +01:00