mirror of
https://github.com/versity/versitygw.git
synced 2026-01-03 10:35:15 +00:00
S3 Proxy DeleteObjects empty input (#340)
* feat: implemented the logic to run integration tests separately * fix: Fixes #335, fixed s3 proxy DeleteObject empty input bug
This commit is contained in:
@@ -409,6 +409,10 @@ func (s *S3be) DeleteObjects(ctx context.Context, input *s3.DeleteObjectsInput)
|
||||
return s3response.DeleteObjectsResult{}, err
|
||||
}
|
||||
|
||||
if len(input.Delete.Objects) == 0 {
|
||||
input.Delete.Objects = []types.ObjectIdentifier{}
|
||||
}
|
||||
|
||||
output, err := client.DeleteObjects(ctx, input)
|
||||
err = handleError(err)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user