edge
edge copied to clipboard
Object Lock Error Responses Wrong/Weird
The following object lock related actions returned an "unauthorized" error rather than the appropriate error.
Action | Example Request | Response | Expected response |
---|---|---|---|
PutBucketVersioning | aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Suspended --endpoint-url https://gateway.qa.storjshare.io |
An error occurred (AccessDenied) when calling the PutBucketVersioning operation: Access Denied. | Not sure, but probably something different than the current response. |
DeleteObject (with retention set) | aws s3api delete-object --bucket my-bucket --key my-object --version-id 0000000000000001a008c98f1d6afe18 --endpoint-url https://gateway.qa.storjshare.io | An error occurred (AccessDenied) when calling the DeleteObject operation: Access Denied | Not sure, but probably something different than the current response. |
PutObjectLegalHold | aws s3api put-object-legal-hold --bucket my-bucket --key my-object --legal-hold '{ "Status": "ON"}' --endpoint-url https://gateway.qa.storjshare.io | An error occurred (InvalidRequest) when calling the PutObjectLegalHold operation: Bucket is missing ObjectLockConfiguration | Would expect "not implemented" response |
See columns G, H, I for more context: https://docs.google.com/spreadsheets/d/1Yfz1sSTRD2nTRAkgGJ27aAv7wTMJCd-74fJlujdNPBw/edit?gid=0#gid=0