Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 Proxy DeleteObjects empty input #340

Merged
merged 6 commits into from
Dec 14, 2023
Merged
4 changes: 4 additions & 0 deletions backend/s3proxy/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down