strato
strato copied to clipboard
Delete Object with specific version ID
What this PR does / why we need it: This PR is for deleting the object with specific version ID
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
DELETE Request URL
http://<host_ip>:8089/v1/s3/<bucket_name>/<object_name>?versionId=<version_id>
Tested using postman
Release note:
The CI is failing because GET Object PR has some changes which are used in this PR, so if PR #855 is merged , the CI will pass
Hi @nguptaopensds , as we discussed on slack before that currently, we have to be AWS S3 compatible, please check https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectVersioning.html. The current implementation of delete versioning object is not compatible with it. For example, what will happen if the user do not specify version id when delete an object when versioning is enabled?