mirror of
https://github.com/minio/minio.git
synced 2025-01-22 20:23:14 -05:00
fix: translate empty versionID string to null version where appropriate (#11629)
We store the null version as empty string. We should translate it to null version for bucket with version suspended too.
This commit is contained in:
parent
b23659927c
commit
ca5c6e3160
@ -102,7 +102,7 @@ func (fi FileInfo) IsValid() bool {
|
||||
func (fi FileInfo) ToObjectInfo(bucket, object string) ObjectInfo {
|
||||
object = decodeDirObject(object)
|
||||
versionID := fi.VersionID
|
||||
if globalBucketVersioningSys.Enabled(bucket) && versionID == "" {
|
||||
if (globalBucketVersioningSys.Enabled(bucket) || globalBucketVersioningSys.Suspended(bucket)) && versionID == "" {
|
||||
versionID = nullVersionID
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user