rclone/backend
Nick Craig-Wood 01877e5a0f s3: ignore versionIDs from uploads unless using --s3-versions or --s3-versions-at
Before this change, when a new object was created s3 returns its
versionID (on a versioned bucket) and rclone recorded it in the
object.

This means that when rclone came to delete the object it would delete
it with the versionID.

However it is common to forbid actions with versionIDs on buckets so
as to preserve the historical record and these operations would fail
whereas they succeeded in pre-v1.60.0 versions.

This patch fixes the problem by not recording versions of objects
supplied by the S3 API on upload unless `--s3-versions` or
`--s3-version-at` is used. This makes rclone behave as it did before
v1.60.0 when version support was introduced.

See: https://forum.rclone.org/t/s3-and-intermittent-403-errors-with-file-renames-and-drag-and-drop-operations-in-windows-explorer/34773
2022-12-17 10:24:56 +00:00
..
alias build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
all Add a native backend for oracle object storage - fixes #6299 2022-10-13 13:04:56 +01:00
amazonclouddrive build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
azureblob azureblob: implement --use-server-modtime 2022-12-15 15:58:36 +00:00
b2 all: fix spelling across the project 2022-08-30 11:16:26 +02:00
box Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
cache test: replace defer cleanup with `t.Cleanup` 2022-12-09 14:38:05 +00:00
chunker rcat: preserve metadata when Copy falls back to Rcat 2022-11-10 12:04:35 +00:00
combine fs: move operations.NewOverrideRemote to fs.NewOverrideRemote 2022-11-21 08:02:09 +00:00
compress Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
crypt test: replace defer cleanup with `t.Cleanup` 2022-12-09 14:38:05 +00:00
drive drive: handle shared drives with leading/trailing space in name (related to #6618) 2022-12-14 10:18:12 +01:00
dropbox all: fix spelling across the project 2022-08-30 11:16:26 +02:00
fichier all: fix spelling across the project 2022-08-30 11:16:26 +02:00
filefabric Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
ftp ftp: Improve performance to speed up --files-from and NewObject 2022-12-05 16:19:04 +00:00
googlecloudstorage Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
googlephotos fs: move operations.NewOverrideRemote to fs.NewOverrideRemote 2022-11-21 08:02:09 +00:00
hasher Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
hdfs build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
hidrive all: fix spelling across the project 2022-08-30 11:16:26 +02:00
http test: replace defer cleanup with `t.Cleanup` 2022-12-09 14:38:05 +00:00
internetarchive all: fix spelling across the project 2022-08-30 11:16:26 +02:00
jottacloud Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
koofr all: fix spelling across the project 2022-08-30 11:16:26 +02:00
local test: replace defer cleanup with `t.Cleanup` 2022-12-09 14:38:05 +00:00
mailru mailru: allow timestamps to be before the epoch 1970-01-01 2022-11-10 11:27:01 +00:00
mega all: fix spelling across the project 2022-08-30 11:16:26 +02:00
memory Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
netstorage Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
onedrive onedrive: disable change notify in China region since it is not supported 2022-09-16 16:57:29 +01:00
opendrive build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
oracleobjectstorage oracle-object-storage: doc fix 2022-10-28 20:32:17 +02:00
pcloud all: fix spelling across the project 2022-08-30 11:16:26 +02:00
premiumizeme build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
putio build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
qingstor build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
s3 s3: ignore versionIDs from uploads unless using --s3-versions or --s3-versions-at 2022-12-17 10:24:56 +00:00
seafile Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
sftp sftp: fix NewObject with leading / 2022-12-15 12:40:59 +00:00
sharefile Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
sia build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
smb smb: fix issue where spurious dot directory is created 2022-11-20 17:12:02 +00:00
storj storj: implement server side Copy 2022-12-12 12:02:38 +00:00
sugarsync Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
swift Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
union Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
uptobox Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
webdav webdav: fix Move/Copy/DirMove when using -server-side-across-configs 2022-11-15 09:51:30 +00:00
yandex build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
zoho Replace deprecated ioutil 2022-11-07 11:41:47 +00:00