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

BucketExistsAsync not working #837

Closed
satishviswanathan opened this issue Aug 11, 2023 · 3 comments
Closed

BucketExistsAsync not working #837

satishviswanathan opened this issue Aug 11, 2023 · 3 comments
Assignees
Labels

Comments

@satishviswanathan
Copy link

I'm new to Minio and trying to get a sample file upload which works with play.min.io. However it fails in local environment with Minio running in docker instance.

Dotnet Version : 7
minio-dotnet version : 5.0.0
Running Minio locally using the docker compose

version: "3.4"

services:
minio:
image: quay.io/minio/minio
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- minio_data:/data
ports:
- 9000:9000
- 9001:9001

volumes:
minio_data:

MiniClient implementation

using var minio = new MinioClient()
.WithEndpoint("127.0.0.1", 9000)
.WithCredentials("minioadmin", "minioadmin")
.WithSSL(false)
.Build();
var bucketName = "SampleFolder";
var location = "us-east-1";
var bktExistArgs = new BucketExistsArgs()
.WithBucket(bucketName);
var found = await minio.BucketExistsAsync(bktExistArgs).ConfigureAwait(false);

That check always returns true even if the bucket doesn't exist.

Any help on this is appreciated !

@ebozduman
Copy link
Collaborator

@satishviswanathan

I believe this issue is fixed in PR #844

Could you please test it and close it if it passes your test?

@ebozduman ebozduman self-assigned this Oct 23, 2023
@ebozduman
Copy link
Collaborator

Closing as fixed.
Please reopen if you disagree.

@satishviswanathan
Copy link
Author

@ebozduman Thank you for the fix.

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

No branches or pull requests

2 participants