mirror of
https://github.com/minio/minio.git
synced 2025-11-23 02:57:42 -05:00
fix: marshaling stack overflow in noncurrentversion lifecycle config (#10971)
This commit is contained in:
committed by
GitHub
parent
3ad41fe89d
commit
7742238495
@@ -189,6 +189,12 @@ func TestMarshalLifecycleConfig(t *testing.T) {
|
||||
Filter: Filter{Prefix: "prefix-1"},
|
||||
Expiration: Expiration{Date: ExpirationDate(midnightTS)},
|
||||
},
|
||||
{
|
||||
Status: "Enabled",
|
||||
Filter: Filter{Prefix: "prefix-1"},
|
||||
Expiration: Expiration{Date: ExpirationDate(midnightTS)},
|
||||
NoncurrentVersionTransition: NoncurrentVersionTransition{NoncurrentDays: 2, StorageClass: "TEST"},
|
||||
},
|
||||
},
|
||||
}
|
||||
b, err := xml.MarshalIndent(&lc, "", "\t")
|
||||
|
||||
Reference in New Issue
Block a user