From 5f1ce5d3349a867563d6c12441f0defd12e5e401 Mon Sep 17 00:00:00 2001 From: Catherine Date: Thu, 4 Dec 2025 17:50:28 +0000 Subject: [PATCH] Fix a bug preventing new manifests from being committed to S3. --- src/backend_s3.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend_s3.go b/src/backend_s3.go index 5a1aca1..ef9a7ec 100644 --- a/src/backend_s3.go +++ b/src/backend_s3.go @@ -553,6 +553,10 @@ func (s3 *S3Backend) HasAtomicCAS(ctx context.Context) bool { func (s3 *S3Backend) checkManifestPrecondition( ctx context.Context, name string, opts ModifyManifestOptions, ) error { + if opts.IfUnmodifiedSince.IsZero() && opts.IfMatch == "" { + return nil + } + stat, err := s3.client.StatObject(ctx, s3.bucket, manifestObjectName(name), minio.GetObjectOptions{}) if err != nil {