fix(replication/s3sink): nil-guard entry.Attributes when reading Mime

This commit is contained in:
Chris Lu
2026-05-27 12:16:54 -07:00
parent 3d4bef39dd
commit 08c3698e44
+1 -1
View File
@@ -209,7 +209,7 @@ func (s3sink *S3Sink) CreateEntry(key string, entry *filer_pb.Entry, signatures
if tags != "" {
uploadInput.Tagging = aws.String(tags)
}
if entry.Attributes.Mime != "" {
if entry.Attributes != nil && entry.Attributes.Mime != "" {
uploadInput.ContentType = aws.String(entry.Attributes.Mime)
}
if len(entry.Attributes.Md5) > 0 {