-
Notifications
You must be signed in to change notification settings - Fork 228
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
Error during setting .WithLifecycleConfiguration #656
Comments
Hi! I have the same problem. var lifeCycle = new SetBucketLifecycleArgs()
.WithBucket("test")
.WithLifecycleConfiguration(
new LifecycleConfiguration()
{
Rules = new List<LifecycleRule>()
{
new()
{
ID = "AutoRemoveOldFiles",
Status = LifecycleRule.LIFECYCLE_RULE_STATUS_ENABLED,
NoncurrentVersionExpirationObject = new NoncurrentVersionExpiration(1),
Expiration = new Expiration()
{
Days = 1,
ExpiredObjectDeleteMarker = true
}
}
}
});
await _client.SetBucketLifecycleAsync(lifeCycle, cancellationToken); Then a had a log like this
|
Hello! I have the same problem. Will this be fixed in upcoming releases or is there a workaround? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, settings like:
SetBucketLifecycleArgs args = new SetBucketLifecycleArgs() .WithBucket(bucketName) .WithLifecycleConfiguration( new LifecycleConfiguration(new List<LifecycleRule>(new[] { new LifecycleRule { AbortIncompleteMultipartUploadObject = null, ID = "Delete imagines after 31 days", Expiration = null, TransitionObject = null, Filter = null, NoncurrentVersionExpirationObject = new NoncurrentVersionExpiration(31), NoncurrentVersionTransitionObject = null, Status = LifecycleRule.LIFECYCLE_RULE_STATUS_ENABLED } })));
return error:
API: PutBucketLifecycle(bucket=trackingid) Time: 11:59:46 UTC 06/28/2022 DeploymentID: 3b10a44d-fa41-434a-a056-ffef5d19d9f3 RequestID: 16FCC704C6A47418 RemoteHost: 172.17.0.1 Host: 10.170.44.31:19000 UserAgent: MinIO (Linux 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021;X64) minio-dotnet/4.0.3.0 Error: The XML you provided was not well-formed or did not validate against our published schema (lifecycle.Error) 5: internal/logger/logger.go:278:logger.LogIf() 4: cmd/api-errors.go:2123:cmd.toAPIErrorCode() 3: cmd/api-errors.go:2148:cmd.toAPIError() 2: cmd/bucket-lifecycle-handlers.go:78:cmd.objectAPIHandlers.PutBucketLifecycleHandler() 1: net/http/server.go:2084:http.HandlerFunc.ServeHTTP()
The text was updated successfully, but these errors were encountered: