delete of a missing versionId return 204 (#18117)

This commit is contained in:
Poorna 2023-09-26 14:02:56 -07:00 committed by GitHub
parent 10d5dd3a67
commit 6bc7d711b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2416,7 +2416,7 @@ func (api objectAPIHandlers) DeleteObjectHandler(w http.ResponseWriter, r *http.
writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
return
}
if isErrObjectNotFound(err) {
if isErrObjectNotFound(err) || isErrVersionNotFound(err) {
writeSuccessNoContent(w)
return
}