Skip to content
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

MakeBucketAsync defaults to VersioningEnabled, and Versioning cannot be suspended. #886

Open
skima74 opened this issue Oct 17, 2023 · 0 comments

Comments

@skima74
Copy link

skima74 commented Oct 17, 2023

I'm trying to create an bucket without Versioning enabled.

    await _minioClient.MakeBucketAsync(
        new MakeBucketArgs()
            .WithObjectLock()
            .WithBucket(bucketName)
            //.WithObjectLock()
            .WithLocation(location));

Enables versioning. Try to suspend Versioning with:

    await _minioClient.SetVersioningAsync(
        new SetVersioningArgs()
            .WithBucket(bucketName)
            .WithVersioningSuspended());

yields the following exception:
"MinIO API responded with message=An Object Lock configuration is present on this bucket, versioning cannot be suspended."

The docs state state the default for a new bucket should be versioning off, which is what is reasonable to expect from the sdk too.

As such, there does not seem to be a way of making a bucket without version at present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant