You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select this option if this issue appears to be a regression.
Expected Behavior
NewerNoncurrentVersions being written into the request.
Current Behavior
The NewerNoncurrentVersions is ignored during serialization.
Reproduction Steps
This is my current code:
PutLifecycleConfigurationRequestrequest=new(){BucketName=bucketName,Configuration=new(){Rules=new(){newAmazon.S3.Model.LifecycleRule(){NoncurrentVersionExpiration=newLifecycleRuleNoncurrentVersionExpiration(){NewerNoncurrentVersions=keepItems,//NoncurrentDays = keepDays,},AbortIncompleteMultipartUpload=newLifecycleRuleAbortIncompleteMultipartUpload(){DaysAfterInitiation=7},Expiration=newLifecycleRuleExpiration(){//Am object which only has deletion markersExpiredObjectDeleteMarker=true,},Id=lifecycleConfigName,Status=LifecycleRuleStatus.Enabled,Filter=new()}}}};
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.S3 3.7.404.1 (latest at time of writing)
Targeted .NET Platform
.NET 8
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered:
Thank you for reporting the issue. We acknowledge the property NewerNoncurrentVersions is not sent on the request object. Our team will further investigate and work on the fix for it.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Hello @BreakingBread0, PutLifecycleConfigurationRequest.NewerNoncurrentVersions is serialized and sent to S3 as part of v3.7.404.7.
Feel free to reach out if you faced any other issues.
Describe the bug
When setting a lifecycle configuration with noncurrent version expiry, NewerConcurrentVersions seems to not be serialized into the request (see https://github.com/aws/aws-sdk-net/blob/main/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutLifecycleConfigurationRequestMarshaller.cs#L124)
This doesnt appear to be right, especially since there is no documentation describing this behaviour. Having a quick look around, the PutBucketLifecycleConfigurationRequestMarshaller for S3Control seems to do serialize it (https://github.com/aws/aws-sdk-net/blob/main/sdk/src/Services/S3Control/Generated/Model/Internal/MarshallTransformations/PutBucketLifecycleConfigurationRequestMarshaller.cs#L172)
Regression Issue
Expected Behavior
NewerNoncurrentVersions being written into the request.
Current Behavior
The NewerNoncurrentVersions is ignored during serialization.
Reproduction Steps
This is my current code:
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.S3 3.7.404.1 (latest at time of writing)
Targeted .NET Platform
.NET 8
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: