mirror of
https://github.com/minio/minio.git
synced 2025-11-25 12:06:10 -05:00
fix: marshaling stack overflow in noncurrentversion lifecycle config (#10971)
This commit is contained in:
committed by
GitHub
parent
3ad41fe89d
commit
7742238495
@@ -52,7 +52,8 @@ func (n NoncurrentVersionTransition) MarshalXML(e *xml.Encoder, start xml.StartE
|
||||
if n.NoncurrentDays == ExpirationDays(0) {
|
||||
return nil
|
||||
}
|
||||
return e.EncodeElement(&n, start)
|
||||
type noncurrentVersionTransitionWrapper NoncurrentVersionTransition
|
||||
return e.EncodeElement(noncurrentVersionTransitionWrapper(n), start)
|
||||
}
|
||||
|
||||
// IsDaysNull returns true if days field is null
|
||||
|
||||
Reference in New Issue
Block a user