Skip to content

BucketExistsAsync returns true even if it does not exist #1118

Closed
@RoyalScribblz

Description

@RoyalScribblz

The logic for BucketExistsAsync is incorrect. All it determines is that the response Exception isn't a BucketNotFoundException. This means if you have another exception such as HttpRequestException, it responds that the bucket exists true even when it might not.

return response is not null &&
(response.Exception is null ||
response.Exception.GetType() != typeof(BucketNotFoundException));

I was getting a "The SSL connection could not be established, see inner exception." and never knew until I stepped into the lib code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions