-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for issue during setting .WithLifecycleConfiguration (#656) #722
Fix for issue during setting .WithLifecycleConfiguration (#656) #722
Conversation
Reviewing... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran with @peterczabanski 's configuration given in the issue tobe fixed, #656, and SetBucketLifecycleAsync
api still fails the same way with the same error message.
Your fix looks good, but it seems like the fix needs more changes.
One thing I noticed is; minio-go has 2 properties for NoncurrentVersionExpiration
<NoncurrentVersionExpiration>
<NewerNoncurrentVersions>5</NewerNoncurrentVersions>
<NoncurrentDays>365</NoncurrentDays>
</NoncurrentVersionExpiration>
i.e NewerNoncurrentVersions
is missing.
The remaining problem with @peterczabanski 's configuration is the part This configuration will work: The empty Filter node is removed in |
@MarDipp ,
Yes. This configuration works. We also need to add the missing |
…o have the same properties as minio-go
I added the property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is one last issue:
NoncurrentVersionExpirationObject
has become a mandatory tag and it has to be defined.
Try it with a null
value and with no NoncurrentVersionExpirationObject
definition in your Rule.
Have you added an other condition? I don´t think This configuration has no |
I see. At this point in the code, there is only one required tag,
while the following config fails:
|
Fixes issue Error during setting .WithLifecycleConfiguration #656.
The XML node NoncurrentVersionExpiration was empty because internal properties are not serialized.