mirror of
https://github.com/minio/minio.git
synced 2025-01-25 21:53:16 -05:00
fix CopyObject with replace overwriting inline status (#19468)
Fixes #19450 - internal inline-data header can get overwritten during copy with replace before this fix.
This commit is contained in:
parent
0c31e61343
commit
ffa91f9794
@ -147,11 +147,12 @@ func (er erasureObjects) CopyObject(ctx context.Context, srcBucket, srcObject, d
|
|||||||
modTime = dstOpts.MTime
|
modTime = dstOpts.MTime
|
||||||
fi.ModTime = dstOpts.MTime
|
fi.ModTime = dstOpts.MTime
|
||||||
}
|
}
|
||||||
|
// check inline before overwriting metadata.
|
||||||
|
inlineData := fi.InlineData()
|
||||||
|
|
||||||
fi.Metadata = srcInfo.UserDefined
|
fi.Metadata = srcInfo.UserDefined
|
||||||
srcInfo.UserDefined["etag"] = srcInfo.ETag
|
srcInfo.UserDefined["etag"] = srcInfo.ETag
|
||||||
|
|
||||||
inlineData := fi.InlineData()
|
|
||||||
freeVersionID := fi.TierFreeVersionID()
|
freeVersionID := fi.TierFreeVersionID()
|
||||||
freeVersionMarker := fi.TierFreeVersion()
|
freeVersionMarker := fi.TierFreeVersion()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user