versity / versitygw

versity s3 gateway
https://www.versity.com/products/versitygw/
Apache License 2.0
169 stars 21 forks source link

[Bug] - DeleteObject returns InternalError on an object version deletion #842

Closed jonaustin09 closed 3 days ago

jonaustin09 commented 4 days ago

Describe the bug DeleteObject returns InternalError, when attempting to delete an object version with versionId. Server debug log:

Internal Error, get obj versionId: xattr.get test/foo user.version-id: no such file or directory

To Reproduce

// create a bucket
aws s3api create-bucket --bucket test
// enable versioning
aws s3api put-bucket-versioning --bucket test --versioning-configuration Status=Enabled
// try to delete a non-existing object version
aws s3api delete-object --bucket test --key foo --version-id non_existing_version_id

Expected behavior It should return InvalidArgument error.

An error occurred (InvalidArgument) when calling the DeleteObject operation: Invalid version id specified