Ignore ObjectNotFound errors in delete api while enforcing locking (#11114)

AWS does not report this or version not found as errors in the response.
master
Poorna Krishnamoorthy 4 years ago committed by GitHub
parent f6fb27e8f0
commit 3456b03b12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      cmd/bucket-object-lock.go

@ -97,6 +97,9 @@ func enforceRetentionBypassForDelete(ctx context.Context, r *http.Request, bucke
return ErrNone return ErrNone
} }
} }
if isErrObjectNotFound(gerr) || isErrVersionNotFound(gerr) {
return ErrNone
}
return toAPIErrorCode(ctx, gerr) return toAPIErrorCode(ctx, gerr)
} }

Loading…
Cancel
Save