mirror of
https://github.com/minio/minio.git
synced 2025-04-03 11:20:30 -04:00
snowball: use latest time when mtime is missing (#17133)
This commit is contained in:
parent
bb6f4d7633
commit
7f7b489a3d
@ -2142,6 +2142,9 @@ func (api objectAPIHandlers) PutObjectExtractHandler(w http.ResponseWriter, r *h
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
opts.MTime = info.ModTime()
|
opts.MTime = info.ModTime()
|
||||||
|
if opts.MTime.Unix() <= 0 {
|
||||||
|
opts.MTime = UTCNow()
|
||||||
|
}
|
||||||
opts.IndexCB = idxCb
|
opts.IndexCB = idxCb
|
||||||
|
|
||||||
retentionMode, retentionDate, legalHold, s3err := checkPutObjectLockAllowed(ctx, r, bucket, object, getObjectInfo, retPerms, holdPerms)
|
retentionMode, retentionDate, legalHold, s3err := checkPutObjectLockAllowed(ctx, r, bucket, object, getObjectInfo, retPerms, holdPerms)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user