mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 19:43:45 +08:00
8470bdf810
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 |
||
---|---|---|
.. | ||
gen_setfrom.go | ||
s3_internal_test.go | ||
s3_test.go | ||
s3.go | ||
setfrom.go | ||
v2sign.go |